Movatterモバイル変換


[0]ホーム

URL:


CN104283926A - Data synchronization method, device and server - Google Patents

Data synchronization method, device and server
Download PDF

Info

Publication number
CN104283926A
CN104283926ACN201310288024.7ACN201310288024ACN104283926ACN 104283926 ACN104283926 ACN 104283926ACN 201310288024 ACN201310288024 ACN 201310288024ACN 104283926 ACN104283926 ACN 104283926A
Authority
CN
China
Prior art keywords
client
communications account
associated data
request
logs
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310288024.7A
Other languages
Chinese (zh)
Other versions
CN104283926B (en
Inventor
张云鹏
董江德
蔡志国
陈家辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co LtdfiledCriticalTencent Technology Shenzhen Co Ltd
Priority to CN201310288024.7ApriorityCriticalpatent/CN104283926B/en
Priority to TW103123672Aprioritypatent/TWI535327B/en
Priority to PCT/CN2014/081865prioritypatent/WO2015003628A1/en
Publication of CN104283926ApublicationCriticalpatent/CN104283926A/en
Priority to HK15102234.5Aprioritypatent/HK1202003B/en
Application grantedgrantedCritical
Publication of CN104283926BpublicationCriticalpatent/CN104283926B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The embodiment of the invention provides a data synchronization method, device and server. The data synchronization method includes the steps that when a first client side corresponding to a communication account carries out updating operation on related data of the communication account, the updating information of the related data is obtained; a second client side which corresponds to the communication account and is in a connecting state except for the first client side is searched for; the updating information of the related data is synchronized to the second client side so that the second client side can display updated related data according to the updating information of the related data. The data synchronization method, device and server can guarantee the consistency of the displayed data among the client sides corresponding to the same communication account, improve the intelligence of the client sides, and improve use experience for users.

Description

A kind of method of data synchronization, device and server
Technical field
The present invention relates to Internet technical field, be specifically related to data synchronization technology field, particularly relate to a kind of method of data synchronization, device and server.
Background technology
Along with the development of Internet technology, same communications account can realize situation about simultaneously operating in multiple client, such as: same instant messaging account can simultaneously at cell-phone customer terminal and PC(Personal Computer, personal computer) client logs in, and cell-phone customer terminal and pc client and other instant messaging accounts can be utilized to carry out information interaction.But, in prior art, data between multiple clients that same communications account is corresponding cannot be synchronous in time, according to above-mentioned example: when the associated data (such as: subscriber data data) of cell-phone customer terminal to instant messaging account carries out renewal rewards theory, pc client cannot simultaneous display upgrade after the associated data of instant messaging account, thus affect the consistency that cell-phone customer terminal and pc client show data, reduce the intelligent of client, have impact on the experience of user.
Summary of the invention
The embodiment of the present invention provides a kind of method of data synchronization, device and server, can ensure the consistency showing data between each client that same communications account is corresponding, promotes the intelligent of client, promotes the experience of user.
First aspect present invention provides a kind of method of data synchronization, can comprise:
When the first client that communications account is corresponding carries out renewal rewards theory to the associated data of described communications account, obtain the lastest imformation of described associated data;
Search described communications account corresponding except described first client, and be in the second client of connected state;
The lastest imformation of described associated data is synchronized to described second client, to make described second client according to the lastest imformation of described associated data, the described associated data after display update.
Second aspect present invention provides a kind of data synchronization unit, can comprise:
Data obtaining module, when carrying out renewal rewards theory for the first client corresponding when communications account to the associated data of described communications account, obtains the lastest imformation of described associated data;
Search module, for search described communications account corresponding except described first client, and be in the second client of connected state;
Synchronization module, for the lastest imformation of described associated data is synchronized to described second client, to make described second client according to the lastest imformation of described associated data, the described associated data after display update.
Third aspect present invention provides a kind of server, can comprise the data synchronization unit that above-mentioned second aspect provides.
Implement the embodiment of the present invention, there is following beneficial effect:
In the embodiment of the present invention, when the first client that communications account is corresponding carries out renewal rewards theory to the associated data of described communications account, the lastest imformation of described associated data is synchronized to the second client being in connected state except the first client that this communications account is corresponding, the described associated data after described second client synchronization display update can be made, ensure that the consistency showing data between the first client and the second client, improve the intelligent of client, thus improve the experience of user.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The flow chart of a kind of method of data synchronization that Fig. 1 provides for the embodiment of the present invention;
The flow chart of the another kind of method of data synchronization that Fig. 2 provides for the embodiment of the present invention;
The flow chart of another method of data synchronization that Fig. 3 provides for the embodiment of the present invention;
The structural representation of a kind of data synchronization unit that Fig. 4 provides for the embodiment of the present invention;
The structural representation of the another kind of data synchronization unit that Fig. 5 provides for the embodiment of the present invention;
The structural representation of another data synchronization unit that Fig. 6 provides for the embodiment of the present invention;
The structural representation searching module that Fig. 7 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In the embodiment of the present invention, client can be terminal equipment, such as: PC, PAD(panel computer), the equipment such as mobile phone, smart mobile phone, notebook computer.Client also can be the client modules in terminal equipment, such as: instant communication client, SNS(Social Networking Services, social network services) client etc.Communications account can be instant messaging account, cell-phone number, email account etc., for identifying a unique communication user.The client that communications account is corresponding refers to the login client of communications account, namely communications account by client logs corresponding to described communications account to communication system.
In the embodiment of the present invention, any one client that the first client that communications account is corresponding can use to communication system for communications account login.In at least one client that the second client that communications account is corresponding can use for communications account login to communication system, any one client except the first client.Client is in connected state, and show that client and data synchronization unit keep connection status, the User Status that now client is corresponding can show as presence, stealthy state, leave state; Client is not in connected state, can comprise log off state and dormant state, shows that client and data synchronization unit do not keep connection status, and the User Status that now client is corresponding can show as off-line state.Unless otherwise indicated, in subsequent embodiment of the present invention, client is described for instant communication client.
Below in conjunction with accompanying drawing 1-accompanying drawing 3, the method for data synchronization that the embodiment of the present invention provides is described in detail.
Referring to Fig. 1, is the flow chart of a kind of method of data synchronization that the embodiment of the present invention provides; The method can comprise the following steps S101-step S103.
S101, when the first client that communications account is corresponding carries out renewal rewards theory to the associated data of described communications account, obtains the lastest imformation of described associated data.
The associated data of described communications account can include but not limited to: the users personal data that described communications account is corresponding and customer relationship chain data; Such as: the associated data of instant messaging account can include but not limited to: the users personal data such as the pet name of instant communication users, individualized signature, the mark of instant messaging group that adds, and good friend's data of instant communication users, good friend's data in instant messaging group etc.Same communications account may correspond to multiple client, such as: communications account A both can corresponding cell-phone customer terminal A, again can corresponding pc client B, can also corresponding PAD client C.The user that communications account is corresponding can carry out renewal rewards theory in any client that communications account is corresponding to the associated data of communications account, such as: the user that communications account A is corresponding revises user's pet name etc. by cell-phone customer terminal A.This step when the first client that communications account is corresponding carries out renewal rewards theory to the associated data of described communications account, the lastest imformation of the associated data of obtaining communication account; Wherein, the lastest imformation of described associated data includes but not limited to: update time of described associated data, carry out the action type of renewal rewards theory and the more fresh content of described associated data to described associated data.
S102, search described communications account corresponding except described first client, and be in the second client of connected state.
According to the example in step S102, the first client that communications account A is corresponding is cell-phone customer terminal A, and communications account A is corresponding pc client B and PAD client C also; Wherein, pc client B is in connected state, and before performing this step, communications account A has logged off from PAD client C, and PAD client C is in non-connected state; This step then searches pc client B corresponding to communications account A as the second client.
S103, is synchronized to described second client by the lastest imformation of described associated data, to make described second client according to the lastest imformation of described associated data, and the described associated data after display update.
In this step, after the lastest imformation of described associated data is synchronized to described second client, described second client is according to the lastest imformation of described associated data, described associated data after display update, thus the consistency that can ensure the associated data of described communications account shown between the first client and the second client; Example according in step S101 and step S102: after cell-phone customer terminal A carries out renewal rewards theory to the associated data of communications account A, pc client B can simultaneous display upgrade after described associated data, thus ensure that the consistency showing data between cell-phone customer terminal A and pc client B.It should be noted that, in this step, the lastest imformation being synchronized to the associated data of the second client carries out the simultaneous display of associated data for the second client, and the renewal be not used in about the associated data of described communications account in the second client local data base, this is because the second client in synchronizing process may be changed to disconnected state by connected state, such as: communications account is logged off in the second client, or second client be in resting state, etc., thus make the second client cannot receive complete lastest imformation, the renewal integrality of the second client local data base about the associated data of described communications account cannot be ensured.
Referring to Fig. 2, is the flow chart of the another kind of method of data synchronization that the embodiment of the present invention provides; The method can comprise the following steps S201-step S211.
S201, when the first client that communications account is corresponding carries out renewal rewards theory to the associated data of described communications account, obtains the lastest imformation of described associated data.
The step S201 of the present embodiment can the step S101 of embodiment shown in Figure 1, is not repeated herein.
S202, obtains the login list of described communications account, comprises the identification information of at least one client corresponding to described communications account in described login list.
In the present embodiment, the login list of each communications account of server maintenance, after each communications account uses client to log in, login record can be added in the login list of each communications account by server.Article one, login record comprises identification information and the login time of a client.The identification information of at least one client corresponding to described communications account is comprised in described login list; The identification information of a client is used for unique identification client.In this step, the login list of described communications account can be obtained from server, such as: communications account A logs in respectively by cell-phone customer terminal A, pc client B and PAD client C, then this step can the login list of obtaining communication account A, comprises the identification information of the identification information of cell-phone customer terminal A, the identification information of pc client B and PAD client C in this login list.
S203, according to the identification information of at least one client corresponding to described communications account, detects the state of at least one client corresponding to described communications account.
In this step, at least one client corresponding to described communications account can be detected and whether keep connection status with server, if a certain client and server keep connection status, then show that this client is in connected state, otherwise, show that this client is in non-connected state.According to example shown in step S202: detection of handset customer end A can be distinguished and whether keep connection status with server, detect pc client B and whether keep connection status with server, and whether detection PAD client C keeps connection status with server; If detect that cell-phone customer terminal A and pc client B all keeps connection status with server, and PAD client C and server disconnect, then can show that cell-phone customer terminal A and pc client B is all in connected state, PAD client C is in non-connected state.
S204, by least one corresponding for described communications account client, except described first client and the client being in connected state is defined as the second client.
Example according in step S203: the first client is cell-phone customer terminal A, and pc client B then can be defined as the second client by this step.
The step S202-step S204 of the present embodiment can be the concrete refinement step of step S102 embodiment illustrated in fig. 1.
S205, is synchronized to described second client by the lastest imformation of described associated data, to make described second client according to the lastest imformation of described associated data, and the described associated data after display update.
The step S205 of the present embodiment can the step S103 of embodiment shown in Figure 1, is not repeated herein.
S206, when receiving the logging request that any client corresponding to described communications account sends, the described client that the request of detection logs in whether history of existence login record; If testing result is yes, proceed to step S207; Otherwise, proceed to step S210.
In this step, the described client that the request of detection logs in whether history of existence login record, namely judge that the described client whether described communications account uses request to log in first logs in, if the described client history of existence login record that request logs in, before showing this login, the described client that described communications account has used request to log in is carried out logged, and the described client that described communications account not uses request to log in first logs in; If the described client not history of existence login record that request logs in, before showing this login, the described client that described communications account never uses request to log in is carried out logged, and the described client that described communications account uses request to log in first logs in.Such as: when communications account A uses cell-phone customer terminal D to log in, cell-phone customer terminal D sends logging request, this step detects the login record that whether there is cell-phone customer terminal D in the login list of communications account A, if testing result is yes, then show before this logs in, it is logged that communications account A has used cell-phone customer terminal D to carry out, proceeds to step S207; Otherwise before showing this login, it is logged that communications account A never uses cell-phone customer terminal D to carry out, and proceeds to step S210.
S207, the described client that the request of acquisition the logs in the last historical log time.
In this step, can search request logs in from the login list of described communications account all historical log records of described client, therefrom obtain the last historical log time; According to example shown in step S206: the last historical log time that this step can obtain cell-phone customer terminal D is 2013-2-1-11:00.
S208, according to the described client the last historical log time that request logs in, searches the lastest imformation of the associated data of described communications account.
In this step, according to the described client the last historical log time that request logs in, from all lastest imformations of the associated data of described communications account, search the lastest imformation of the described client the last historical log time that the request of being later than update time logs in; According to example shown in step S207: this step, from all lastest imformations of the associated data of communications account A, searches the lastest imformation being later than 2013-2-1-11:00 update time.
S209, is sent to the described client that request logs in by the lastest imformation of the associated data of the described communications account found; Afterwards, terminate.
It should be noted that, after the lastest imformation of the associated data of the described communications account found is sent to the described client of request login by this step, the described client that request logs in can adopt the lastest imformation received, and upgrades the associated data of communications account described in local data base.The step S207-step S209 of the present embodiment achieves the incremental update process about the associated data of described communications account in the local data base of the described client that request logs in.
S210, searches all lastest imformations of the associated data of described communications account and the associated data of described communications account.
All lastest imformations of the associated data of the described communications account found and the associated data of described communications account are sent to the described client asking to log in by S211 in the lump.
It should be noted that, after all lastest imformations of the associated data of the described communications account found and the associated data of described communications account are sent to the described client that request logs in by this step, the described client that request logs in can in the up-to-date associated data of communications account described in local data library storage.The step S210-step S211 of the present embodiment achieves the full dose renewal process about the associated data of described communications account in the local data base of the described client that request logs in.
Referring to Fig. 3, is the flow chart of another method of data synchronization that the embodiment of the present invention provides; The method can comprise the following steps S301-step S310.
S301, when the first client that communications account is corresponding carries out renewal rewards theory to the associated data of described communications account, obtains the lastest imformation of described associated data.
S302, obtains the login list of described communications account, comprises the identification information of at least one client corresponding to described communications account in described login list.
S303, according to the identification information of at least one client corresponding to described communications account, detects the state of at least one client corresponding to described communications account.
S304, by least one corresponding for described communications account client, except described first client and the client being in connected state is defined as the second client.
S305, is synchronized to described second client by the lastest imformation of described associated data, to make described second client according to the lastest imformation of described associated data, and the described associated data after display update.
S306, when receiving the logging request that any client corresponding to described communications account sends, the described client that the request of detection logs in whether history of existence login record; If testing result is yes, proceed to step S307; Otherwise, proceed to step S310.
The step S301-step S306 of the present embodiment can the step S201-step S206 of embodiment shown in Figure 2, is not repeated herein.It should be noted that, in the present embodiment, in described logging request, carry information pulls instruction and information exploitation time last time; Wherein, described information exploitation instruction, the described client that the request that is used to indicate logs in ask the range of information that pulls, such as: request pulls users personal data corresponding to communications account, or request pulls customer relationship chain data corresponding to communications account, or request pulls a certain good friend's data in customer relationship chain corresponding to communications account, etc.Described last time pulls the time, the described client representing that request logs in obtain last time ask time of the information pulled.
S307, according to described information exploitation instruction and information exploitation time last time, searched the lastest imformation of the associated data of described communications account.
In this step, from all lastest imformations of the associated data of described communications account, search and be later than the information exploitation time last time update time, and more fresh content is positioned at the lastest imformation of the range of information indicated by the instruction of described information exploitation; Such as: from all lastest imformations of the associated data of described communications account, search and be later than the information exploitation time last time update time, and more fresh content is the lastest imformation of users personal data; Or, from all lastest imformations of the associated data of described communications account, search and be later than the information exploitation time last time update time, and more fresh content is the lastest imformation of customer relationship chain data, etc.
S308, is sent to the described client that request logs in by the lastest imformation of the associated data of the described communications account found; Afterwards, terminate.
It should be noted that, after the lastest imformation of the associated data of the described communications account found is sent to the described client of request login by this step, the described client that request logs in can adopt the lastest imformation received, and upgrades the associated data of communications account described in local data base.The step S307-step S308 of the present embodiment achieves the incremental update process about the associated data of described communications account in the local data base of the described client that request logs in.
S309, searches all lastest imformations of the associated data of described communications account and the associated data of described communications account.
All lastest imformations of the associated data of the described communications account found and the associated data of described communications account are sent to the described client asking to log in by S310 in the lump.
The step S309-step S310 of the present embodiment can the step S210-step S211 of embodiment shown in Figure 2, is not repeated herein.
By the embodiment shown in accompanying drawing 1-accompanying drawing 3, in the embodiment of the present invention, when the first client that communications account is corresponding carries out renewal rewards theory to the associated data of described communications account, the lastest imformation of described associated data is synchronized to the second client being in connected state except the first client that this communications account is corresponding, the described associated data after described second client synchronization display update can be made, ensure that the consistency showing data between the first client and the second client, improve the intelligent of client, thus improve the experience of user.
Below in conjunction with accompanying drawing 4-accompanying drawing 7, the structure of a kind of data synchronization unit that the embodiment of the present invention provides is described in detail.It should be noted that, data synchronization unit shown in accompanying drawing 4-accompanying drawing 7, for performing the method for Fig. 1 of the present invention-embodiment illustrated in fig. 3, for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention, concrete ins and outs do not disclose, and please refer to the embodiment shown in Fig. 1-Fig. 3 of the present invention.
Referring to Fig. 4, is the structural representation of a kind of data synchronization unit that the embodiment of the present invention provides; This device can comprise: data obtaining module 101, search module 102 and synchronization module 103.
Data obtaining module 101, when carrying out renewal rewards theory for the first client corresponding when communications account to the associated data of described communications account, obtains the lastest imformation of described associated data.
The associated data of described communications account can include but not limited to: the users personal data that described communications account is corresponding and customer relationship chain data; Such as: the associated data of instant messaging account can include but not limited to: the users personal data such as the pet name of instant communication users, individualized signature, the mark of instant messaging group that adds, and good friend's data of instant communication users, good friend's data in instant messaging group etc.Same communications account may correspond to multiple client, such as: communications account A both can corresponding cell-phone customer terminal A, again can corresponding pc client B, can also corresponding PAD client C.The user that communications account is corresponding can carry out renewal rewards theory in any client that communications account is corresponding to the associated data of communications account, such as: the user that communications account A is corresponding revises user's pet name etc. by cell-phone customer terminal A.Described data obtaining module 101 when the first client that communications account is corresponding carries out renewal rewards theory to the associated data of described communications account, the lastest imformation of the associated data of obtaining communication account; Wherein, the lastest imformation of described associated data includes but not limited to: update time of described associated data, carry out the action type of renewal rewards theory and the more fresh content of described associated data to described associated data.
Search module 102, for search described communications account corresponding except described first client, and be in the second client of connected state.
According to the above-mentioned example of the present embodiment, the first client that communications account A is corresponding is cell-phone customer terminal A, and communications account A is corresponding pc client B and PAD client C also; Wherein, pc client B is in connected state, and described in search communications account A before module 102 is searched and logged off from PAD client C, PAD client C is in non-connected state; Described module 102 of searching searches pc client B corresponding to communications account A as the second client.
Synchronization module 103, for the lastest imformation of described associated data is synchronized to described second client, to make described second client according to the lastest imformation of described associated data, the described associated data after display update.
After the lastest imformation of described associated data is synchronized to described second client by described synchronization module 103, described second client is according to the lastest imformation of described associated data, described associated data after display update, thus the consistency that can ensure the associated data of described communications account shown between the first client and the second client; Above-mentioned example according to the present embodiment: after cell-phone customer terminal A carries out renewal rewards theory to the associated data of communications account A, pc client B can simultaneous display upgrade after described associated data, thus ensure that the consistency showing data between cell-phone customer terminal A and pc client B.It should be noted that, the lastest imformation that described synchronization module 103 is synchronized to the associated data of the second client carries out the simultaneous display of associated data for the second client, and the renewal be not used in about the associated data of described communications account in the second client local data base, this is because the second client in synchronizing process may be changed to disconnected state by connected state, such as: communications account is logged off in the second client, or second client be in resting state, etc., thus make the second client cannot receive complete lastest imformation, the renewal integrality of the second client local data base about the associated data of described communications account cannot be ensured.
Referring to Fig. 5, is the structural representation of the another kind of data synchronization unit that the embodiment of the present invention provides; This device can comprise: data obtaining module 101, search module 102 and synchronization module 103.Alternatively, this device also can comprise: the first login detection module 104, time-obtaining module 105, the first information search module 106 and the first update module 107.Alternatively, this device also can comprise: the 3rd information searching module 108 and the 3rd update module 109.Wherein, data obtaining module 101, the 26S Proteasome Structure and Function searching module 102 and synchronization module 103 can the associated description of embodiment shown in Figure 4, is not repeated herein.
First logs in detection module 104, for when receiving the logging request that any client corresponding to described communications account sends, detects the described client whether history of existence login record of request login.
Described first logs in detection module 104 detects the described client whether history of existence login record that request logs in, namely judge that the described client whether described communications account uses request to log in first logs in, if the described client history of existence login record that request logs in, before showing this login, the described client that described communications account has used request to log in is carried out logged, and the described client that described communications account not uses request to log in first logs in; If the described client not history of existence login record that request logs in, before showing this login, the described client that described communications account never uses request to log in is carried out logged, and the described client that described communications account uses request to log in first logs in.Such as: when communications account A uses cell-phone customer terminal D to log in, cell-phone customer terminal D sends logging request, described first logs in detection module 104 detects the login record that whether there is cell-phone customer terminal D in the login list of communications account A, if testing result is yes, then show that it is logged that communications account A has used cell-phone customer terminal D to carry out before this logs in; Otherwise before showing this login, it is logged that communications account A never uses cell-phone customer terminal D to carry out.
Time-obtaining module 105, if the described client history of existence login record logged in for request, the described client that the request of acquisition the logs in the last historical log time.
In the present embodiment, the login list of each communications account of server maintenance, after each communications account uses client to log in, login record can be added in the login list of each communications account by server.Article one, login record comprises identification information and the login time of a client.The identification information of at least one client corresponding to described communications account is comprised in described login list; The identification information of a client is used for unique identification client.Described time-obtaining module 105 can search request logs in from the login list of described communications account all historical log records of described client, therefrom obtain the last historical log time; Above-mentioned example according to the present embodiment: the last historical log time that described time-obtaining module 105 can obtain cell-phone customer terminal D is 2013-2-1-11:00.
The first information searches module 106, the last historical log time of the described client for logging according to request, searches the lastest imformation of the associated data of described communications account.
The described first information searches the described client the last historical log time that module 106 logs according to request, from all lastest imformations of the associated data of described communications account, search the lastest imformation of the described client the last historical log time that the request of being later than update time logs in; Above-mentioned example according in the present embodiment: the described first information searches module 106 from all lastest imformations of the associated data of communications account A, searches the lastest imformation being later than 2013-2-1-11:00 update time.
First update module 107, the lastest imformation for the associated data by the described communications account found is sent to the described client that request logs in.
It should be noted that, after the lastest imformation of the associated data of the described communications account found is sent to the described client of request login by described first update module 107, the described client that request logs in can adopt the lastest imformation received, and upgrades the associated data of communications account described in local data base.In the present embodiment, described time-obtaining module 105, the described first information search the setting of module 106 and described first update module 107, achieve the incremental update process about the associated data of described communications account in the local data base of the described client that request logs in.
3rd information searching module 108, if the non-history of existence login record of described client logged in for request, searches all lastest imformations of the associated data of described communications account and the associated data of described communications account.
3rd update module 109, if the non-history of existence login record of described client logged in for request, searches all lastest imformations of the associated data of described communications account and the associated data of described communications account.
It should be noted that, after all lastest imformations of the associated data of the described communications account found and the associated data of described communications account are sent to the described client that request logs in by described 3rd update module 109, the described client that request logs in can in the up-to-date associated data of communications account described in local data library storage.The described 3rd information searching module 108 of the present embodiment and described 3rd update module 109 achieve the full dose renewal process about the associated data of described communications account in the local data base of the described client that request logs in.
Referring to Fig. 6, is the structural representation of another data synchronization unit that the embodiment of the present invention provides; This device can comprise: data obtaining module 101, search module 102 and synchronization module 103.Alternatively, this device also can comprise: the 3rd information searching module 108 and the 3rd update module 109.Alternatively, this device also can comprise: second logs in detection module 110, second information searching module 111 and the second update module 112.Wherein, data obtaining module 101, the 26S Proteasome Structure and Function of searching module 102, synchronization module 103, the 3rd information searching module 108 and the 3rd update module 109 see Fig. 4 and associated description embodiment illustrated in fig. 5, can be not repeated herein.
Second logs in detection module 110, for when receiving the logging request that any client corresponding to described communications account sends, detects the described client whether history of existence login record of request login.
Wherein, in described logging request, carry information pulls instruction and information exploitation time last time.Wherein, described information exploitation instruction, the described client that the request that is used to indicate logs in ask the range of information that pulls, such as: request pulls users personal data corresponding to communications account, or request pulls customer relationship chain data corresponding to communications account, or request pulls a certain good friend's data in customer relationship chain corresponding to communications account, etc.Described last time pulls the time, the described client representing that request logs in obtain last time ask time of the information pulled.
Second information searching module 111, if the described client history of existence login record logged in for request, according to described information exploitation instruction and information exploitation time last time, searched the lastest imformation of the associated data of described communications account.
Described second information searching module 111, from all lastest imformations of the associated data of described communications account, is searched and is later than the information exploitation time last time update time, and more fresh content is positioned at the lastest imformation of the range of information indicated by the instruction of described information exploitation; Such as: from all lastest imformations of the associated data of described communications account, search and be later than the information exploitation time last time update time, and more fresh content is the lastest imformation of users personal data; Or, from all lastest imformations of the associated data of described communications account, search and be later than the information exploitation time last time update time, and more fresh content is the lastest imformation of customer relationship chain data, etc.
Second update module 112, the lastest imformation for the associated data by the described communications account found is sent to the described client that request logs in.
It should be noted that, after the lastest imformation of the associated data of the described communications account found is sent to the described client of request login by described second update module 112, the described client that request logs in can adopt the lastest imformation received, and upgrades the associated data of communications account described in local data base.The described second information searching module 111 of the present embodiment and described second update module 112 achieve the incremental update process about the associated data of described communications account in the local data base of the described client that request logs in.
Referring to Fig. 7, is the structural representation searching module that the embodiment of the present invention provides; This is searched module 102 and can comprise: list acquiring unit 1201, state detection unit 1202 and determining unit 1203.
List acquiring unit 1201, for obtaining the login list of described communications account, comprises the identification information of at least one client corresponding to described communications account in described login list.
In the present embodiment, the login list of each communications account of server maintenance, after each communications account uses client to log in, login record can be added in the login list of each communications account by server.Article one, login record comprises identification information and the login time of a client.The identification information of at least one client corresponding to described communications account is comprised in described login list; The identification information of a client is used for unique identification client.Described list acquiring unit 1201 can obtain the login list of described communications account from server, such as: communications account A logs in respectively by cell-phone customer terminal A, pc client B and PAD client C, then described list acquiring unit 1201 can the login list of obtaining communication account A, comprises the identification information of the identification information of cell-phone customer terminal A, the identification information of pc client B and PAD client C in this login list.
State detection unit 1202, for the identification information according at least one client corresponding to described communications account, detects the state of at least one client corresponding to described communications account.
Described state detection unit 1202 can detect at least one client corresponding to described communications account and whether keep connection status with server, if a certain client and server keep connection status, then show that this client is in connected state, otherwise, show that this client is in non-connected state.Above-mentioned example according to the present embodiment: can distinguish detection of handset customer end A and whether keep connection status with server, detects pc client B and whether keeps connection status with server, and whether detection PAD client C keeps connection status with server; If detect that cell-phone customer terminal A and pc client B all keeps connection status with server, and PAD client C and server disconnect, then can show that cell-phone customer terminal A and pc client B is all in connected state, PAD client C is in non-connected state.
Determining unit 1203, for by least one corresponding for described communications account client, except described first client and the client being in connected state is defined as the second client.
Above-mentioned example according to the present embodiment: the first client is cell-phone customer terminal A, pc client B can be defined as the second client by described determining unit 1203.
By the attached description embodiment illustrated in fig. 7 of above-mentioned accompanying drawing 4-, in the embodiment of the present invention, when the first client that communications account is corresponding carries out renewal rewards theory to the associated data of described communications account, the lastest imformation of described associated data is synchronized to the second client being in connected state except the first client that this communications account is corresponding, the described associated data after described second client synchronization display update can be made, ensure that the consistency showing data between the first client and the second client, improve the intelligent of client, thus improve the experience of user.
The embodiment of the invention also discloses a kind of server, this server can comprise a data synchronization unit, and the 26S Proteasome Structure and Function of this data synchronization unit see the attached description embodiment illustrated in fig. 7 of accompanying drawing 4-, can be not repeated herein.It should be noted that, the server of the present embodiment can be applied in the method shown in Fig. 1-Fig. 3.
By the description of above-described embodiment, in the embodiment of the present invention, when the first client that communications account is corresponding carries out renewal rewards theory to the associated data of described communications account, the lastest imformation of described associated data is synchronized to the second client being in connected state except the first client that this communications account is corresponding, the described associated data after described second client synchronization display update can be made, ensure that the consistency showing data between the first client and the second client, improve the intelligent of client, thus improve the experience of user.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (13)

CN201310288024.7A2013-07-102013-07-10A kind of method of data synchronization, device and serverActiveCN104283926B (en)

Priority Applications (4)

Application NumberPriority DateFiling DateTitle
CN201310288024.7ACN104283926B (en)2013-07-102013-07-10A kind of method of data synchronization, device and server
TW103123672ATWI535327B (en)2013-07-102014-07-09Apparatus, server and method of data synchronization between clients of communication account
PCT/CN2014/081865WO2015003628A1 (en)2013-07-102014-07-09Data synchronization method, apparatus, and server
HK15102234.5AHK1202003B (en)2015-03-05Data synchronization method, apparatus and server

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201310288024.7ACN104283926B (en)2013-07-102013-07-10A kind of method of data synchronization, device and server

Publications (2)

Publication NumberPublication Date
CN104283926Atrue CN104283926A (en)2015-01-14
CN104283926B CN104283926B (en)2019-01-29

Family

ID=52258402

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201310288024.7AActiveCN104283926B (en)2013-07-102013-07-10A kind of method of data synchronization, device and server

Country Status (3)

CountryLink
CN (1)CN104283926B (en)
TW (1)TWI535327B (en)
WO (1)WO2015003628A1 (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106411692A (en)*2016-06-292017-02-15宁波市由乐讯通讯科技有限公司Improved method and system enabling information synchronization between mobile end and server end
CN106411718A (en)*2016-11-042017-02-15宇龙计算机通信科技(深圳)有限公司Instant messaging application-based data synchronization method and device
CN106503221A (en)*2016-10-282017-03-15福建中金在线信息科技有限公司A kind of data analysis processing method and device
CN106874316A (en)*2015-12-142017-06-20广州爱九游信息技术有限公司A kind of methods of exhibiting of user's combined data, device and server
WO2018076868A1 (en)*2016-10-252018-05-03广东欧珀移动通信有限公司Data synchronization method, device and system, storage medium and server
CN108023940A (en)*2017-11-202018-05-11广东欧珀移动通信有限公司 Information update method, device, server and readable storage medium
CN108075965A (en)*2017-12-132018-05-25北京小米移动软件有限公司Message treatment method and device, electronic equipment and computer readable storage medium
CN110224924A (en)*2019-05-212019-09-10腾讯科技(深圳)有限公司State updating method and device, storage medium and electronic device
CN110990361A (en)*2019-12-052020-04-10河南知途游道信息科技有限公司Method and system for recording notes for others by user
CN111491210A (en)*2020-03-252020-08-04西安万像电子科技有限公司Data processing method, device and system
CN112311840A (en)*2019-08-302021-02-02北京字节跳动网络技术有限公司Multi-terminal data synchronization method, device, equipment and medium
CN114710509A (en)*2022-04-142022-07-05北京思必拓科技有限责任公司Application data synchronization method, device, terminal and storage medium
CN115118735A (en)*2022-06-082022-09-27腾讯科技(深圳)有限公司Data synchronization method, group management method, device, equipment and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN116506172A (en)*2023-04-242023-07-28深圳市星卡科技股份有限公司Method and device for accessing multiple platforms

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20060136519A1 (en)*2004-12-172006-06-22Anurag BattaSystem and method for user database synchronization
CN101257375A (en)*2006-12-312008-09-03华为技术有限公司 Method and device for realizing message synchronization of multiple terminals
CN101340274A (en)*2008-08-212009-01-07北京搜狗科技发展有限公司Data synchronizing method and apparatus
TW200925989A (en)*2007-12-042009-06-16Inventec CorpMethod to synchronize personalized information and execute personalized environment
CN103024062A (en)*2012-12-242013-04-03腾讯科技(深圳)有限公司Data sharing method, clients and data sharing system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102130845B (en)*2010-01-192016-09-28中兴通讯股份有限公司The sending method of return receipt report and processing system
CN103327037B (en)*2012-03-202017-09-29中兴通讯股份有限公司Method of data synchronization and device
CN103546435A (en)*2012-07-132014-01-29中兴通讯股份有限公司Data synchronizing method and server
CN103685361B (en)*2012-09-062017-03-22中国移动通信集团公司Data synchronization method and system, and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20060136519A1 (en)*2004-12-172006-06-22Anurag BattaSystem and method for user database synchronization
CN101257375A (en)*2006-12-312008-09-03华为技术有限公司 Method and device for realizing message synchronization of multiple terminals
TW200925989A (en)*2007-12-042009-06-16Inventec CorpMethod to synchronize personalized information and execute personalized environment
CN101340274A (en)*2008-08-212009-01-07北京搜狗科技发展有限公司Data synchronizing method and apparatus
CN103024062A (en)*2012-12-242013-04-03腾讯科技(深圳)有限公司Data sharing method, clients and data sharing system

Cited By (16)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106874316A (en)*2015-12-142017-06-20广州爱九游信息技术有限公司A kind of methods of exhibiting of user's combined data, device and server
CN106411692A (en)*2016-06-292017-02-15宁波市由乐讯通讯科技有限公司Improved method and system enabling information synchronization between mobile end and server end
WO2018076868A1 (en)*2016-10-252018-05-03广东欧珀移动通信有限公司Data synchronization method, device and system, storage medium and server
CN106503221A (en)*2016-10-282017-03-15福建中金在线信息科技有限公司A kind of data analysis processing method and device
CN106411718A (en)*2016-11-042017-02-15宇龙计算机通信科技(深圳)有限公司Instant messaging application-based data synchronization method and device
CN106411718B (en)*2016-11-042020-02-21宇龙计算机通信科技(深圳)有限公司Data synchronization method and device based on instant messaging application
CN108023940B (en)*2017-11-202020-01-14Oppo广东移动通信有限公司Information updating method, device, server and readable storage medium
CN108023940A (en)*2017-11-202018-05-11广东欧珀移动通信有限公司 Information update method, device, server and readable storage medium
CN108075965A (en)*2017-12-132018-05-25北京小米移动软件有限公司Message treatment method and device, electronic equipment and computer readable storage medium
CN110224924A (en)*2019-05-212019-09-10腾讯科技(深圳)有限公司State updating method and device, storage medium and electronic device
CN112311840A (en)*2019-08-302021-02-02北京字节跳动网络技术有限公司Multi-terminal data synchronization method, device, equipment and medium
CN110990361A (en)*2019-12-052020-04-10河南知途游道信息科技有限公司Method and system for recording notes for others by user
CN111491210A (en)*2020-03-252020-08-04西安万像电子科技有限公司Data processing method, device and system
CN114710509A (en)*2022-04-142022-07-05北京思必拓科技有限责任公司Application data synchronization method, device, terminal and storage medium
CN115118735A (en)*2022-06-082022-09-27腾讯科技(深圳)有限公司Data synchronization method, group management method, device, equipment and storage medium
CN115118735B (en)*2022-06-082023-12-01腾讯科技(深圳)有限公司Data synchronization method, group management method, device, equipment and storage medium

Also Published As

Publication numberPublication date
WO2015003628A1 (en)2015-01-15
TWI535327B (en)2016-05-21
CN104283926B (en)2019-01-29
HK1202003A1 (en)2015-09-11
TW201503741A (en)2015-01-16

Similar Documents

PublicationPublication DateTitle
CN104283926A (en)Data synchronization method, device and server
EP3075177B1 (en)Method, apparatus and device for exchanging name card
CN102819461B (en)Desktop synchronous method, device, equipment and system
CN103812755A (en)Message synchronization method and device in instant messaging application
CN102223361A (en)Communication system and related data synchronization method thereof
CN103634337A (en)Page recovery method, device and mobile terminal
CN103778395B (en)Application installation method in near-field communication NFC terminal and NFC terminal
CN102158593A (en)Application displaying method and terminal
CN105320616B (en)External device control method and device
CN104283765A (en)Information display method and device and terminal equipment
CN103281798A (en)Method, device and system for achieving modification synchronization
CN103905495A (en)Application synchronization method and backstage server
CN102904903A (en) Communication system and communication method
CN104796322A (en)Message processing method and equipment
CN102185701A (en)Method and system for realizing group information interaction
CN104468947B (en)A kind of information processing method and electronic equipment
CN102594716A (en)Method, system and device for transmitting instant communication message
CN103686688A (en)Method and device for protecting user address list of mobile terminal and mobile terminal
EP3506599A1 (en)Method for synchronizing contact information, apparatus, medium, electronic device and system
CN105530222A (en)Method for establishing connection among terminals, and device and system
CN102333148A (en)Method and system for displaying security data information of mobile terminal
CN114258007A (en)SIM card management method, device and computer storage medium
CN102932513B (en)A kind of business card maintaining method, device and equipment
CN102523271A (en)Terminal and communication method and system thereof
CN105302617A (en)Method and sever for downloading application program

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
REGReference to a national code

Ref country code:HK

Ref legal event code:DE

Ref document number:1202003

Country of ref document:HK

C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp