TWI535327B - Apparatus, server and method of data synchronization between clients of communication account - Google Patents

Apparatus, server and method of data synchronization between clients of communication account Download PDF

Info

Publication number
TWI535327B
TWI535327B TW103123672A TW103123672A TWI535327B TW I535327 B TWI535327 B TW I535327B TW 103123672 A TW103123672 A TW 103123672A TW 103123672 A TW103123672 A TW 103123672A TW I535327 B TWI535327 B TW I535327B
Authority
TW
Taiwan
Prior art keywords
client
login
communication account
associated data
information
Prior art date
Application number
TW103123672A
Other languages
Chinese (zh)
Other versions
TW201503741A (en
Inventor
張雲鵬
董江德
蔡志國
陳家輝
Original Assignee
騰訊科技(深圳)有限公司
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 騰訊科技(深圳)有限公司 filed Critical 騰訊科技(深圳)有限公司
Publication of TW201503741A publication Critical patent/TW201503741A/en
Application granted granted Critical
Publication of TWI535327B publication Critical patent/TWI535327B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/54Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Description

通信帳號各客戶端之間數據同步方法、裝置及伺服器 Data synchronization method, device and server between communication client accounts

本發明係關係於一種數據同步方法、裝置及伺服器,尤其是一種網路通信帳號各客戶端之間數據同步方法、裝置及伺服器。 The invention relates to a data synchronization method, device and server, in particular to a data synchronization method, device and server between clients of a network communication account.

隨著網路技術的發展,同一通信帳號可同時在多個客戶端操作,例如:同一即時通信帳號可同時在手機客戶端和PC(Personal Computer,個人電腦)客戶端進行登錄,並可利用手機客戶端和PC客戶端與其他即時通信帳號進行信息交換。然而,現有技術中,同一通信帳號對應的多個客戶端之間的數據無法及時同步,按照上述例子:手機客戶端對即時通信帳號的關聯數據(例如:用戶資料數據)進行更新操作時,PC客戶端無法同步顯示更新後的即時通信帳號的關聯數據,從而影響手機客戶端與PC客戶端顯示數據的一致性,降低了客戶端的智能性,影響了用戶的使用體驗。 With the development of network technology, the same communication account can be operated on multiple clients at the same time. For example, the same instant messaging account can simultaneously log in to the mobile client and PC (Personal Computer) client, and can use the mobile phone. The client and PC client exchange information with other instant messaging accounts. However, in the prior art, data between multiple clients corresponding to the same communication account cannot be synchronized in time. According to the above example: when the mobile client updates the associated data of the instant communication account (for example, user profile data), the PC The client cannot synchronously display the associated data of the updated instant messaging account, thereby affecting the consistency of the display data between the mobile client and the PC client, reducing the intelligence of the client and affecting the user experience.

本發明之一實施例中一種通信帳號各客戶端之間數據同步方法、裝置及伺服器,使同一通信帳號對應的各個客戶端之間具有一致性,提升客戶端的智能性,提升用戶的使用體驗。 In an embodiment of the present invention, a method, a device, and a server for synchronizing data between clients of a communication account enable consistency between clients corresponding to the same communication account, thereby improving the intelligence of the client and improving the user experience. .

本發明之一實施例中,一種通信帳號各客戶端之間數據同步方法,所述方法包括:當通信帳號對應的第一客戶端對所述通信帳號的關聯數據進行更新操作時,獲取所述關聯數據的更新信息;搜尋所述通信帳號對應的所述第一客戶端,以及處於連接狀態的第二客戶端;將所述關聯數據的更新信息同步至所述第二客戶端,以使所述第二客戶端顯示更新後的所述關聯數據。 In an embodiment of the present invention, a method for synchronizing data between clients of a communication account, the method includes: when the first client corresponding to the communication account updates the associated data of the communication account, acquiring the Updating the update information of the associated data; searching the first client corresponding to the communication account, and the second client in the connected state; synchronizing the update information of the associated data to the second client, so as to The second client displays the updated associated data.

本發明之另一實施例中,一種通信帳號各客戶端之間數據同步裝置,可包括:信息獲取模塊,用於當通信帳號對應的第一客戶端對所述通信帳號的關聯數據進行更新操作時,獲取所述關聯數據的更新信息;搜尋模塊,用於搜尋所述通信帳號對應的所述第一客戶端,以及處於連接狀態的第二客戶端;同步模塊,用於將所述關聯數據的更新信息同步至所述第二客戶端,以使所述第二客戶端顯示更新後的所述關聯數據。 In another embodiment of the present invention, a data synchronization device between the clients of the communication account may include: an information acquisition module, configured to: when the first client corresponding to the communication account updates the associated data of the communication account And acquiring, by the search module, the first client that is corresponding to the communication account, and the second client that is in a connected state; and a synchronization module, configured to use the associated data The update information is synchronized to the second client, so that the second client displays the updated associated data.

本發明之另一實施例中,一種伺服器,可包括上述實施例所述的數據同步裝置。 In another embodiment of the present invention, a server may include the data synchronization device described in the above embodiments.

當通信帳號對應的第一客戶端對所述通信帳號的關聯數據進行更新操作時,將所述關聯數據的更新信息同步至該通信帳號對應的除第一客戶端之外處於連接狀態的第二客戶端,可以使所述第二客戶端同步顯示更新後的所述關 聯數據,使第一客戶端與第二客戶端顯示數據具有一致性,提升了客戶端的智能性,從而提升了用戶的使用體驗。 When the first client corresponding to the communication account performs an update operation on the associated data of the communication account, the update information of the associated data is synchronized to the second connection state of the communication account other than the first client. The client may enable the second client to synchronously display the updated The data is combined to make the first client and the second client display data consistent, which improves the intelligence of the client, thereby improving the user experience.

為讓本發明之上述和其他目的、特徵和優點能更明顯易懂,下文特舉較佳實施例,並配合圖式,作詳細說明如下。 The above and other objects, features and advantages of the present invention will become more <RTIgt;

S101~S103‧‧‧步驟 S101~S103‧‧‧Steps

S201~S211‧‧‧步驟 S201~S211‧‧‧Steps

S301~S310‧‧‧步驟 S301~S310‧‧‧Steps

101‧‧‧信息獲取模塊 101‧‧‧Information acquisition module

102‧‧‧搜尋模塊 102‧‧‧Search module

103‧‧‧同步模塊 103‧‧‧Synchronization module

104‧‧‧第一登錄檢測模塊 104‧‧‧First login detection module

105‧‧‧時間獲取模塊 105‧‧‧Time acquisition module

106‧‧‧第一信息搜尋模塊 106‧‧‧First Information Search Module

107‧‧‧第一更新模塊 107‧‧‧First update module

108‧‧‧第三信息搜尋模塊 108‧‧‧ Third Information Search Module

109‧‧‧第三更新模塊 109‧‧‧ third update module

110‧‧‧第二登錄檢測模塊 110‧‧‧Second login detection module

111‧‧‧第二信息搜尋模塊 111‧‧‧Second information search module

112‧‧‧第二更新模塊 112‧‧‧Second update module

1201‧‧‧列表獲取單元 1201‧‧‧List acquisition unit

1202‧‧‧狀態檢測單元 1202‧‧‧Status detection unit

1203‧‧‧確定單元 1203‧‧‧Determining unit

圖1為本發明之一實施例的通信帳號之各客戶端之間數據同步方法流程圖;圖2為本發明之另一實施例的通信帳號之各客戶端之間數據同步方法流程圖;圖3為本發明之另一實施例的通信帳號之各客戶端之間數據同步方法的流程圖;圖4為本發明之一實施例的通信帳號之各客戶端之間數據同步裝置的結構示意圖;圖5為本發明之另一實施例的通信帳號之各客戶端之間數據同步裝置的結構示意圖;圖6為本發明之另一實施例的通信帳號之各客戶端之間數據同步裝置的結構示意圖;圖7為本發明之一實施例的數據同步裝置的搜尋模塊之結構示意圖。 1 is a flowchart of a method for synchronizing data between clients of a communication account according to an embodiment of the present invention; FIG. 2 is a flowchart of a method for synchronizing data between clients of a communication account according to another embodiment of the present invention; 3 is a flowchart of a data synchronization method between clients of a communication account according to another embodiment of the present invention; FIG. 4 is a schematic structural diagram of a data synchronization device between clients of a communication account according to an embodiment of the present invention; FIG. 5 is a schematic structural diagram of a data synchronization device between clients of a communication account according to another embodiment of the present invention; FIG. 6 is a structural diagram of a data synchronization device between clients of a communication account according to another embodiment of the present invention; FIG. 7 is a schematic structural diagram of a search module of a data synchronization apparatus according to an embodiment of the present invention.

有關本發明之前述及其他技術內容、特點與功效,在以下配合參考圖式之一較佳實施例的詳細說明中,將 可清楚的呈現。以下實施例中所提到的方向用語,例如:上、下、左、右、前或後等,僅是參考附加圖式的方向。因此,使用的方向用語是用來說明並非用來限制本發明。 The foregoing and other technical contents, features and effects of the present invention will be described in the following detailed description of a preferred embodiment of the drawings. Can be clearly presented. The directional terms mentioned in the following embodiments, such as up, down, left, right, front or back, etc., are only directions referring to the additional drawings. Therefore, the directional terminology used is for the purpose of illustration and not limitation.

為了使本發明的目的、技術方案及優點更加清楚明白,以下結合圖及實施例,對本發明進行進一步詳細說明。應當理解,此處所描述的具體實施例僅僅用以解釋本發明,並不用於限定本發明。 In order to make the objects, technical solutions and advantages of the present invention more comprehensible, the present invention will be further described in conjunction with the drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

本發明中,客戶端可以為終端設備,例如:PC、PAD(平板電腦)、手機、智慧型手機、筆記型電腦等設備。客戶端也可以為終端設備中的客戶端模塊,例如:即時通信客戶端、SNS(Social Networking Services,社交網路服務)客戶端等等。通信帳號可以為即時通信帳號、手機號碼、email帳號等等,用來標識成為唯一的通信用戶。通信帳號對應的客戶端指通信帳號的登錄客戶端,即通信帳號通過所述通信帳號對應的客戶端登錄至通信系統。 In the present invention, the client may be a terminal device, such as a PC, a PAD (tablet), a mobile phone, a smart phone, a notebook computer, and the like. The client can also be a client module in the terminal device, for example, an instant messaging client, a SNS (Social Networking Services) client, and the like. The communication account can be an instant messaging account, a mobile phone number, an email account, etc., and is used to identify a unique communication user. The client corresponding to the communication account refers to the login client of the communication account, that is, the communication account logs in to the communication system through the client corresponding to the communication account.

本發明中,通信帳號對應的第一客戶端可以為通信帳號登錄至通信系統所使用的任一個客戶端。通信帳號對應的第二客戶端可以為通信帳號登錄至通信系統所使用的至少一個客戶端中,除上述第一客戶端之外的任一個客戶端。客戶端處於連接狀態,表示客戶端與數據同步裝置保持連接狀態,此時客戶端對應的用戶狀態可以顯示為在線狀態、隱身狀態、離開狀態;客戶端未處於連接狀態,包括退出登錄狀態和休眠狀態,表示客戶端與數據同步裝置未保持連接狀態,此時客戶端對應的用戶狀態可以顯示為離線狀態。除特別說明外,本發明後續實施例中,客戶端以即時通信客戶端為例進行說明。 In the present invention, the first client corresponding to the communication account can log in to any client used by the communication system for the communication account. The second client corresponding to the communication account may log in to the at least one client used by the communication system for the communication account, and any client other than the first client. The client is in the connected state, indicating that the client is connected to the data synchronization device. At this time, the user state corresponding to the client can be displayed as online, invisible, and away; the client is not in the connected state, including the logout state and hibernation. The status indicates that the client and the data synchronization device are not connected, and the user status corresponding to the client can be displayed as offline. In the following embodiments of the present invention, the client uses an instant messaging client as an example for description.

下面將結合圖1-圖3,對本發明實施例的通信帳號之各客戶端之間數據同步方法進行詳細介紹。 The data synchronization method between clients of the communication account of the embodiment of the present invention will be described in detail below with reference to FIG. 1 to FIG. 3.

請參見圖1,為本發明之一實施例的通信帳號之各客戶端之間數據同步的方法流程圖;該方法包括以下步驟S101-步驟S103。 1 is a flowchart of a method for data synchronization between clients of a communication account according to an embodiment of the present invention; the method includes the following steps S101 to S103.

S101,當通信帳號對應的第一客戶端對所述通信帳號的關聯數據進行更新操作時,獲取所述關聯數據的更新信息。 S101. Acquire update information of the associated data when the first client corresponding to the communication account performs an update operation on the associated data of the communication account.

所述通信帳號的關聯數據可以包括但不限於:所述通信帳號對應的用戶個人數據和用戶關係鏈數據;例如:即時通信帳號的關聯數據可以包括但不限於:即時通信用戶的暱稱、個性簽名、加入的即時通信群組的標識等用戶個人數據,以及即時通信用戶的好友數據、即時通信群組中的好友數據等等。同一通信帳號可對應多個客戶端,例如:通信帳號A既可以對應手機客戶端A,又可以對應PC客戶端B,還可以對應PAD客戶端C。通信帳號對應的用戶可以在通信帳號對應的任一客戶端對通信帳號的關聯數據進行更新操作,例如:通信帳號A對應的用戶可通過手機客戶端A修改用戶暱稱等等。本步驟當通信帳號對應的第一客戶端對所述通信帳號的關聯數據進行更新操作時,獲取通信帳號的關聯數據的更新信息;其中,所述關聯數據的更新信息包括但不限於:所述關聯數據的更新時間、對所述關聯數據進行更新操作的操作類型和所述關聯數據的更新內容。 The associated data of the communication account may include, but is not limited to, user personal data and user relationship chain data corresponding to the communication account; for example, the associated data of the instant messaging account may include, but is not limited to, a nickname and a personalized signature of the instant communication user. User personal data such as the identity of the joined instant messaging group, as well as the friend data of the instant messaging user, the friend data in the instant messaging group, and the like. The same communication account can correspond to multiple clients. For example, the communication account A can correspond to the mobile client A and the PC client B, and can also correspond to the PAD client C. The user corresponding to the communication account can update the associated data of the communication account on any client corresponding to the communication account. For example, the user corresponding to the communication account A can modify the user nickname through the mobile client A. In this step, when the first client corresponding to the communication account performs an update operation on the associated data of the communication account, the update information of the associated data of the communication account is obtained, where the update information of the associated data includes but is not limited to: The update time of the associated data, the type of operation for performing the update operation on the associated data, and the updated content of the associated data.

S102,搜尋所述通信帳號對應的所述第一客戶端,以及處於連接狀態的第二客戶端。 S102. Search for the first client corresponding to the communication account and the second client in a connected state.

按照步驟S102中的例子,通信帳號A對應的第 一客戶端為手機客戶端A,通信帳號A還對應PC客戶端B和PAD客戶端C;其中,PC客戶端B處於連接狀態,而執行本步驟之前通信帳號A已從PAD客戶端C退出登錄,PAD客戶端C處於未連接狀態;本步驟則搜尋通信帳號A對應的PC客戶端B作為第二客戶端。 According to the example in step S102, the communication account A corresponds to the first A client is the mobile client A, and the communication account A also corresponds to the PC client B and the PAD client C; wherein the PC client B is in the connected state, and the communication account A has logged out from the PAD client C before performing this step. The PAD client C is in an unconnected state; in this step, the PC client B corresponding to the communication account A is searched for as the second client.

S103,將所述關聯數據的更新信息同步至所述第二客戶端,以使所述第二客戶端顯示更新後的所述關聯數據。 S103. Synchronize update information of the associated data to the second client, so that the second client displays the updated associated data.

本步驟中,所述關聯數據的更新信息同步至所述第二客戶端之後,所述第二客戶端顯示更新後的所述關聯數據,從而使第一客戶端與第二客戶端所顯示的所述通信帳號的關聯數據具有一致性;按照步驟S101和步驟S102中的例子:手機客戶端A對通信帳號A的關聯數據進行更新操作之後,PC客戶端B可同步顯示更新後的所述關聯數據,使手機客戶端A與PC客戶端B之間顯示數據具有一致性。本步驟中,同步至第二客戶端的關聯數據的更新信息用於第二客戶端進行關聯數據的同步顯示,而不用於第二客戶端本地資料庫中關於所述通信帳號的關聯數據的更新,這是由於同步過程中第二客戶端可能由連接狀態變化為非連接狀態,例如:通信帳號在第二客戶端退出登錄,或第二客戶端處於休眠狀態,等等,使得第二客戶端無法接收完整的更新信息,無法保證第二客戶端本地資料庫關於所述通信帳號的關聯數據的更新完整性。 In this step, after the update information of the associated data is synchronized to the second client, the second client displays the updated associated data, so that the first client and the second client display The associated data of the communication account has consistency; according to the example in step S101 and step S102: after the mobile client A updates the associated data of the communication account A, the PC client B can synchronously display the updated association. The data makes the data displayed between the mobile client A and the PC client B consistent. In this step, the update information of the associated data synchronized to the second client is used for the second client to perform synchronous display of the associated data, and is not used for updating the associated data of the communication account in the second client local database. This is because the second client may change from the connection state to the non-connected state during the synchronization process, for example, the communication account is logged out at the second client, or the second client is in the sleep state, etc., so that the second client cannot Receiving the complete update information, the update integrity of the associated data of the second client local database with respect to the communication account cannot be guaranteed.

請參見圖2,為本發明另一實施例的通信帳號之各客戶端之間數據同步之方法流程圖;該方法可包括:步驟S201-步驟S211。 2 is a flowchart of a method for synchronizing data between clients of a communication account according to another embodiment of the present invention; the method may include: step S201 - step S211.

S201,當通信帳號對應的第一客戶端對所述通信 帳號的關聯數據進行更新操作時,獲取所述關聯數據的更新信息。本實施例的步驟S201可參見圖1所示實施例的步驟S101,在此不贅述。 S201: When the communication client accounts correspond to the first client, the communication is performed. When the associated data of the account is updated, the update information of the associated data is obtained. For the step S201 of the embodiment, reference may be made to the step S101 of the embodiment shown in FIG. 1 , and details are not described herein.

S202,獲取所述通信帳號的登錄列表,所述登錄 列表中包含所述通信帳號對應的至少一個客戶端的標識信息。 S202. Acquire a login list of the communication account, where the login The list includes identification information of at least one client corresponding to the communication account.

本實施例中,伺服器維護每個通信帳號的登錄列 表,每個通信帳號使用客戶端進行登錄後,伺服器會將登錄記錄添加至每個通信帳號的登錄列表中。一條登錄記錄包含一個客戶端的標識信息和登錄時間。所述登錄列表中包含所述通信帳號對應的至少一個客戶端的標識信息;一個客戶端的標識信息僅標識一個客戶端。本步驟中,可以從伺服器中獲取所述通信帳號的登錄列表,例如:通信帳號A分別通過手機客戶端A、PC客戶端B和PAD客戶端C進行登錄,則本步驟可獲取通信帳號A的登錄列表,該登錄列表中包含手機客戶端A的標識信息、PC客戶端B的標識信息和PAD客戶端C的標識信息。 In this embodiment, the server maintains a login column for each communication account. Table, after each communication account is logged in using the client, the server adds the login record to the login list of each communication account. A login record contains the identification information of a client and the login time. The login list includes identification information of at least one client corresponding to the communication account; and the identification information of one client identifies only one client. In this step, the login list of the communication account can be obtained from the server. For example, the communication account A is logged in through the mobile client A, the PC client B, and the PAD client C. In this step, the communication account A can be obtained. The login list includes the identification information of the mobile client A, the identification information of the PC client B, and the identification information of the PAD client C.

S203,根據所述通信帳號對應的至少一個客戶端 的標識信息,檢測所述通信帳號對應的至少一個客戶端的狀態。 S203. According to at least one client corresponding to the communication account. The identifier information is used to detect a status of at least one client corresponding to the communication account.

本步驟中,可以檢測所述通信帳號對應的至少一 個客戶端是否與伺服器保持連接狀態,如果某一客戶端與伺服器保持連接狀態,則表示該客戶端處於連接狀態,反之,表示該客戶端處於未連接狀態。按照步驟S202所示例子:可以分別檢測手機客戶端A是否與伺服器保持連接狀態,檢測PC客戶端B是否與伺服器保持連接狀態,以及檢測PAD客 戶端C是否與伺服器保持連接狀態;如果檢測到手機客戶端A和PC客戶端B均與伺服器保持連接狀態,而PAD客戶端C與伺服器斷開連接,則可表示手機客戶端A和PC客戶端B均處於連接狀態,PAD客戶端C處於未連接狀態。 In this step, at least one corresponding to the communication account may be detected. Whether the client is connected to the server. If a client remains connected to the server, it indicates that the client is connected. Otherwise, it indicates that the client is not connected. According to the example shown in step S202, it is possible to separately detect whether the mobile client A is connected to the server, detect whether the PC client B is connected to the server, and detect the PAD guest. Whether the client C is connected to the server; if it is detected that both the mobile client A and the PC client B are connected to the server, and the PAD client C is disconnected from the server, the mobile client A can be indicated. Both the PC client B and the PC client B are connected, and the PAD client C is not connected.

S204,將所述通信帳號對應的至少一個客戶端 中,除所述第一客戶端之外且處於連接狀態的客戶端確定為第二客戶端。按照步驟S203中的例子:第一客戶端為手機客戶端A,本步驟則可將PC客戶端B確定為第二客戶端。本實施例的步驟S202-步驟S204為圖1所示實施例的步驟S102的步驟細節。 S204. At least one client corresponding to the communication account. The client in addition to the first client and in the connected state is determined to be the second client. According to the example in step S203: the first client is the mobile client A, and in this step, the PC client B can be determined as the second client. Steps S202 to S204 of this embodiment are the step details of step S102 of the embodiment shown in FIG. 1.

S205,將所述關聯數據的更新信息同步至所述第 二客戶端,以使所述第二客戶端顯示更新後的所述關聯數據。步驟S205可參見圖1所示實施例的步驟S103,在此不贅述。 S205. Synchronize update information of the associated data to the first a second client, so that the second client displays the updated associated data. Step S205 can be referred to step S103 of the embodiment shown in FIG. 1 , and details are not described herein.

S206,當接收到所述通信帳號對應的任一客戶端 發送的登錄請求時,檢測請求登錄的所述客戶端是否存在歷史登錄記錄;若檢測結果為是,轉入步驟S207;否則,轉入步驟S210。 S206, when receiving any client corresponding to the communication account When the login request is sent, it is detected whether the client that requested the login has a history registration record; if the detection result is yes, the process goes to step S207; otherwise, the process goes to step S210.

步驟S206中,檢測請求登錄的所述客戶端是否存 在歷史登錄記錄,即判斷所述通信帳號是否首次使用請求登錄的所述客戶端進行登錄,如果請求登錄的所述客戶端存在歷史登錄記錄,表示本次登錄之前,所述通信帳號曾使用請求登錄的所述客戶端進行登錄,所述通信帳號並非首次使用請求登錄的所述客戶端進行登錄;如果請求登錄的所述客戶端不存在歷史登錄記錄,表示本次登錄之前,所述通信帳號從未使用請求登錄的所述客戶端進行登錄,所述通信帳號為 首次使用請求登錄的所述客戶端進行登錄。例如:通信帳號A使用手機客戶端D進行登錄時,手機客戶端D發送登錄請求,本步驟檢測通信帳號A的登錄列表中是否存在手機客戶端D的登錄記錄,如果檢測結果為是,則表示在本次登錄之前,通信帳號A曾使用手機客戶端D進行登錄,則轉入步驟S207;否則,表示本次登錄之前,通信帳號A從未使用手機客戶端D進行登錄過,則轉入步驟S210。 In step S206, it is detected whether the client requesting login is saved. In the historical login record, that is, whether the communication account is used for the first time to log in using the requesting login, and if the client that requests the login has a historical login record, the communication account has used the request before the login. The logged-in client logs in, and the communication account is not used for the first time to log in using the client that requests the login; if the client that requests the login does not have a historical login record, the communication account is used before the login. Logging in from the client that has not requested to log in, the communication account is Log in for the first time using the client requesting login. For example, when the communication account A uses the mobile client D to log in, the mobile client D sends a login request. In this step, it is detected whether there is a login record of the mobile client D in the login list of the communication account A. If the detection result is yes, it indicates Before the login, the communication account A has used the mobile client D to log in, and then proceeds to step S207; otherwise, it indicates that the communication account A has never used the mobile client D to log in before the login, and then proceeds to the step S210.

步驟S207,獲取請求登錄的所述客戶端最近一次歷史登錄時間。本步驟中,可以從所述通信帳號的登錄列表中搜尋請求登錄的所述客戶端的所有歷史登錄記錄,從中獲取最近一次歷史登錄時間;舉例來說,手機客戶端D的最近一次歷史登錄時間為2013-2-1-11:00。 Step S207: Acquire a last historical login time of the client that requests to log in. In this step, the historical login record of the client that requests the login may be searched from the login list of the communication account, and the latest historical login time is obtained from the login history; for example, the latest historical login time of the mobile client D is 2013-2-1-11:00.

步驟S208,根據請求登錄的所述客戶端最近一次歷史登錄時間,搜尋所述通信帳號的關聯數據的更新信息。本步驟中,根據請求登錄的所述客戶端最近一次歷史登錄時間,從所述通信帳號的關聯數據的所有更新信息中,搜尋更新時間晚於請求登錄的所述客戶端最近一次歷史登錄時間的更新信息;按照上述所示例子:從通信帳號A的關聯數據的所有更新信息中,搜尋更新時間晚於2013-2-1-11:00的更新信息。 Step S208: Search for update information of the associated data of the communication account according to the latest historical login time of the client that is requested to log in. In this step, according to the latest historical login time of the client that is requested to log in, from all the update information of the associated data of the communication account, the search update time is later than the last historical login time of the client requesting to log in. Update information; according to the example shown above: from all the update information of the associated data of the communication account A, the update information of the update time later than 2013-2-1-11:00 is searched.

步驟S209,將搜尋到的所述通信帳號的關聯數據的更新信息發送至請求登錄的所述客戶端。本步驟將搜尋到的所述通信帳號的關聯數據的更新信息發送至請求登錄的所述客戶端之後,請求登錄的所述客戶端可以採用接收到的更新信息,更新本地資料庫中所述通信帳號的關聯數據。本實施例的步驟S207-步驟S209描述請求登錄的所述客戶端的 本地資料庫中關於所述通信帳號的關聯數據的增量更新過程。 Step S209, sending the updated update information of the associated data of the communication account to the client requesting to log in. After the step of sending the updated information of the associated data of the communication account to the client requesting the login, the client requesting the login may update the communication in the local database by using the received update information. Linked data for the account. Step S207 to step S209 of this embodiment describe the client requesting login An incremental update process for the associated data of the communication account in the local database.

步驟S210,搜尋所述通信帳號的關聯數據以及所述通信帳號的關聯數據的所有更新信息。 Step S210: Search for the associated data of the communication account and all the update information of the associated data of the communication account.

步驟S211,將搜尋到的所述通信帳號的關聯數據以及所述通信帳號的關聯數據的所有更新信息一併發送至請求登錄的所述客戶端。本步驟將搜尋到的所述通信帳號的關聯數據以及所述通信帳號的關聯數據的所有更新信息發送至請求登錄的所述客戶端之後,請求登錄的所述客戶端可以在本地資料庫儲存所述通信帳號的最新關聯數據。本實施例的步驟S210-步驟S211描述請求登錄的所述客戶端的本地資料庫中關於所述通信帳號的關聯數據的全量更新過程。 Step S211, the associated data of the searched communication account and all the updated information of the associated data of the communication account are sent together to the client requesting to log in. In this step, after the associated data of the communication account and the update information of the associated data of the communication account are sent to the client requesting login, the client requesting login may be in the local database storage office. The latest associated data for the communication account. Step S210 to step S211 of the present embodiment describe a full amount update process of the associated data of the communication account in the local database of the client requesting login.

請參見圖3,為本發明另一實施例的通信帳號之各客戶端之間數據同步方法流程圖;該方法可包括以下步驟S301-步驟S310。 FIG. 3 is a flowchart of a data synchronization method between clients of a communication account according to another embodiment of the present invention; the method may include the following steps S301 to S310.

S301,當通信帳號對應的第一客戶端對所述通信帳號的關聯數據進行更新操作時,獲取所述關聯數據的更新信息。S302,獲取所述通信帳號的登錄列表,所述登錄列表中包含所述通信帳號對應的至少一個客戶端的標識信息。S303,根據所述通信帳號對應的至少一個客戶端的標識信息,檢測所述通信帳號對應的至少一個客戶端的狀態。S304,將所述通信帳號對應的至少一個客戶端中,除所述第一客戶端之外且處於連接狀態的客戶端確定為第二客戶端。S305,將所述關聯數據的更新信息同步至所述第二客戶端,以使所述第二客戶端顯示更新後的所述關聯數據。S306,當接收到所述通信帳號對應的任一客戶端發送的登錄請求時,檢測請 求登錄的所述客戶端是否存在歷史登錄記錄;若檢測結果為是,轉入步驟S307;否則,轉入步驟S310。 S301. Acquire update information of the associated data when the first client corresponding to the communication account performs an update operation on the associated data of the communication account. S302. Acquire a login list of the communication account, where the login list includes identifier information of at least one client corresponding to the communication account. S303. Detect, according to the identifier information of the at least one client corresponding to the communication account, the status of the at least one client corresponding to the communication account. S304. Determine, in the at least one client that corresponds to the communication account, a client that is in a connected state except the first client, and is determined to be a second client. S305. Synchronize update information of the associated data to the second client, so that the second client displays the updated associated data. S306, when receiving a login request sent by any client corresponding to the communication account, detecting Whether the history registration record exists in the client that is logged in; if the detection result is yes, the process goes to step S307; otherwise, the process goes to step S310.

本實施例的步驟S301-步驟S306可參見圖2所示 實施例的步驟S201-步驟S206,在此不贅述。需要說明的是,本實施例中,所述登錄請求中攜帶信息拉取(Information Pull)指示和上次信息拉取時間;其中,所述信息拉取指示,用於指示請求登錄的所述客戶端所請求拉取的信息範圍,例如:請求拉取通信帳號對應的用戶個人數據,或者請求拉取通信帳號對應的用戶關係鏈數據,或者請求拉取通信帳號對應的用戶關係鏈中某一好友數據,等等。所述上次拉取時間,表示請求登錄的所述客戶端上次獲得所請求拉取的信息的時間。 Step S301 to step S306 of this embodiment can be seen as shown in FIG. 2 Steps S201 to S206 of the embodiment are not described herein. It should be noted that, in this embodiment, the login request carries an information pull indication and a last information pull time; wherein the information pull indication is used to indicate the client requesting login The range of information requested by the terminal, for example, requesting to pull the user personal data corresponding to the communication account, or requesting to pull the user relationship chain data corresponding to the communication account, or requesting to pull a friend in the user relationship chain corresponding to the communication account. Data, and so on. The last pull time indicates the time when the client requesting the login last obtained the requested pull information.

S307,根據所述信息拉取指示和上次信息拉取時 間,搜尋所述通信帳號的關聯數據的更新信息。本步驟中,從所述通信帳號的關聯數據的所有更新信息中,搜尋更新時間晚於上次信息拉取時間,且更新內容位於所述信息拉取指示所指示的信息範圍內的更新信息;例如:從所述通信帳號的關聯數據的所有更新信息中,搜尋更新時間晚於上次信息拉取時間,且更新內容為用戶個人數據的更新信息;或者,從所述通信帳號的關聯數據的所有更新信息中,搜尋更新時間晚於上次信息拉取時間,且更新內容為用戶關係鏈數據的更新信息,等等。 S307, according to the information pull instruction and the last information pull Searching for updated information of the associated data of the communication account. In this step, from all the update information of the associated data of the communication account, the search update time is later than the last information pull time, and the update content is located in the information range indicated by the information pull indication; For example, from all the update information of the associated data of the communication account, the search update time is later than the last information pull time, and the update content is update information of the user personal data; or, the associated data from the communication account In all the update information, the search update time is later than the last information pull time, and the update content is update information of the user relationship chain data, and the like.

S308,將搜尋到的所述通信帳號的關聯數據的更 新信息發送至請求登錄的所述客戶端。本步驟將搜尋到的所述通信帳號的關聯數據的更新信息發送至請求登錄的所述客戶端之後,請求登錄的所述客戶端可以採用接收到的更新信 息,更新本地資料庫中所述通信帳號的關聯數據。本實施例的步驟S307-步驟S308描述請求登錄的所述客戶端的本地資料庫中關於所述通信帳號的關聯數據的增量更新過程。 S308, the related data of the communication account to be searched for is further changed. New information is sent to the client requesting login. After the step of sending the updated information of the associated data of the communication account to the client requesting the login, the client requesting the login may use the received update letter. Update the associated data of the communication account in the local database. Steps S307-S308 of the present embodiment describe an incremental update process of the associated data of the communication account in the local database of the client requesting login.

S309,搜尋所述通信帳號的關聯數據以及所述通 信帳號的關聯數據的所有更新信息。 S309. Search for associated data of the communication account and the communication. All updates to the associated data for the account.

S310,將搜尋到的所述通信帳號的關聯數據以及 所述通信帳號的關聯數據的所有更新信息一併發送至請求登錄的所述客戶端。本實施例的步驟S309-步驟S310可參見圖2所示實施例的步驟S210-步驟S211,在此不贅述。 S310, the associated data of the communication account to be searched for and All update information of the associated data of the communication account is sent to the client requesting login. For the steps S309 to S310 of the embodiment, reference may be made to step S210 to step S211 of the embodiment shown in FIG. 2, and details are not described herein.

通過圖1-圖3所示的實施例,本發明實施例中, 當通信帳號對應的第一客戶端對所述通信帳號的關聯數據進行更新操作時,將所述關聯數據的更新信息同步至該通信帳號對應的除第一客戶端之外處於連接狀態的第二客戶端,可以使所述第二客戶端同步顯示更新後的所述關聯數據,使第一客戶端與第二客戶端之間顯示數據具有一致性,提升了客戶端的智能性,從而提升了用戶的使用體驗。 Through the embodiment shown in FIG. 1 to FIG. 3, in the embodiment of the present invention, When the first client corresponding to the communication account performs an update operation on the associated data of the communication account, the update information of the associated data is synchronized to the second connection state of the communication account other than the first client. The client may enable the second client to synchronously display the updated associated data, so that the display data between the first client and the second client is consistent, thereby improving the intelligence of the client, thereby improving the user. The experience of using.

參見圖4-圖7,為本發明之一實施例一種通信帳 號各客戶端之間數據同步裝置的結構。,所述通信帳號各客戶端之間的數據同步裝置,用於執行本發明圖1-圖3所示實施例的方法,為了便於說明,僅示出了與本發明實施例相關的部分,具體技術細節未揭示的,請參照本發明圖1-圖3所示的實施例。 Referring to Figures 4-7, a communication account is an embodiment of the present invention. The structure of the data synchronization device between the clients. The data synchronization device between the clients of the communication account is used to perform the method of the embodiment shown in FIG. 1 to FIG. 3 of the present invention. For the convenience of description, only the parts related to the embodiment of the present invention are specifically shown. For technical details not disclosed, please refer to the embodiment shown in Figures 1-3 of the present invention.

請參見圖4,為本發明之一實施例提供的通信帳 號各客戶端之間數據同步裝置的結構示意圖;該裝置包括:信息獲取模塊101、搜尋模塊102和同步模塊103。 Please refer to FIG. 4, which is a communication account provided by an embodiment of the present invention. A schematic diagram of a structure of a data synchronization device between clients; the device includes: an information acquisition module 101, a search module 102, and a synchronization module 103.

信息獲取模塊101,用於當通信帳號對應的第一 客戶端對所述通信帳號的關聯數據進行更新操作時,獲取所述關聯數據的更新信息。 The information obtaining module 101 is configured to: when the communication account corresponds to the first When the client performs an update operation on the associated data of the communication account, the client obtains the update information of the associated data.

所述通信帳號的關聯數據可以包括但不限於:所 述通信帳號對應的用戶個人數據和用戶關係鏈數據;例如:即時通信帳號的關聯數據可以包括但不限於:即時通信用戶的暱稱、個性簽名、加入的即時通信群組的標識等用戶個人數據,以及即時通信用戶的好友數據、即時通信群組中的好友數據等等。同一通信帳號可對應多個客戶端,例如:通信帳號A既可以對應手機客戶端A,又可以對應PC客戶端B,還可以對應PAD客戶端C。通信帳號對應的用戶可以在通信帳號對應的任一客戶端對通信帳號的關聯數據進行更新操作,例如:通信帳號A對應的用戶可通過手機客戶端A修改用戶暱稱等等。所述信息獲取模塊101當通信帳號對應的第一客戶端對所述通信帳號的關聯數據進行更新操作時,獲取通信帳號的關聯數據的更新信息;其中,所述關聯數據的更新信息包括但不限於:所述關聯數據的更新時間、對所述關聯數據進行更新操作的操作類型和所述關聯數據的更新內容。 The associated data of the communication account may include but is not limited to: The user personal data and the user relationship chain data corresponding to the communication account; for example, the associated data of the instant messaging account may include, but is not limited to, the user's personal data such as the nickname of the instant communication user, the personalized signature, and the identity of the joined instant communication group. And friend data of the instant messaging user, friend data in the instant communication group, and the like. The same communication account can correspond to multiple clients. For example, the communication account A can correspond to the mobile client A and the PC client B, and can also correspond to the PAD client C. The user corresponding to the communication account can update the associated data of the communication account on any client corresponding to the communication account. For example, the user corresponding to the communication account A can modify the user nickname through the mobile client A. The information obtaining module 101 acquires update information of the associated data of the communication account when the first client corresponding to the communication account performs an update operation on the associated data of the communication account; wherein the update information of the associated data includes but not It is limited to: an update time of the associated data, an operation type of performing an update operation on the associated data, and an update content of the associated data.

搜尋模塊102,用於搜尋所述通信帳號對應的除 所述第一客戶端之外,且處於連接狀態的第二客戶端。根據本實施例所述,通信帳號A對應的第一客戶端為手機客戶端A,通信帳號A還對應PC客戶端B和PAD客戶端C;其中,PC客戶端B處於連接狀態,而所述搜尋模塊102進行搜尋之前通信帳號A已從PAD客戶端C退出登錄,PAD客戶端C處於未連接狀態;所述搜尋模塊102則搜尋通信帳號A對應的PC客戶端B作為第二客戶端。 The searching module 102 is configured to search for a corresponding a second client outside the first client and in a connected state. According to the embodiment, the first client corresponding to the communication account A is the mobile phone client A, and the communication account A also corresponds to the PC client B and the PAD client C; wherein the PC client B is in the connected state, and the Before the search module 102 performs the search, the communication account A has logged out from the PAD client C, and the PAD client C is in the unconnected state; the search module 102 searches for the PC client B corresponding to the communication account A as the second client.

同步模塊103,用於將所述關聯數據的更新信息 同步至所述第二客戶端,以使所述第二客戶端根據所述關聯數據的更新信息,顯示更新後的所述關聯數據。 a synchronization module 103, configured to update information of the associated data Synchronizing to the second client, so that the second client displays the updated associated data according to the update information of the associated data.

所述同步模塊103將所述關聯數據的更新信息同 步至所述第二客戶端之後,所述第二客戶端根據所述關聯數據的更新信息,顯示更新後的所述關聯數據,可使第一客戶端與第二客戶端之間所顯示的所述通信帳號的關聯數據具有一致性;手機客戶端A對通信帳號A的關聯數據進行更新操作之後,PC客戶端B可同步顯示更新後的所述關聯數據,使手機客戶端A與PC客戶端B之間顯示數據具有一致性。所述同步模塊103同步至第二客戶端的關聯數據的更新信息用於第二客戶端進行關聯數據的同步顯示,而不用於第二客戶端本地資料庫中關於所述通信帳號的關聯數據的更新,這是由於同步過程中第二客戶端可能由連接狀態變化為非連接狀態,例如:通信帳號在第二客戶端退出登錄,或第二客戶端處於休眠狀態,等等,從而使得第二客戶端無法接收完整的更新信息,無法保證第二客戶端本地資料庫關於所述通信帳號的關聯數據的更新完整性。 The synchronization module 103 compares the update information of the associated data After the step to the second client, the second client displays the updated associated data according to the update information of the associated data, so that the displayed between the first client and the second client is displayed. The associated data of the communication account has consistency; after the mobile client A updates the associated data of the communication account A, the PC client B can synchronously display the updated associated data, so that the mobile client A and the PC client The data displayed between end B is consistent. The synchronization module 103 synchronizes update information of the associated data to the second client for the second client to perform synchronous display of the associated data, and is not used for updating the associated data of the communication account in the second client local database. This is because the second client may change from the connection state to the non-connected state during the synchronization process, for example, the communication account is logged out at the second client, or the second client is in the dormant state, etc., thereby making the second client The terminal cannot receive the complete update information, and the update integrity of the associated data of the communication account by the second client local database cannot be guaranteed.

請參見圖5,為本發明另一實施例中,通信帳號 各客戶端之間數據同步裝置的結構示意圖;該裝置包括:信息獲取模塊101、搜尋模塊102和同步模塊103。該裝置還可包括:第一登錄檢測模塊104、時間獲取模塊105、第一信息搜尋模塊106和第一更新模塊107。該裝置還包括:第三信息搜尋模塊108和第三更新模塊109。其中,信息獲取模塊101、搜尋模塊102和同步模塊103的結構和功能可參見圖4所示實施例的相關描述,在此不贅述。 Referring to FIG. 5, in another embodiment of the present invention, a communication account A schematic diagram of a structure of a data synchronization device between clients; the device includes: an information acquisition module 101, a search module 102, and a synchronization module 103. The apparatus may further include: a first login detection module 104, a time acquisition module 105, a first information search module 106, and a first update module 107. The apparatus further includes: a third information search module 108 and a third update module 109. The structure and function of the information acquisition module 101, the search module 102, and the synchronization module 103 can be referred to the related description of the embodiment shown in FIG. 4, and details are not described herein.

第一登錄檢測模塊104,用於當接收到所述通信 帳號對應的任一客戶端發送的登錄請求時,檢測請求登錄的所述客戶端是否存在歷史登錄記錄,即判斷所述通信帳號是否為首次使用請求登錄的所述客戶端進行登錄,如果請求登錄的所述客戶端存在歷史登錄記錄,表示本次登錄之前,所述通信帳號曾使用請求登錄的所述客戶端進行登錄,所述通信帳號並非首次使用請求登錄的所述客戶端進行登錄;如果請求登錄的所述客戶端不存在歷史登錄記錄,表示本次登錄之前,所述通信帳號從未使用請求登錄的所述客戶端進行登錄,所述通信帳號為首次使用請求登錄的所述客戶端進行登錄。例如:通信帳號A使用手機客戶端D進行登錄時,手機客戶端D發送登錄請求,所述第一登錄檢測模塊104檢測通信帳號A的登錄列表中是否存在手機客戶端D的登錄記錄,如果檢測結果為是,則表示在本次登錄之前,通信帳號A曾使用手機客戶端D進行登錄過;否則,表示本次登錄之前,通信帳號A從未使用手機客戶端D進行登錄。 a first login detection module 104, configured to receive the communication When the login request is sent by any client corresponding to the account, it is detected whether the client that requested the login has a historical login record, that is, whether the communication account is logged in for the client that is requested to log in for the first time request, and if the login is requested The client has a historical login record, indicating that the communication account has used the client that requested to log in to log in before the login, and the communication account is not the first time to log in using the client requesting to log in; The client that requests the login does not have a historical login record, indicating that the communication account has never logged in using the client that requested to log in before the login, and the communication account is the client that is logged in for the first use request. Log in. For example, when the communication account A uses the mobile phone client D to log in, the mobile phone client D sends a login request, and the first login detection module 104 detects whether there is a login record of the mobile phone client D in the login list of the communication account A, if the detection is detected. If the result is yes, it means that before the login, the communication account A has used the mobile client D to log in; otherwise, it indicates that the communication account A has never used the mobile client D to log in before the login.

時間獲取模塊105,用於若請求登錄的所述客戶 端存在歷史登錄記錄,獲取請求登錄的所述客戶端最近一次歷史登錄時間。 a time acquisition module 105, configured to request the login of the client A historical login record exists on the end, and the last historical login time of the client that requested the login is obtained.

本實施例中,伺服器維護每個通信帳號的登錄列 表,每個通信帳號使用客戶端進行登錄後,伺服器會將登錄記錄添加至每個通信帳號的登錄列表中。一條登錄記錄包含一個客戶端的標識信息和登錄時間。所述登錄列表中包含所述通信帳號對應的至少一個客戶端的標識信息;一個客戶端的標識信息僅標識一個客戶端。所述時間獲取模塊105可以從所述通信帳號的登錄列表中搜尋請求登錄的所述客戶端的 所有歷史登錄記錄,從中獲取最近一次歷史登錄時間;按照前述例子:所述時間獲取模塊105可獲取手機客戶端D的最近一次歷史登錄時間為2013-2-1-11:00。 In this embodiment, the server maintains a login column for each communication account. Table, after each communication account is logged in using the client, the server adds the login record to the login list of each communication account. A login record contains the identification information of a client and the login time. The login list includes identification information of at least one client corresponding to the communication account; and the identification information of one client identifies only one client. The time obtaining module 105 may search for the client requesting login from the login list of the communication account. All historical login records, from which the latest historical login time is obtained; according to the foregoing example, the time acquisition module 105 can obtain the latest historical login time of the mobile client D as 2013-2-1-11:00.

第一信息搜尋模塊106,用於根據請求登錄的所 述客戶端最近一次歷史登錄時間,搜尋所述通信帳號的關聯數據的更新信息。所述第一信息搜尋模塊106從所述通信帳號的關聯數據的所有更新信息中,搜尋更新時間晚於請求登錄的所述客戶端最近一次歷史登錄時間的更新信息;按照前述例子:所述第一信息搜尋模塊106從通信帳號A的關聯數據的所有更新信息中,搜尋更新時間晚於2013-2-1-11:00的更新信息。 The first information searching module 106 is configured to log in according to the request The latest historical login time of the client, searching for update information of the associated data of the communication account. The first information searching module 106 searches for update information of the latest historical login time of the client that is later than the request to log in from all the update information of the associated data of the communication account; according to the foregoing example: An information search module 106 searches for update information later than 2013-2-1-11:00 from all the update information of the associated data of the communication account A.

第一更新模塊107,用於將搜尋到的所述通信帳 號的關聯數據的更新信息發送至請求登錄的所述客戶端。所述第一更新模塊107將搜尋到的所述通信帳號的關聯數據的更新信息發送至請求登錄的所述客戶端之後,請求登錄的所述客戶端可以採用接收到的更新信息,更新本地資料庫中所述通信帳號的關聯數據。所述時間獲取模塊105、所述第一信息搜尋模塊106和所述第一更新模塊107的設置,描述了請求登錄的所述客戶端的本地資料庫中關於所述通信帳號的關聯數據的增量更新過程。 a first update module 107, configured to search the communication account The update information of the associated data of the number is sent to the client requesting the login. After the first update module 107 sends the updated update information of the associated data of the communication account to the client requesting login, the client requesting login may update the local data by using the received update information. The associated data of the communication account in the library. The setting of the time obtaining module 105, the first information searching module 106, and the first updating module 107 describes the increment of the associated data about the communication account in the local database of the client requesting login. Update process.

第三信息搜尋模塊108,用於若請求登錄的所述 客戶端未存在歷史登錄記錄,搜尋所述通信帳號的關聯數據以及所述通信帳號的關聯數據的所有更新信息。 a third information searching module 108, configured to request the login The client does not have a historical login record, and searches for the associated data of the communication account and all the updated information of the associated data of the communication account.

第三更新模塊109,用於若請求登錄的所述客戶 端未存在歷史登錄記錄,將所述第三信息搜尋模塊108搜尋到的所述通信帳號的關聯數據以及所述通信帳號的關聯數據 的所有更新信息,發送至請求登錄的所述客戶端。 a third update module 109, configured to request the login of the client The historical login record does not exist, the associated data of the communication account number searched by the third information searching module 108, and the associated data of the communication account. All update information is sent to the client requesting login.

所述第三更新模塊109將搜尋到的所述通信帳號 的關聯數據以及所述通信帳號的關聯數據的所有更新信息發送至請求登錄的所述客戶端之後,請求登錄的所述客戶端可以在本地資料庫儲存所述通信帳號的最新關聯數據。所述第三信息搜尋模塊108和所述第三更新模塊109描述了請求登錄的所述客戶端的本地資料庫中關於所述通信帳號的關聯數據的全量更新過程。 The third update module 109 will search for the communication account After the associated data and all the update information of the associated data of the communication account are sent to the client requesting the login, the client requesting the login may store the latest associated data of the communication account in the local database. The third information search module 108 and the third update module 109 describe a full amount update process for the associated data of the communication account in the local database of the client requesting login.

請參見圖6,為本發明另一實施例的數據同步裝 置的結構示意圖;該裝置包括:信息獲取模塊101、搜尋模塊102和同步模塊103。該裝置還包括:第三信息搜尋模塊108和第三更新模塊109。該裝置還包括:第二登錄檢測模塊110、第二信息搜尋模塊111和第二更新模塊112。其中,信息獲取模塊101、搜尋模塊102、同步模塊103、第三信息搜尋模塊108和第三更新模塊109的結構和功能可參見圖4和圖5所示實施例的相關描述,在此不贅述。 Please refer to FIG. 6, which is a data synchronization device according to another embodiment of the present invention. The device structure diagram includes: an information acquisition module 101, a search module 102, and a synchronization module 103. The apparatus further includes: a third information search module 108 and a third update module 109. The device further includes: a second login detection module 110, a second information search module 111, and a second update module 112. The structure and function of the information acquisition module 101, the search module 102, the synchronization module 103, the third information search module 108, and the third update module 109 can be referred to the related descriptions of the embodiments shown in FIG. 4 and FIG. 5, and details are not described herein. .

第二登錄檢測模塊110,用於當接收到所述通信 帳號對應的任一客戶端發送的登錄請求時,檢測請求登錄的所述客戶端是否存在歷史登錄記錄。 a second login detection module 110, configured to receive the communication When the login request is sent by any client corresponding to the account, it is detected whether the client that requested the login has a historical login record.

其中,所述登錄請求包括:攜帶信息拉取指示和 上次信息拉取時間。所述信息拉取指示,用於指示請求登錄的所述客戶端所請求拉取的信息範圍,例如:請求拉取通信帳號對應的用戶個人數據,或者請求拉取通信帳號對應的用戶關係鏈數據,或者請求拉取通信帳號對應的用戶關係鏈中某一好友數據。所述上次拉取時間,表示請求登錄的所述客戶端上次獲得所請求拉取的信息的時間。 The login request includes: carrying a message pull instruction and The last time the information was pulled. The information pull instruction is used to indicate the range of information requested by the client that requests the login, for example, requesting to pull the user personal data corresponding to the communication account, or requesting to pull the user relationship chain data corresponding to the communication account. Or request to pull a friend data in the user relationship chain corresponding to the communication account. The last pull time indicates the time when the client requesting the login last obtained the requested pull information.

第二信息搜尋模塊111,用於若請求登錄的所述 客戶端存在歷史登錄記錄,根據所述信息拉取指示和上次信息拉取時間,搜尋所述通信帳號的關聯數據的更新信息。 a second information searching module 111, configured to request the login The client has a historical login record, and searches for update information of the associated data of the communication account according to the information pull instruction and the last information pull time.

所述第二信息搜尋模塊111從所述通信帳號的關 聯數據的所有更新信息中,搜尋更新時間晚於上次信息拉取時間,且更新內容位於所述信息拉取指示所指示的信息範圍內的更新信息;例如:從所述通信帳號的關聯數據的所有更新信息中,搜尋更新時間晚於上次信息拉取時間,且更新內容為用戶個人數據的更新信息;或者,從所述通信帳號的關聯數據的所有更新信息中,搜尋更新時間晚於上次信息拉取時間,且更新內容為用戶關係鏈數據的更新信息,等等。 The second information searching module 111 is off from the communication account In all the update information of the joint data, the search update time is later than the last information pull time, and the update content is located in the information range indicated by the information pull indication; for example, the associated data from the communication account In all the update information, the search update time is later than the last information pull time, and the update content is the update information of the user personal data; or, from all the update information of the associated data of the communication account, the search update time is later than The last information pull time, and the update content is the update information of the user relationship chain data, and so on.

第二更新模塊112,用於將搜尋到的所述通信帳 號的關聯數據的更新信息發送至請求登錄的所述客戶端。所述第二更新模塊112將搜尋到的所述通信帳號的關聯數據的更新信息發送至請求登錄的所述客戶端之後,請求登錄的所述客戶端可以採用接收到的更新信息,更新本地資料庫中所述通信帳號的關聯數據。所述第二信息搜尋模塊111和所述第二更新模塊112描述了請求登錄的所述客戶端的本地資料庫中關於所述通信帳號的關聯數據的增量更新過程。 a second update module 112, configured to search the communication account The update information of the associated data of the number is sent to the client requesting the login. After the second update module 112 sends the updated update information of the associated data of the communication account to the client requesting login, the client requesting login may update the local data by using the received update information. The associated data of the communication account in the library. The second information searching module 111 and the second update module 112 describe an incremental update process of the associated data of the communication account in the local database of the client requesting login.

請參見圖7,為本發明實施例提供的搜尋模塊的 結構示意圖;該搜尋模塊102包括:列表獲取單元1201、狀態檢測單元1202和確定單元1203。 Referring to FIG. 7, a search module according to an embodiment of the present invention is provided. The structure of the search module 102 includes a list obtaining unit 1201, a state detecting unit 1202, and a determining unit 1203.

列表獲取單元1201,用於獲取所述通信帳號的登 錄列表,所述登錄列表中包含所述通信帳號對應的至少一個客戶端的標識信息。伺服器維護每個通信帳號的登錄列表,每個通信帳號使用客戶端進行登錄後,伺服器會將登錄記錄 添加至每個通信帳號的登錄列表中。一條登錄記錄包含一個客戶端的標識信息和登錄時間。所述登錄列表中包含所述通信帳號對應的至少一個客戶端的標識信息;一個客戶端的標識信息僅標識一個客戶端。所述列表獲取單元1201可以從伺服器中獲取所述通信帳號的登錄列表,例如:通信帳號A分別通過手機客戶端A、PC客戶端B和PAD客戶端C進行登錄,則所述列表獲取單元1201可獲取通信帳號A的登錄列表,該登錄列表中包含手機客戶端A的標識信息、PC客戶端B的標識信息和PAD客戶端C的標識信息。 The list obtaining unit 1201 is configured to obtain the login of the communication account Recording a list, the login list includes identification information of at least one client corresponding to the communication account. The server maintains a login list for each communication account. After each communication account is logged in using the client, the server will log in. Add to the login list for each communication account. A login record contains the identification information of a client and the login time. The login list includes identification information of at least one client corresponding to the communication account; and the identification information of one client identifies only one client. The list obtaining unit 1201 may obtain a login list of the communication account from the server, for example, the communication account A is logged in through the mobile phone client A, the PC client B, and the PAD client C, respectively, and the list obtaining unit 1201 may obtain a login list of the communication account A, where the login list includes the identification information of the mobile phone client A, the identification information of the PC client B, and the identification information of the PAD client C.

狀態檢測單元1202,用於根據所述通信帳號對應 的至少一個客戶端的標識信息,檢測所述通信帳號對應的至少一個客戶端的狀態。 a status detecting unit 1202, configured to correspond to the communication account The identification information of the at least one client detects the status of the at least one client corresponding to the communication account.

所述狀態檢測單元1202可以檢測所述通信帳號 對應的至少一個客戶端是否與伺服器保持連接狀態,如果某一客戶端與伺服器保持連接狀態,則表示該客戶端處於連接狀態,否則,表示該客戶端處於未連接狀態。按照本實施例的上述例子:可以分別檢測手機客戶端A是否與伺服器保持連接狀態,檢測PC客戶端B是否與伺服器保持連接狀態,以及檢測PAD客戶端C是否與伺服器保持連接狀態;如果檢測到手機客戶端A和PC客戶端B均與伺服器保持連接狀態,而PAD客戶端C與伺服器斷開連接,則可表示手機客戶端A和PC客戶端B均處於連接狀態,PAD客戶端C處於未連接狀態。 The status detecting unit 1202 can detect the communication account Whether the corresponding at least one client is in a connected state with the server, if a client is in a connected state with the server, it indicates that the client is in a connected state; otherwise, the client is in an unconnected state. According to the above example of the embodiment, it is possible to detect whether the mobile client A is connected to the server, detect whether the PC client B is connected to the server, and detect whether the PAD client C remains connected to the server; If it is detected that both the mobile client A and the PC client B are connected to the server, and the PAD client C is disconnected from the server, it can indicate that both the mobile client A and the PC client B are connected, PAD Client C is in an unconnected state.

確定單元1203,用於將所述通信帳號對應的至少 一個客戶端中,除所述第一客戶端之外且處於連接狀態的客戶端確定為第二客戶端。 a determining unit 1203, configured to at least correspond to the communication account In a client, a client other than the first client and in a connected state is determined to be a second client.

按照本實施例的上述例子:第一客戶端為手機客 戶端A,所述確定單元1203則可將PC客戶端B確定為第二客戶端。 According to the above example of the embodiment, the first client is a mobile phone The client A, the determining unit 1203 can determine the PC client B as the second client.

透過上述圖4-圖7所示實施例的描述可知,當通 信帳號對應的第一客戶端對所述通信帳號的關聯數據進行更新操作時,將所述關聯數據的更新信息同步至該通信帳號對應的除第一客戶端之外處於連接狀態的第二客戶端,可以使所述第二客戶端同步顯示更新後的所述關聯數據,使第一客戶端與第二客戶端之間顯示數據具有一致性,提升了客戶端的智能性,從而提升了用戶的使用體驗。 Through the description of the embodiment shown in FIG. 4 to FIG. 7 above, it can be seen that when When the first client corresponding to the credit account performs an update operation on the associated data of the communication account, the update information of the associated data is synchronized to the second client in the connected state except the first client corresponding to the communication account. End, the second client may be synchronized to display the updated associated data, so that the display data between the first client and the second client is consistent, thereby improving the intelligence of the client, thereby improving the user's Use experience.

本發明之另一實施例中揭示一種伺服器,其包括 一個通信帳號各客戶端之間數據同步裝置,該通信帳號各客戶端之間數據同步裝置的結構和功能可參見圖4-圖7所示實施例的描述,在此不贅述。所述伺服器可以應用於圖1-圖3所示的方法中。 Another embodiment of the present invention discloses a server including For a data synchronization device between the clients of a communication account, the structure and function of the data synchronization device between the clients of the communication account can be referred to the description of the embodiment shown in FIG. 4 to FIG. 7 , and details are not described herein. The server can be applied to the methods shown in Figures 1-3.

當通信帳號對應的第一客戶端對所述通信帳號 的關聯數據進行更新操作時,將所述關聯數據的更新信息同步至該通信帳號對應的除第一客戶端之外處於連接狀態的第二客戶端,可以使所述第二客戶端同步顯示更新後的所述關聯數據,使第一客戶端與第二客戶端之間顯示數據具有一致性,提升了客戶端的智能性,從而提升了用戶的使用體驗。 When the communication client accounts corresponding to the first client to the communication account When the associated data is updated, the update information of the associated data is synchronized to the second client in the connected state except the first client corresponding to the communication account, and the second client can be synchronized to display the update. The associated data is used to make the display data consistency between the first client and the second client, which improves the intelligence of the client, thereby improving the user experience.

本領域普通技術人員可以理解實現上述實施例方法中的全部或部分流程,是可以透過電腦程序控制相關的硬體來完成,所述的程序可儲存於一計算機可讀取儲存介質中,該程序在執行時,可包括如上述各方法的實施例的流程。其中,所述的儲存介質可為硬碟、光碟、唯讀儲存記憶體 (Read-Only Memory,ROM)或隨機存取記憶體(Random Access Memory,RAM)等。 A person skilled in the art can understand that all or part of the process of implementing the above embodiments can be completed by controlling a related hardware through a computer program, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a hard disk, a compact disk, or a read-only storage memory. (Read-Only Memory, ROM) or Random Access Memory (RAM).

需要說明的是,本說明書中各個實施例採用遞進 的方式描述,每個實施例重點說明的都是與其他實施例的不同之處,各個實施例之間相同相似部分互相參見即可。對於實施例公開的系統或裝置而言,由於其與實施例公開的方法相對應,所以描述的比較簡單,相關之處參見方法部分說明即可。 It should be noted that each embodiment in this specification adopts progressive The description of the manners, each embodiment focuses on the differences from the other embodiments, and the same similar parts between the various embodiments can be referred to each other. For the system or device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

還需要說明的是,在本文中,諸如第一和第二等 之類的關係術語僅僅用來將一個實體或者操作與另一個實體或操作區分開來,而不一定要求或者暗示這些實體或操作之間存在任何這種實際的關係或者順序。而且,術語“包括”、“包含”或者其任何其他變體意在涵蓋非排他性的包含,從而使得包括一系列要素的過程、方法、物品或者設備不僅包括那些要素,而且還包括沒有明確列出的其他要素,或者是還包括為這種過程、方法、物品或者設備所固有的要素。在沒有更多限制的情況下,由語句“包括一個......”限定的要素,並不排除在包括所述要素的過程、方法、物品或者設備中還存在另外的相同要素。 It should also be noted that, in this paper, such as the first and second, etc. Relational terms such as those are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order. Furthermore, the term "comprises" or "comprises" or "comprises" or any other variations thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device that comprises a plurality of elements includes not only those elements but also Other elements, or elements that are inherent to such a process, method, item, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.

雖然本發明已以較佳實施例揭露如上,然其並非用以限定本發明,任何熟習此技藝者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。另外本發明的任一實施例或申請專利範圍不須達成本發明所揭露之全部目的或優點或特點。此外,摘要部分和標題僅是用來輔助專利檔案搜尋之用,並非用來限制本發明之權利範圍。 While the present invention has been described in its preferred embodiments, the present invention is not intended to limit the invention, and the present invention may be modified and modified without departing from the spirit and scope of the invention. The scope of protection is subject to the definition of the scope of the patent application. In addition, any of the objects or advantages or features of the present invention are not required to be achieved by any embodiment or application of the invention. In addition, the abstract sections and headings are only used to assist in the search of patent files and are not intended to limit the scope of the invention.

S101~S103‧‧‧步驟 S101~S103‧‧‧Steps

Claims (17)

一種通信帳號各客戶端之間數據同步方法,所述方法包括:當通信帳號對應的第一客戶端對所述通信帳號的關聯數據進行更新操作時,獲取所述關聯數據的更新信息;搜尋所述通信帳號對應的所述第一客戶端,以及處於連接狀態的第二客戶端;將所述關聯數據的更新信息同步至所述第二客戶端,以使所述第二客戶端顯示更新後的所述關聯數據;以及當接收到所述通信帳號對應的任一客戶端發送的登錄請求時,檢測請求登錄的所述客戶端是否存在歷史登錄記錄。 A method for synchronizing data between clients of a communication account, the method comprising: acquiring update information of the associated data when the first client corresponding to the communication account performs an update operation on the associated data of the communication account; The first client corresponding to the communication account, and the second client in the connected state; synchronizing the update information of the associated data to the second client, so that the second client displays the update And the related data of the client; and when receiving the login request sent by any client corresponding to the communication account, detecting whether the client that requests the login has a historical login record. 如申請專利範圍第1項所述的方法,其中所述關聯數據的更新信息包括:所述關聯數據的更新時間、對所述關聯數據進行更新操作的操作類型和所述關聯數據的更新內容。 The method of claim 1, wherein the update information of the associated data comprises: an update time of the associated data, an operation type of performing an update operation on the associated data, and an update content of the associated data. 如申請專利範圍第2項所述的方法,其中所述搜尋所述通信帳號對應的所述第一客戶端,以及處於連接狀態的第二客戶端之步驟,還包括:獲取所述通信帳號的登錄列表,所述登錄列表中包含所述通信帳號對應的至少一個客戶端的標識信息;根據所述通信帳號對應的至少一個客戶端的標識信息,檢測所述通信帳號對應的至少一個客戶端的狀態;以 及將所述通信帳號對應的至少一個客戶端中,除所述第一客戶端之外且處於連接狀態的客戶端確定為第二客戶端。 The method of claim 2, wherein the step of searching for the first client corresponding to the communication account and the second client in a connected state further comprises: acquiring the communication account a login list, where the login list includes the identification information of the at least one client corresponding to the communication account; and detecting the status of the at least one client corresponding to the communication account according to the identification information of the at least one client corresponding to the communication account; And the at least one client corresponding to the communication account, the client other than the first client and in the connected state is determined as the second client. 如申請專利範圍第1項所述的方法,其中所述當接收到所述通信帳號對應的任一客戶端發送的登錄請求時,檢測請求登錄的所述客戶端是否存在歷史登錄記錄之步驟,還包括:若請求登錄的所述客戶端存在歷史登錄記錄,獲取請求登錄的所述客戶端最近一次歷史登錄時間;根據請求登錄的所述客戶端最近一次歷史登錄時間,搜尋所述通信帳號的關聯數據的更新信息;以及將搜尋到的所述通信帳號的關聯數據的更新信息發送至請求登錄的所述客戶端。 The method of claim 1, wherein when the login request sent by any client corresponding to the communication account is received, detecting whether the client requesting the login has a historical login record, The method further includes: if the client that requests the login has a historical login record, obtaining the latest historical login time of the client that requests the login; searching for the communication account according to the last historical login time of the client that is logged in to the request And updating information of the associated data; and sending the updated update information of the associated data of the communication account to the client requesting the login. 如申請專利範圍第1項所述的方法,其中所述登錄請求中攜帶信息拉取指示和上次信息拉取時間,所述當接收到所述通信帳號對應的任一客戶端發送的登錄請求時,檢測請求登錄的所述客戶端是否存在歷史登錄記錄之步驟,還包括:若請求登錄的所述客戶端存在歷史登錄記錄,根據所述信息拉取指示和上次信息拉取時間,搜尋所述通信帳號的關聯數據的更新信息;以及將搜尋到的所述通信帳號的關聯數據的更新信息發送至請求登錄的所述客戶端。 The method of claim 1, wherein the login request carries an information pull indication and a last information pull time, and the login request sent by any client corresponding to the communication account is received. The step of detecting whether the client requesting the login has a historical login record further includes: if the client requesting the login has a historical login record, searching according to the information pull instruction and the last information pull time, searching And the update information of the associated data of the communication account; and the update information of the associated data of the searched communication account is sent to the client requesting to log in. 如申請專利範圍第1項所述的方法,其中所述當接收到所述通信帳號對應的任一客戶端發送的登錄請求時,檢測請求登錄的所述客戶端是否存在歷史登錄記錄之步驟,還包括;若請求登錄的所述客戶端未存在歷史登錄記錄,搜尋所述通信帳號的關聯數據以及所述通信帳號的關聯數據的所有更新信息;以及將搜尋到的所述通信帳號的關聯數據以及所述通信帳號的關聯數據的所有更新信息一併發送至請求登錄的所述客戶端。 The method of claim 1, wherein when the login request sent by any client corresponding to the communication account is received, detecting whether the client requesting the login has a historical login record, And including: if the client that requests the login does not have a historical login record, searching for the associated data of the communication account and all update information of the associated data of the communication account; and the associated data of the communication account to be searched for And all the update information of the associated data of the communication account is sent to the client requesting to log in. 如申請專利範圍第1項所述的方法,其中所述登錄請求中攜帶信息拉取指示和上次信息拉取時間,所述當接收到所述通信帳號對應的任一客戶端發送的登錄請求時,檢測請求登錄的所述客戶端是否存在歷史登錄記錄之步驟,還包括:若請求登錄的所述客戶端未存在歷史登錄記錄,搜尋所述通信帳號的關聯數據以及所述通信帳號的關聯數據的所有更新信息;以及將搜尋到的所述通信帳號的關聯數據以及所述通信帳號的關聯數據的所有更新信息一併發送至請求登錄的所述客戶端。 The method of claim 1, wherein the login request carries an information pull indication and a last information pull time, and the login request sent by any client corresponding to the communication account is received. The step of detecting whether the client requesting the login has a historical login record further includes: searching for the associated data of the communication account and the association of the communication account if the client that requests the login does not have a historical login record All the update information of the data; and the associated data of the searched communication account and all the update information of the associated data of the communication account are sent to the client requesting to log in. 一種通信帳號各客戶端之間數據同步裝置,所述裝置包括:信息獲取模塊,用於當通信帳號對應的第一客戶端對所 述通信帳號的關聯數據進行更新操作時,獲取所述關聯數據的更新信息;搜尋模塊,用於搜尋所述通信帳號對應的所述第一客戶端,以及處於連接狀態的第二客戶端;同步模塊,用於將所述關聯數據的更新信息同步至所述第二客戶端,以使所述第二客戶端根據所述關聯數據的更新信息,顯示更新後的所述關聯數據;以及登錄檢測模塊,用於當接收到所述通信帳號對應的任一客戶端發送的登錄請求時,檢測請求登錄的所述客戶端是否存在歷史登錄記錄。 A data synchronization device between each client of a communication account, the device includes: an information acquisition module, configured to be used by a first client corresponding to a communication account When the associated data of the communication account is updated, the update information of the associated data is obtained; the search module is configured to search the first client corresponding to the communication account, and the second client in the connected state; a module, configured to synchronize update information of the associated data to the second client, so that the second client displays the updated associated data according to update information of the associated data; and login detection And a module, configured to: when receiving the login request sent by any client corresponding to the communication account, detecting whether the client that requests the login has a historical login record. 如申請專利範圍第8項所述的裝置,其中所述關聯數據的更新信息包括:所述關聯數據的更新時間、對所述關聯數據進行更新操作的操作類型和所述關聯數據的更新內容。 The device of claim 8, wherein the update information of the associated data comprises: an update time of the associated data, an operation type of performing an update operation on the associated data, and an update content of the associated data. 如申請專利範圍第9項所述的裝置,其中所述搜尋模塊包括:列表獲取單元,用於獲取所述通信帳號的登錄列表,所述登錄列表中包含所述通信帳號對應的至少一個客戶端的標識信息;狀態檢測單元,用於根據所述通信帳號對應的至少一個客戶端的標識信息,檢測所述通信帳號對應的至少一個客戶端的狀態;確定單元,用於將所述通信帳號對應的至少一個客戶端中,除所述第一客戶端之外且處於連接狀態的客戶端確定 為第二客戶端。 The device of claim 9, wherein the search module includes: a list obtaining unit, configured to acquire a login list of the communication account, where the login list includes at least one client corresponding to the communication account And a status detecting unit, configured to detect, according to the identification information of the at least one client corresponding to the communication account, a status of the at least one client corresponding to the communication account, and a determining unit, configured to: at least one corresponding to the communication account In the client, the client in addition to the first client and in the connected state determines For the second client. 如申請專利範圍第8項所述的裝置,其中還包括:時間獲取模塊,用於若請求登錄的所述客戶端存在歷史登錄記錄,獲取請求登錄的所述客戶端最近一次歷史登錄時間;第一信息搜尋模塊,用於根據請求登錄的所述客戶端最近一次歷史登錄時間,搜尋所述通信帳號的關聯數據的更新信息;以及第一更新模塊,用於將搜尋到的所述通信帳號的關聯數據的更新信息發送至請求登錄的所述客戶端。 The device of claim 8, further comprising: a time acquisition module, configured to: if the client that requests the login has a historical login record, obtain the latest historical login time of the client that requests to log in; An information searching module, configured to search for update information of associated data of the communication account according to a last history login time of the client that is requested to log in; and a first update module, configured to search for the communication account The update information of the associated data is sent to the client requesting login. 如申請專利範圍第8項所述的裝置,其中所述登錄請求中攜帶信息拉取指示和上次信息拉取時間,所述的裝置還包括:第二信息搜尋模塊,用於若請求登錄的所述客戶端存在歷史登錄記錄,根據所述信息拉取指示和上次信息拉取時間,搜尋所述通信帳號的關聯數據的更新信息;以及第二更新模塊,用於將搜尋到的所述通信帳號的關聯數據的更新信息發送至請求登錄的所述客戶端。 The device of claim 8, wherein the login request carries an information pull indication and a last information pull time, and the device further includes: a second information search module, configured to request login The client has a historical login record, searches for update information of the associated data of the communication account according to the information pull instruction and the last information pull time; and a second update module, configured to search the The update information of the associated data of the communication account is sent to the client requesting the login. 如申請專利範圍第11項所述的裝置,其中還包括:第三信息搜尋模塊,用於若請求登錄的所述客戶端未存在歷史登錄記錄,搜尋所述通信帳號的關聯數據以及所述通信帳號的關聯數據的所有更新信息;以及第三更新模塊,用於若請求登錄的所述客戶端未存在歷 史登錄記錄,搜尋所述通信帳號的關聯數據以及所述通信帳號的關聯數據的所有更新信息。 The device of claim 11, further comprising: a third information searching module, configured to search for associated data of the communication account and the communication if the client that requests the login does not have a historical login record All update information of the associated data of the account; and a third update module, configured to: if the client requesting login does not have a calendar The history registration record searches for the associated data of the communication account and all the updated information of the associated data of the communication account. 如申請專利範圍第12項所述的裝置,其中還包括:第三信息搜尋模塊,用於若請求登錄的所述客戶端未存在歷史登錄記錄,搜尋所述通信帳號的關聯數據以及所述通信帳號的關聯數據的所有更新信息;以及第三更新模塊,用於若請求登錄的所述客戶端未存在歷史登錄記錄,搜尋所述通信帳號的關聯數據以及所述通信帳號的關聯數據的所有更新信息。 The device of claim 12, further comprising: a third information searching module, configured to search for associated data of the communication account and the communication if the client that requests the login does not have a historical login record All update information of the associated data of the account; and a third update module, configured to search for the associated data of the communication account and all updates of the associated data of the communication account if the client that requests the login does not have a historical login record information. 一種伺服器,所述伺服器包括通信帳號各客戶端之間數據同步裝置,其中所述裝置包括:信息獲取模塊,用於當通信帳號對應的第一客戶端對所述通信帳號的關聯數據進行更新操作時,獲取所述關聯數據的更新信息;搜尋模塊,用於搜尋所述通信帳號對應的所述第一客戶端,以及處於連接狀態的第二客戶端;同步模塊,用於將所述關聯數據的更新信息同步至所述第二客戶端,以使所述第二客戶端根據所述關聯數據的更新信息,顯示更新後的所述關聯數據;第一登錄檢測模塊,用於當接收到所述通信帳號對應的任一客戶端發送的登錄請求時,檢測請求登錄的所述客戶端是否存在歷史登錄記錄;時間獲取模塊,用於若請求登錄的所述客戶端存在歷史登錄記錄,獲取請求登錄的所述客戶端最近一次歷史登錄 時間;第一信息搜尋模塊,用於根據請求登錄的所述客戶端最近一次歷史登錄時間,搜尋所述通信帳號的關聯數據的更新信息;第一更新模塊,用於將搜尋到的所述通信帳號的關聯數據的更新信息發送至請求登錄的所述客戶端;第二登錄檢測模塊,用於當接收到所述通信帳號對應的任一客戶端發送的登錄請求時,檢測請求登錄的所述客戶端是否存在歷史登錄記錄,所述登錄請求中攜帶信息拉取指示和上次信息拉取時間;第二信息搜尋模塊,用於若請求登錄的所述客戶端存在歷史登錄記錄,根據所述信息拉取指示和上次信息拉取時間,搜尋所述通信帳號的關聯數據的更新信息;第二更新模塊,用於將搜尋到的所述通信帳號的關聯數據的更新信息發送至請求登錄的所述客戶端;第三信息搜尋模塊,用於若請求登錄的所述客戶端未存在歷史登錄記錄,搜尋所述通信帳號的關聯數據以及所述通信帳號的關聯數據的所有更新信息;以及第三更新模塊,用於若請求登錄的所述客戶端未存在歷史登錄記錄,搜尋所述通信帳號的關聯數據以及所述通信帳號的關聯數據的所有更新信息。 A server, the server includes a data synchronization device between the clients of the communication account, wherein the device includes: an information acquisition module, configured to: when the first client corresponding to the communication account performs the associated data of the communication account The update module acquires update information of the associated data; the search module is configured to search the first client corresponding to the communication account, and the second client in a connected state; and a synchronization module, configured to: Updating information of the associated data is synchronized to the second client, so that the second client displays the updated associated data according to the update information of the associated data; and the first login detecting module is configured to receive When the login request is sent to the client corresponding to the communication account, detecting whether the client that requests the login has a historical login record, and the time obtaining module is configured to: if the client that requests the login has a historical login record, Get the last historical login of the client requesting login The first information searching module is configured to search for update information of the associated data of the communication account according to the latest historical login time of the client that is requested to log in; the first update module is configured to search the communication The update information of the associated data of the account is sent to the client that requests the login; the second login detection module is configured to detect the request for the login when receiving the login request sent by any client corresponding to the communication account Whether the client has a historical login record, and the login request carries the information pull indication and the last information pull time; the second information search module is configured to: if the client that requests the login has a historical login record, according to the The information pull instruction and the last information pull time, and the update information of the associated data of the communication account is searched; the second update module is configured to send the updated update information of the associated data of the communication account to the requested login The third information search module is configured to: if the client that requests the login does not have a historical login record, the search Correlation data of the communication account and all update information of the associated data of the communication account; and a third update module, configured to search for the associated data of the communication account if the client that requests the login does not have a historical login record And all update information of the associated data of the communication account. 如申請專利範圍第15項所述的伺服器,其中所述關聯數據的更新信息包括:所述關聯數據的更新時間、對所述關聯數據進行更新操作的操作類型和所述關聯數據的更新內容。 The server according to claim 15, wherein the update information of the associated data includes: an update time of the associated data, an operation type of performing an update operation on the associated data, and an update content of the associated data. . 如申請專利範圍第16項所述的伺服器,其中所述搜尋模塊包括:列表獲取單元,用於獲取所述通信帳號的登錄列表,所述登錄列表中包含所述通信帳號對應的至少一個客戶端的標識信息;狀態檢測單元,用於根據所述通信帳號對應的至少一個客戶端的標識信息,檢測所述通信帳號對應的至少一個客戶端的狀態;確定單元,用於將所述通信帳號對應的至少一個客戶端中,除所述第一客戶端之外且處於連接狀態的客戶端確定為第二客戶端。 The server of claim 16, wherein the search module includes: a list obtaining unit, configured to acquire a login list of the communication account, where the login list includes at least one client corresponding to the communication account And the status detecting unit is configured to detect, according to the identifier information of the at least one client corresponding to the communication account, the state of the at least one client corresponding to the communication account, and the determining unit, configured to: at least correspond to the communication account In a client, a client other than the first client and in a connected state is determined to be a second client.
TW103123672A 2013-07-10 2014-07-09 Apparatus, server and method of data synchronization between clients of communication account TWI535327B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310288024.7A CN104283926B (en) 2013-07-10 2013-07-10 A kind of method of data synchronization, device and server

Publications (2)

Publication Number Publication Date
TW201503741A TW201503741A (en) 2015-01-16
TWI535327B true TWI535327B (en) 2016-05-21

Family

ID=52258402

Family Applications (1)

Application Number Title Priority Date Filing Date
TW103123672A TWI535327B (en) 2013-07-10 2014-07-09 Apparatus, server and method of data synchronization between clients of communication account

Country Status (4)

Country Link
CN (1) CN104283926B (en)
HK (1) HK1202003A1 (en)
TW (1) TWI535327B (en)
WO (1) WO2015003628A1 (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874316A (en) * 2015-12-14 2017-06-20 广州爱九游信息技术有限公司 A kind of methods of exhibiting of user's combined data, device and server
CN106411692A (en) * 2016-06-29 2017-02-15 宁波市由乐讯通讯科技有限公司 Improved method and system enabling information synchronization between mobile end and server end
CN106487911A (en) * 2016-10-25 2017-03-08 广东欧珀移动通信有限公司 A kind of method of data synchronization, device and system
CN106503221A (en) * 2016-10-28 2017-03-15 福建中金在线信息科技有限公司 A kind of data analysis processing method and device
CN106411718B (en) * 2016-11-04 2020-02-21 宇龙计算机通信科技(深圳)有限公司 Data synchronization method and device based on instant messaging application
CN108023940B (en) * 2017-11-20 2020-01-14 Oppo广东移动通信有限公司 Information updating method, device, server and readable storage medium
CN108075965A (en) * 2017-12-13 2018-05-25 北京小米移动软件有限公司 Message treatment method and device, electronic equipment and computer readable storage medium
CN110224924B (en) * 2019-05-21 2021-04-09 腾讯科技(深圳)有限公司 State updating method and device, storage medium and electronic device
CN112311840A (en) * 2019-08-30 2021-02-02 北京字节跳动网络技术有限公司 Multi-terminal data synchronization method, device, equipment and medium
CN110990361A (en) * 2019-12-05 2020-04-10 河南知途游道信息科技有限公司 Method and system for recording notes for others by user
CN114710509B (en) * 2022-04-14 2023-03-24 北京思必拓科技有限责任公司 Application data synchronization method, device, terminal and storage medium
CN115118735B (en) * 2022-06-08 2023-12-01 腾讯科技(深圳)有限公司 Data synchronization method, group management method, device, equipment and storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060136519A1 (en) * 2004-12-17 2006-06-22 Anurag Batta System and method for user database synchronization
CN101257375B (en) * 2006-12-31 2012-08-08 华为技术有限公司 Method and device for realizing multi-terminal message synchronization
TW200925989A (en) * 2007-12-04 2009-06-16 Inventec Corp Method to synchronize personalized information and execute personalized environment
CN101340274A (en) * 2008-08-21 2009-01-07 北京搜狗科技发展有限公司 Data synchronizing method and apparatus
CN102130845B (en) * 2010-01-19 2016-09-28 中兴通讯股份有限公司 The sending method of return receipt report and processing system
CN103327037B (en) * 2012-03-20 2017-09-29 中兴通讯股份有限公司 Method of data synchronization and device
CN103546435A (en) * 2012-07-13 2014-01-29 中兴通讯股份有限公司 Data synchronizing method and server
CN103685361B (en) * 2012-09-06 2017-03-22 中国移动通信集团公司 Data synchronization method and system, and terminal
CN103024062A (en) * 2012-12-24 2013-04-03 腾讯科技(深圳)有限公司 Data sharing method, clients and data sharing system

Also Published As

Publication number Publication date
CN104283926A (en) 2015-01-14
HK1202003A1 (en) 2015-09-11
TW201503741A (en) 2015-01-16
CN104283926B (en) 2019-01-29
WO2015003628A1 (en) 2015-01-15

Similar Documents

Publication Publication Date Title
TWI535327B (en) Apparatus, server and method of data synchronization between clients of communication account
US11233851B2 (en) System, method, and computer program for enabling a user to access and edit via a virtual drive objects synchronized to a plurality of synchronization clients
JP5855222B2 (en) Synchronous digital content
US20100262582A1 (en) Content synchronization across multiple computers
US8214301B2 (en) Social network mapping
TWI641955B (en) Method, system, and computer-readable storage medium for user experience
US9461949B2 (en) Managing links and invitations to shared content
US10713434B2 (en) Transfer of content between documents of different storage types
WO2016161961A1 (en) Method, terminal device, server, and system for processing information of interest
US10409901B2 (en) Providing collaboration communication tools within document editor
WO2015157910A1 (en) Application information sharing method and apparatus
EP3114641B1 (en) Reading group ebook synchronization
JP5936942B2 (en) Memo synchronization system, mobile system and memo synchronization method for synchronizing memo data
US8856230B2 (en) In browser real time collaboration lists and forms
WO2016169438A1 (en) Method and apparatus for acquiring user account
US20170134364A1 (en) Note update method and device
JP2018517215A (en) Session processing in instant messaging
GB0509904D0 (en) Method, apparatus and computer program for facilitating communication between a client application and a server application
KR101853410B1 (en) Social media server for providing client with media content including tagging information and the client
US9626726B2 (en) Location based social networking system and method
US9894162B2 (en) Communication protocols for an online content management system
WO2017080198A1 (en) Memo update method and device
CN113365088B (en) Data processing method, data processing apparatus, electronic device, storage medium, and program product
CN103491113B (en) A kind of synchronous method, the apparatus and system of information fusion file
EP3289544A1 (en) Insertion of unsaved content via content channel