[go: up one dir, main page]

CN106453514B - Method and device for distinguishing and synchronizing chat information - Google Patents

Method and device for distinguishing and synchronizing chat information Download PDF

Info

Publication number
CN106453514B
CN106453514B CN201610826836.6A CN201610826836A CN106453514B CN 106453514 B CN106453514 B CN 106453514B CN 201610826836 A CN201610826836 A CN 201610826836A CN 106453514 B CN106453514 B CN 106453514B
Authority
CN
China
Prior art keywords
unlocking
information
terminal device
synchronized
chat information
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.)
Expired - Fee Related
Application number
CN201610826836.6A
Other languages
Chinese (zh)
Other versions
CN106453514A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610826836.6A priority Critical patent/CN106453514B/en
Publication of CN106453514A publication Critical patent/CN106453514A/en
Application granted granted Critical
Publication of CN106453514B publication Critical patent/CN106453514B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明实施例公开了一种聊天信息区别同步的方法及装置,其中的方法可包括:在目标社交账号在多个终端设备上登陆的情况下,监测所述目标社交账号是否有待同步的聊天信息;若在目标时刻监测到所述目标社交账号有待同步的聊天信息,则获取所述多个终端设备中需要进行聊天信息同步的终端设备的解锁信息;根据所述解锁信息,将所述解锁的方式为非安全解锁方式的终端设备判定为第一终端设备,所述非安全解锁方式包括数字密码解锁或图形解锁;控制不将所述待同步的聊天信息同步至所述第一终端设备上。采用本发明可以解决现有技术中同一社交账号的聊天信息在不同终端设备上无区别同步显示,导致在某些应用场景下带来的不便的问题,提升用户体验。

Figure 201610826836

Embodiments of the present invention disclose a method and device for differential synchronization of chat information, wherein the method may include: when a target social account is logged in on multiple terminal devices, monitoring whether the target social account has chat information to be synchronized If monitoring the chat information to be synchronized in the target social account at the target moment, then obtain the unlocking information of the terminal equipment that needs to synchronize chat information among the multiple terminal equipments; according to the unlocking information, the unlocked The terminal device whose mode is a non-secure unlocking mode is determined as the first terminal device, and the non-secure unlocking mode includes digital password unlocking or graphic unlocking; the control is not to synchronize the chat information to be synchronized to the first terminal device. The present invention can solve the problem of inconvenience caused in some application scenarios caused by the inconvenience caused by the inconvenience caused in some application scenarios in the prior art of the chat information of the same social account on different terminal devices, and improve the user experience.

Figure 201610826836

Description

一种聊天信息区别同步的方法及装置A method and device for distinguishing and synchronizing chat information

技术领域technical field

本发明涉及电子技术领域,尤其涉及一种聊天信息区别同步的方法及装置。The present invention relates to the field of electronic technology, and in particular, to a method and device for distinguishing and synchronizing chat information.

背景技术Background technique

随着互联网络技术的发展和人们生活水平的不断提高,各种网络应用的使用越来越普及,网络聊天已经成为人们生活中不可缺少的通信娱乐工具。在社交应用中,特别是移动社交网络应用中,大部分的社交工具,例如QQ、微信、陌陌等都是一个帐号对应一个虚拟角色,用户使用一个账号登录,该账号对应的相关信息,不论在哪个终端上登录该账号,都可以获得该账号下对应的相关信息。With the development of Internet technology and the continuous improvement of people's living standards, the use of various network applications has become more and more popular, and Internet chat has become an indispensable communication and entertainment tool in people's lives. In social applications, especially mobile social networking applications, most social tools, such as QQ, WeChat, Momo, etc., are one account corresponding to one virtual character. The user logs in with one account, and the relevant information corresponding to the account, regardless of On which terminal you log in to the account, you can get the relevant information under the account.

例如,随着QQ应用的不断完善和进步,QQ新增有消息同步功能,该功能是指用户可以通过在各种智能设备(手机、电脑、pad等)上登录自己的同一个账号,都能看到自己的聊天记录,如在线聊天、传输视频文件、语音文件等多种聊天记录。即所有通过该账号产生的聊天信息都可以在各个登录了该账号的终端上进行同步。但是,在一些特殊的情况下,用户可能不希望所有的消息在所有的终端上同步,比如,有时用户在陌生或网吧登录或者安全性不高的网络下就不希望同步最近的聊天记录;又比如用户在有些终端上虽然登录有该账号,但是较长时间未使用或者用户自己不在附近,则可能不需要同步消息以免浪费功耗或被他人窃取等。因此,需要提出一种可以针对聊天信息区分化显示的方法以满足并提升用户的多样性需求和体验。For example, with the continuous improvement and progress of the QQ application, QQ has added a message synchronization function, which means that users can log in to the same account on various smart devices (mobile phones, computers, pads, etc.) See your own chat records, such as online chat, transfer video files, voice files and other chat records. That is, all chat information generated through the account can be synchronized on each terminal logged into the account. However, in some special cases, users may not want all messages to be synchronized on all terminals. For example, sometimes users do not want to synchronize recent chat records when they log in to an unfamiliar or Internet cafe or under a network with low security; For example, although the user has logged in the account on some terminals, but has not used it for a long time or the user himself is not nearby, the synchronization message may not be needed to avoid wasting power consumption or being stolen by others. Therefore, it is necessary to propose a method that can differentiate and display chat information to meet and improve the diverse needs and experiences of users.

发明内容SUMMARY OF THE INVENTION

本发明实施例所要解决的技术问题在于,提供一种聊天信息区别同步的方法及装置,可以解决现有技术中同一社交账号的聊天信息在不同终端设备上无区别同步显示,导致在某些应用场景下带来的不便的问题。The technical problem to be solved by the embodiments of the present invention is to provide a method and a device for the differential synchronization of chat information, which can solve the problem that the chat information of the same social account in the prior art is displayed synchronously on different terminal devices without distinction, resulting in some applications The inconvenience caused by the scene.

第一方面,本发明实施例提供了一种聊天信息区别同步的方法,可包括:In a first aspect, an embodiment of the present invention provides a method for distinguishing and synchronizing chat information, which may include:

在目标社交账号在多个终端设备上登录的情况下,监测所述目标社交账号是否有待同步的聊天信息;In the case that the target social account is logged in on multiple terminal devices, monitoring whether the target social account has chat information to be synchronized;

若在目标时刻监测到所述目标社交账号有待同步的聊天信息,则获取所述多个终端设备中需要进行聊天信息同步的终端设备的解锁信息,所述解锁信息包括在当前时刻之前最近进行终端设备解锁的方式;If the target social account is monitored for chat information to be synchronized at the target moment, the unlocking information of the terminal equipment that needs to synchronize chat information among the plurality of terminal equipment is acquired, and the unlocking information includes the most recent terminal before the current moment. How the device is unlocked;

根据所述解锁信息,将所述解锁的方式为非安全解锁方式的终端设备判定为第一终端设备,所述非安全解锁方式包括数字密码解锁或图形解锁;According to the unlocking information, the terminal device whose unlocking mode is a non-secure unlocking mode is determined as the first terminal device, and the non-secure unlocking mode includes digital password unlocking or graphic unlocking;

控制不将所述待同步的聊天信息同步至所述第一终端设备上。Controlling not to synchronize the chat information to be synchronized to the first terminal device.

第二方面,本发明实施例提供了一种聊天信息区别同步的装置,可包括:In a second aspect, an embodiment of the present invention provides an apparatus for distinguishing and synchronizing chat information, which may include:

监测模块,用于在目标社交账号在多个终端设备上登录的情况下,监测所述目标社交账号是否有待同步的聊天信息;a monitoring module, configured to monitor whether the target social account has chat information to be synchronized when the target social account is logged in on multiple terminal devices;

获取模块,用于若在目标时刻监测到所述目标社交账号有待同步的聊天信息,则获取所述多个终端设备中需要进行聊天信息同步的终端设备的解锁信息,所述解锁信息包括在当前时刻之前最近进行终端设备解锁的方式;The acquiring module is configured to acquire the unlocking information of the terminal equipment that needs to be synchronized with the chat information among the multiple terminal equipments, if the chatting information to be synchronized in the target social account is monitored at the target moment, the unlocking information is included in the current The method of unlocking the terminal device most recently before the time;

第一判定模块,用于根据所述解锁信息,将所述解锁的方式为非安全解锁方式的终端设备判定为第一终端设备,所述非安全解锁方式包括数字密码解锁或图形解锁;a first determination module, configured to determine, according to the unlocking information, a terminal device whose unlocking mode is a non-secure unlocking mode as the first terminal device, and the non-secure unlocking mode includes digital password unlocking or graphic unlocking;

第一控制模块,用于控制不将所述待同步的聊天信息同步至所述第一终端设备上。A first control module, configured to control not to synchronize the chat information to be synchronized to the first terminal device.

第三方面,本发明实施例提供了一种终端设备,可包括:In a third aspect, an embodiment of the present invention provides a terminal device, which may include:

存储有可执行程序代码的存储器;a memory in which executable program code is stored;

与所述存储器耦合的处理器;a processor coupled to the memory;

所述处理器调用所述存储器中存储的所述可执行程序代码,执行如本发明实施例第一方面任意一方法中所描述的部分或全部步骤。The processor invokes the executable program code stored in the memory to execute part or all of the steps described in any one of the methods in the first aspect of the embodiments of the present invention.

第四方面,本发明提供一种计算机存储介质,用于储存为本发明实施例第二方面提供的聊天信息区别同步的装置所用的计算机软件指令,其包含用于执行上述方面所设计的程序。In a fourth aspect, the present invention provides a computer storage medium for storing computer software instructions used for the apparatus for discriminating and synchronizing chat information provided in the second aspect of the embodiments of the present invention, including a program for executing the above aspect.

实施本发明实施例,具有如下有益效果:Implementing the embodiment of the present invention has the following beneficial effects:

本发明实施例,通过在目标社交账号在多个终端设备上登录的情况下,监测所述目标社交账号是否有待同步的聊天信息;若在目标时刻监测到所述目标社交账号有待同步的聊天信息,则获取所述多个终端设备中需要进行聊天信息同步的终端设备的解锁信息;根据所述解锁信息,将所述解锁的方式为非安全解锁方式的终端设备判定为第一终端设备,控制不将所述待同步的聊天信息同步至所述第一终端设备上。即当用户的同一个账号在多个终端设备上登录的情况下,根据用户解锁该终端设备的方式判断是否为本人操作,从而决定是否将待同步的聊天信息同步到该终端设备上,以便于保护用户的隐私安全,同时节省由于不必要的信息同步造成的网络资源的浪费。This embodiment of the present invention monitors whether the target social account has chat information to be synchronized when the target social account is logged in on multiple terminal devices; if the target social account has chat information to be synchronized at the target time , then obtain the unlocking information of the terminal device that needs to synchronize chat information among the multiple terminal devices; according to the unlocking information, determine the terminal device whose unlocking mode is a non-secure unlocking mode as the first terminal device, and control the The chat information to be synchronized is not synchronized to the first terminal device. That is, when the same account of the user is logged in on multiple terminal devices, it is determined whether the user operates the terminal device according to the way the user unlocks the terminal device, so as to decide whether to synchronize the chat information to be synchronized to the terminal device, so as to facilitate the operation of the terminal device. It protects the privacy of users and saves the waste of network resources caused by unnecessary information synchronization.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.

图1是本发明实施例提供的聊天消息同步的系统架构架图;1 is a system architecture diagram of chat message synchronization provided by an embodiment of the present invention;

图2是本发明实施例提供的一种聊天信息区别同步的方法的流程示意图;2 is a schematic flowchart of a method for distinguishing and synchronizing chat information according to an embodiment of the present invention;

图3是本发明实施例提供的另一种聊天信息区别同步的方法的流程示意图;3 is a schematic flowchart of another method for distinguishing and synchronizing chat information provided by an embodiment of the present invention;

图4a是本发明实施例提供的聊天信息区别同步的方法的一个具体应用场景示意图;4a is a schematic diagram of a specific application scenario of the method for discriminating and synchronizing chat information provided by an embodiment of the present invention;

图4b是本发明实施例提供的聊天信息区别同步的方法的另一个具体应用场景示意图;4b is a schematic diagram of another specific application scenario of the method for differential synchronization of chat information provided by an embodiment of the present invention;

图5是本发明实施例提供的一种聊天信息区别同步的装置的结构示意图;5 is a schematic structural diagram of an apparatus for discriminating and synchronizing chat information provided by an embodiment of the present invention;

图6是本发明实施例提供的聊天信息区别同步的装置的另一实施例的结构示意图;6 is a schematic structural diagram of another embodiment of an apparatus for discriminating and synchronizing chat information provided by an embodiment of the present invention;

图7是本发明实施例提供的终端设备的结构示意图;7 is a schematic structural diagram of a terminal device provided by an embodiment of the present invention;

图8是本发明提供的终端设备的另一实施例的结构示意图。FIG. 8 is a schematic structural diagram of another embodiment of a terminal device provided by the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to make those skilled in the art better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only Embodiments are part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

以下分别进行详细说明。Each of them will be described in detail below.

本发明的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third" and "fourth" in the description and claims of the present invention and the accompanying drawings are used to distinguish different objects, rather than to describe a specific order. . Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices.

在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

以下,对本申请中的部分用语进行解释说明,以便于本领域技术人员理解。Hereinafter, some terms in the present application will be explained so as to facilitate the understanding of those skilled in the art.

1)、终端设备,又称之为用户设备(User Equipment,UE),是一种向用户提供语音和/或数据连通性的设备,如具有无线连接功能的手持式设备、车载设备等。常见的终端设备例如包括:手机、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(Mobile InternetDevice,MID)、可穿戴设备、智能手环、计步器、MP3播放器(Moving Picture Experts GroupAudio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture ExpertsGroup Audio Layer IV,动态影像专家压缩标准音频层面3)播放器、个人数字助理(Personal Digital Assistant,PDA)和膝上型便携计算机等。1) Terminal equipment, also known as User Equipment (UE), is a device that provides voice and/or data connectivity to users, such as a handheld device with a wireless connection function, a vehicle-mounted device, and the like. Common terminal devices include, for example, mobile phones, tablet computers, notebook computers, PDAs, Mobile Internet Devices (MIDs), wearable devices, smart bracelets, pedometers, and MP3 players (Moving Picture Experts GroupAudio Layer III). , Moving Picture Experts Compression Standard Audio Layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 3) Players, Personal Digital Assistants (PDAs) and laptop computers, etc.

2)、应用程序,可以是应用软件(Application,APP),指为完成某项或多项特定工作的计算机程序,即用户可以使用的各种程序设计语言,以及用各种程序设计语言编制的应用程序的集合,分为应用软件包和用户程序,例如手机或电脑上各类操作系统下的应用软件;也可以是指终端设备的操作系统本身带有某些功能的可执行应用程序。2) An application program, which can be an application software (Application, APP), refers to a computer program for completing one or more specific tasks, that is, various programming languages that users can use, and various programming languages. The collection of application programs is divided into application software packages and user programs, such as application software under various operating systems on mobile phones or computers; it can also refer to executable applications with certain functions in the operating system of the terminal device itself.

2)、IP地址,是指互联网协议地址又译为网际协议地址(Internet ProtocolAddress,IP Address),IP地址是IP协议提供的一种统一的地址格式,它为互联网上的每一个网络和每一台主机分配一个逻辑地址,以此来屏蔽物理地址的差异。在Internet上,每一个节点都依靠唯一的IP地址互相区分和相互联系。IP 地址是一个32位二进制数的地址,由4个8位字段组成,每个字段之间用点号隔开,用于标识TCP/IP宿主机。每个IP地址都包含两部分:网络ID和主机ID。网络ID标识在同一个物理网络上的所有宿主机,主机ID标识该物理网络上的每一个宿主机,于是整个Internet上的每个计算机都依靠各自唯一的IP地址来标识。2), IP address, refers to the Internet Protocol Address and translated into Internet Protocol Address (Internet Protocol Address, IP Address), IP address is a unified address format provided by the IP protocol, which is used for every network and every network on the Internet. Each host assigns a logical address to mask differences in physical addresses. On the Internet, each node distinguishes and communicates with each other by a unique IP address. An IP address is a 32-bit binary number address consisting of 4 8-bit fields, each of which is separated by a dot, and is used to identify the TCP/IP host. Every IP address consists of two parts: the network ID and the host ID. The network ID identifies all hosts on the same physical network, and the host ID identifies each host on the physical network, so each computer on the entire Internet is identified by its own unique IP address.

3)、“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A 和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。3), "plurality" refers to two or more. "And/or", which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone. The character "/" generally indicates that the associated objects are an "or" relationship.

为了便于理解本发明实施例,下面先对本发明实施例提供的系统构架进行描述。请参阅图1,图1是本发明实施例提供的一种聊天消息同步的系统架构架示意图。如图1所示,本发明实施例提供的系统架构是一个基于客户端-服务器架构提供通信业务的架构,该系统架构中可以包括,社交应用服务器以及多个终端设备,其中,发送方终端设备和接收方终端设备均通过Internet网络登录相关的社交账号接入到社交应用服务器中,即发送方终端设备将需要发送的聊天信息通过先发送到社交应用服务器,再由社交应用服务器发送给接收方终端设备(反之亦然),从而完成从发送方终端设备到接收方终端设备的聊天信息(如文字消息、语音消息、动画消息、视频消息、传输文件等)的交互。具体地,当用户使用同一个社交账号(例如QQ、微信、陌陌等各类社交应用)在不同终端设备(如手机、电脑、pad等)上登录时(可以是同时,也可以是有先有后的不同时),最终社交应用服务器都会将该社交账号对应的聊天消息(可能是一定时间段也可以是所有时间段)同步到所有登录了该社交账号的终端设备上,即所有通过该账号产生的聊天信息都可以在各个登录了该账号的终端上进行同步。本发明中的各个实施例则是基于以上系统架构和技术背景,在一些特殊的情况下,用户可能不希望所有的消息在所有的终端上同步,进行的改善,用以提升用户体验。To facilitate understanding of the embodiments of the present invention, the following first describes the system architecture provided by the embodiments of the present invention. Please refer to FIG. 1. FIG. 1 is a schematic diagram of a system architecture of chat message synchronization provided by an embodiment of the present invention. As shown in FIG. 1 , the system architecture provided by the embodiment of the present invention is an architecture for providing communication services based on a client-server architecture. The system architecture may include a social application server and multiple terminal devices, wherein the sender terminal device Both the terminal device of the sender and the receiver log in to the relevant social account through the Internet network to access the social application server, that is, the terminal device of the sender sends the chat information to be sent to the social application server first, and then the social application server sends it to the receiver. Terminal device (and vice versa), thereby completing the interaction of chat information (such as text messages, voice messages, animation messages, video messages, transfer files, etc.) from the sender's terminal device to the receiver's terminal device. Specifically, when a user uses the same social account (such as various social applications such as QQ, WeChat, Momo, etc.) to log in on different terminal devices (such as mobile phones, computers, pads, etc.) If there is a difference between the two), the social application server will finally synchronize the chat messages corresponding to the social account (may be a certain period of time or all time periods) to all terminal devices logged in to the social account, that is, all the The chat information generated by the account can be synchronized on each terminal logged in to the account. Various embodiments of the present invention are based on the above system architecture and technical background. In some special cases, users may not want all messages to be synchronized on all terminals, and improvements are made to improve user experience.

还可以理解的是,以上图1中的系统架构只是本发明实施例中较优的一种实施方式,本发明实施例中的系统架构包括但不仅限于以上系统架构,只要能够实现本发明中的聊天信息区别同步的系统架构均属于本发明所保护和涵盖的范围。It can also be understood that the above system architecture in FIG. 1 is only a preferred implementation in the embodiment of the present invention, and the system architecture in the embodiment of the present invention includes but is not limited to the above system architecture, as long as the system architecture in the present invention can be realized. The system architecture of the differential synchronization of chat information belongs to the scope of protection and coverage of the present invention.

图2是本发明实施例提供的一种聊天信息区别同步的方法的流程示意图,下面将结合附图2从社交应用服务器或者是终端设备的控制器或处理器侧对本发明实施例中的一种聊天信息区别同步的方法进行详细介绍,该方法包括以下步骤S201-步骤S204。FIG. 2 is a schematic flowchart of a method for distinguishing and synchronizing chat information provided by an embodiment of the present invention. In the following, with reference to FIG. 2 , a social application server or a controller or processor side of a terminal device will interpret one of the embodiments of the present invention. The method for discriminating and synchronizing chat information is introduced in detail, and the method includes the following steps S201-S204.

步骤S201:在目标社交账号在多个终端设备上登录的情况下,监测所述目标社交账号是否有待同步的聊天信息。Step S201: In the case that the target social account is logged in on multiple terminal devices, monitor whether the target social account has chat information to be synchronized.

具体地,在本发明各实施例中,目标社交账号在多个终端设备上登录的情况下,可以分为两种情况,一种是:用户同时在多个终端设备上登录自己的社交账号,如用户在手机和平板电脑上分别登录了自己的QQ号;另一种是在不同的时间段使用不同的终端设备登录同一个账号,如用户早上9点在手机上登录了自己的QQ号,上午10点退出后,11点又在平板电脑上登录自己的QQ号。这两种情况下都需要同步聊天信息,前一种可以理解为是手机与平板电脑之间的相互同步,即手机在同步平板电脑上的聊天信息,平板电脑也在同步手机上的聊天信息,此时,同步对于手机和平板电脑来说是相互的;后一种可以理解为,用户早上先使用了手机接收了聊天信息,后来用户再使用平板电脑登录时,又会同步早上手机上接收到的聊天信息,此时平板电脑相当于在同步手机上的聊天信息。Specifically, in each embodiment of the present invention, when the target social account is logged in on multiple terminal devices, it can be divided into two cases. One is: the user logs in his social account on multiple terminal devices at the same time, For example, users log in to their QQ numbers on their mobile phones and tablet computers respectively; the other is to log in to the same account using different terminal devices at different time periods. After logging out at 10 a.m., at 11 a.m., he logged into his QQ account on the tablet again. In both cases, chat information needs to be synchronized. The former can be understood as the mutual synchronization between the mobile phone and the tablet computer, that is, the mobile phone is synchronizing the chat information on the tablet computer, and the tablet computer is also synchronizing the chat information on the mobile phone. At this time, the synchronization is mutual for the mobile phone and the tablet; the latter can be understood as the user first uses the mobile phone to receive the chat information in the morning, and then when the user logs in using the tablet computer, it will synchronize the information received on the mobile phone in the morning. chat information, the tablet computer is equivalent to synchronizing the chat information on the mobile phone.

即可以简单的理解为,对于同一条聊天信息(发送或接收),后登录获取到该聊天信息的终端设备总是在同步先发出或先接收该聊天信息的终端设备上的聊天信息(或者是一段时间段内,或者所有的),具体要看该目标社交账号的权限(如是普通身份还是会员身份等);若对于同一条聊天消息(发送或接收),存在两个及以上同时获取到该聊天信息的终端设备,则可以认为该两个以上的终端设备是相互同步其中任意一个终端设备上的聊天信息。举例来说,多个终端设备中并不一定所有的终端设备都需要进行聊天信息的同步,例如,终端设备1在9点已经显示过9:00到9:30的聊天信息了,此时若终端设备2 9:30才登录的话,则此时虽然终端设备1和终端设备2都登录了该目标社交账号,但是只有终端设备2需要同步9:00到9:30的聊天信息(待同步的聊天信息)。可见,不是所有登录了目标社交账号的终端设备都需要同步待聊天信息。总结来说,本发明实施例中,对于同一条聊天消息(假如是当前时刻),多个终端设备当前都已经登录目标社交账号时,多个终端设备都需要相互同步;对于同一条聊天消息(假如是当前时刻),多个终端设备有在当前时刻之前登录,也有在当前时刻之后登录时,则后登录的需要同步,先登录的不需要同步。That is, it can be simply understood that, for the same chat message (sent or received), the terminal device that later logs in to obtain the chat message always synchronizes the chat message (or the chat message on the terminal device that first sent or received the chat message). For a period of time, or all), it depends on the permissions of the target social account (such as ordinary identity or membership, etc.); if for the same chat message (send or receive), there are two or more that obtain the same chat message at the same time. For a terminal device for chatting information, it can be considered that the two or more terminal devices mutually synchronize the chatting information on any one of the terminal devices. For example, not all terminal devices among multiple terminal devices need to synchronize chat information. For example, terminal device 1 has displayed chat information from 9:00 to 9:30 at 9:00. If terminal device 2 logs in at 9:30, then although terminal device 1 and terminal device 2 both log in to the target social account, only terminal device 2 needs to synchronize the chat information from 9:00 to 9:30 (to be synchronized). chat messages). It can be seen that not all terminal devices logged in to the target social account need to synchronize the information to be chatted. To sum up, in this embodiment of the present invention, for the same chat message (if it is the current moment), when multiple terminal devices have currently logged into the target social account, the multiple terminal devices need to be synchronized with each other; for the same chat message ( If it is the current time), when multiple terminal devices log in before the current time, and some log in after the current time, the later login needs to be synchronized, and the first login does not need to be synchronized.

基于上述,在目标社交账号在多个终端设备上登录的情况下,监测该目标社交账号是否有待同步的聊天信息,包括监测多个终端先后登录目标社交账号时,后登录的终端设备当前是否需要同步之前登录的终端设备上所接收或发送的聊天信息(聊天记录);也包括多个终端设备同时登录目标社交账号时,所有同时登录终端设备当前需要同步的所有即时聊天信息。Based on the above, in the case where the target social account is logged in on multiple terminal devices, monitoring whether the target social account has chat information to be synchronized, including monitoring whether multiple terminals log in to the target social account successively, whether the terminal device that logs in later needs to Synchronize the chat information (chat records) received or sent on the previously logged-in terminal device; also includes all the instant chat information that needs to be synchronized for all simultaneously logged-in terminal devices when multiple terminal devices log in to the target social account at the same time.

需要说明的是,本发明中各个实施例若是从终端设备的控制器或处理器侧来进行动作的执行,则可以认为各个终端设备通过控制器或处理器主动参与的控制,至于控制除自身以外的动作,可以理解为将控制指令或信号上传至社交应用服务器处,再由社交应用服务器转达给相应的其它终端设备;而若是理解为由社交应用服务器侧来执行,则可以将社交应用服务器理解为聊天消息同步的系统中的控制主导的动作执行主体。本发明对此不作具体限定。It should be noted that, if each embodiment of the present invention performs actions from the controller or processor side of the terminal device, it can be considered that each terminal device actively participates in the control through the controller or processor, and the control other than itself The action can be understood as uploading control instructions or signals to the social application server, and then relayed by the social application server to other corresponding terminal devices; and if it is understood as being executed by the social application server side, the social application server can understand A control-led action performer in the system for chat message synchronization. The present invention does not specifically limit this.

步骤S202:若在目标时刻监测到所述目标社交账号有待同步的聊天信息,则获取所述多个终端设备中需要进行聊天信息同步的终端设备的解锁信息,所述解锁信息包括在当前时刻之前最近进行终端设备解锁的方式。Step S202: If the target social account is monitored at the target time to synchronize the chat information, then obtain the unlock information of the terminal equipment that needs to synchronize the chat information among the plurality of terminal equipment, and the unlock information is included before the current moment. The most recent way to unlock the terminal device.

具体地,若判断出步骤S201中有待同步的聊天信息时,则获取多个登录了该目标社交账号的终端设备中需要进行聊天信息同步的终端设备的解锁信息,以便于后续判断是否将聊天信息发送到该终端设备上,以保证用户的隐私安全。可以理解的是,只关注用户需要同步聊天信息之前最近的一次解锁方式,之前的解锁方式没有参考价值,因为之前的解锁方式只对之前的聊天信息同步获取有影响,当前的待同步聊天信息则只需要参考最近的一次解锁方式即可。Specifically, if it is determined that there is chat information to be synchronized in step S201, the unlocking information of the terminal devices that need to synchronize the chat information among the terminal devices logged in the target social account is obtained, so as to facilitate the subsequent determination of whether to synchronize the chat information. Send it to the terminal device to ensure the privacy and security of the user. It is understandable that only focus on the most recent unlocking method before the user needs to synchronize the chat information. The previous unlocking method has no reference value, because the previous unlocking method only affects the synchronization of the previous chat information, and the current chat information to be synchronized is not. Just refer to the most recent unlocking method.

步骤S203:根据所述解锁信息,将所述解锁的方式为非安全解锁方式的终端设备判定为第一终端设备,所述非安全解锁方式包括数字密码解锁或图形解锁。Step S203: According to the unlocking information, determine the terminal device whose unlocking mode is a non-secure unlocking mode as the first terminal device, and the non-secure unlocking mode includes digital password unlocking or graphic unlocking.

具体地,非安全的解锁方式主要有密码解锁或图形解锁等,用该类解锁方式可以判定为,不安全的登录方式。本发明实施例通过监测用户是否是利用指纹识别的方式进行终端的解锁从而登录的社交账号来判断登录该社交账号的用户是否为本人操作,从而有选择性的将聊天消息进行区别显示。假设用户是通过指纹识别解锁终端然后在该终端上登录社交账号的,则基本可证明是本人在使用终端,因此,当用户在电脑和手机上分别登录有自己的社交账号时,且与朋友进行聊天,假设朋友发送聊天消息过来,若用户是通过指纹解锁方式解锁的手机,通过数字密码的方式解锁的电脑,则只在指纹解锁的手机上显示,电脑上则可以不同步显示。进一步地,可以搭配监测哪个终端上的账号是通过人脸识别的就优先在哪个终端上显示。当然,也可以结合聊天消息是否私密或者是否涉及安全隐患来进一步调整。本方案有利于保护用户本人的隐私,避免终端因其他陌生或不法人员非法登录后导致的轻易窃取用户的隐私信息。可以理解的是,本发明中的安全解锁方式或非安全解锁方式远远不只是包括了本发明中各个实施例中所提及的解锁方式,还可以包括尚未开发出的新型解锁方式,而对于其具体是属于安全解锁方式还是非安全解锁方式也可以灵活的判定和设置。Specifically, the non-secure unlocking methods mainly include password unlocking or graphic unlocking, etc., and this type of unlocking method can be determined as an insecure login method. The embodiment of the present invention determines whether the user who logs in to the social account operates by himself by monitoring whether the user uses the fingerprint recognition method to unlock the terminal to log in the social account, thereby selectively displaying the chat messages differently. Assuming that the user unlocks the terminal through fingerprint recognition and then logs in to the social account on the terminal, it can basically be proved that the user is using the terminal. For chatting, if a friend sends a chat message, if the user unlocks the mobile phone by fingerprint unlocking, and unlocks the computer by digital password, it will only be displayed on the mobile phone unlocked by the fingerprint, and the computer may not be displayed synchronously. Further, it can be used to monitor which terminal account is identified through face recognition and display it on which terminal first. Of course, it can also be further adjusted according to whether the chat message is private or whether it involves security risks. This solution is conducive to protecting the privacy of the user, and avoids the easy theft of the user's private information caused by the illegal login of the terminal by other unfamiliar or illegal persons. It can be understood that the secure unlocking method or the non-secure unlocking method in the present invention not only includes the unlocking methods mentioned in the various embodiments of the present invention, but also includes new unlocking methods that have not yet been developed. Whether it is a secure unlocking mode or a non-secure unlocking mode can also be flexibly determined and set.

步骤S204:控制不将所述待同步的聊天信息同步至所述第一终端设备上。Step S204: Control not to synchronize the chat information to be synchronized to the first terminal device.

具体地,最终将待同步的聊天信息不同步至通过不安全解锁方式进行解锁的第一终端设备上,以免泄露用户的安全隐私信息。Specifically, the chat information to be synchronized is finally not synchronized to the first terminal device that is unlocked in an insecure unlocking manner, so as to avoid leaking the user's security privacy information.

本发明实施例,通过在目标社交账号在多个终端设备上登录的情况下,监测所述目标社交账号是否有待同步的聊天信息;若在目标时刻监测到所述目标社交账号有待同步的聊天信息,则获取所述多个终端设备中需要进行聊天信息同步的终端设备的解锁信息;根据所述解锁信息,将所述解锁的方式为非安全解锁方式的终端设备判定为第一终端设备,控制不将所述待同步的聊天信息同步至所述第一终端设备上。即当用户的同一个账号在多个终端设备上登录的情况下,根据用户解锁该终端设备的方式判断是否为本人操作,从而决定是否将待同步的聊天信息同步到该终端设备上,以便于保护用户的隐私安全,同时节省由于不必要的信息同步造成的网络资源的浪费。This embodiment of the present invention monitors whether the target social account has chat information to be synchronized when the target social account is logged in on multiple terminal devices; if the target social account has chat information to be synchronized at the target time , then obtain the unlocking information of the terminal device that needs to synchronize chat information among the multiple terminal devices; according to the unlocking information, determine the terminal device whose unlocking mode is a non-secure unlocking mode as the first terminal device, and control the The chat information to be synchronized is not synchronized to the first terminal device. That is, when the same account of the user is logged in on multiple terminal devices, it is determined whether the user operates the terminal device according to the way the user unlocks the terminal device, so as to decide whether to synchronize the chat information to be synchronized to the terminal device, so as to facilitate the operation of the terminal device. It protects the privacy of users and saves the waste of network resources caused by unnecessary information synchronization.

图3是本发明实施例提供的另一种聊天信息区别同步的方法的流程示意图,下面将结合附图3从终端设备侧对本发明实施例中的另一种聊天信息区别同步的方法进行详细介绍,如图3所示,该方法可以包括以下步骤S301-步骤S308。FIG. 3 is a schematic flowchart of another method for differentiating and synchronizing chat information provided by an embodiment of the present invention. The following will describe in detail another method for distinguishing and synchronizing chat information in an embodiment of the present invention from the terminal device side with reference to FIG. 3 . , as shown in FIG. 3, the method may include the following steps S301-S308.

步骤S301:在目标社交账号在多个终端设备上登录的情况下,监测所述目标社交账号是否有待同步的聊天信息。Step S301: In the case that the target social account is logged in on multiple terminal devices, monitor whether the target social account has chat information to be synchronized.

具体地,步骤S301可参考上述图2实施例中的步骤S201,这里不再赘述。Specifically, for step S301, reference may be made to step S201 in the above-mentioned embodiment of FIG. 2, and details are not repeated here.

步骤S302:若在目标时刻监测到所述目标社交账号有待同步的聊天信息,则向所述多个终端设备中需要进行聊天信息同步的终端设备发送解锁信息获取指令,所述解锁信息包括在当前时刻之前最近进行终端设备解锁的方式。Step S302: if the target social account is monitored at the target moment to be synchronized with the chat information, send an unlocking information acquisition instruction to the terminal device that needs to synchronize the chat information among the multiple terminal devices, and the unlocking information is included in the current The method of unlocking the terminal device most recently before the time.

步骤S303:接收所述多个终端设备中需要进行聊天信息同步的终端设备反馈的当前时刻之前最近进行终端设备解锁的方式。Step S303 : the method of unlocking the terminal device most recently before the current time as feedback from the terminal device that needs to synchronize chat information among the plurality of terminal devices.

步骤S304:根据所述解锁信息,将所述解锁的方式为非安全解锁方式的终端设备判定为第一终端设备,所述非安全解锁方式包括数字密码解锁或图形解锁。Step S304: According to the unlocking information, determine the terminal device whose unlocking mode is a non-secure unlocking mode as the first terminal device, and the non-secure unlocking mode includes digital password unlocking or graphic unlocking.

具体地,由于数字或图形解锁容易被窃取,因此较为不安全。In particular, digital or graphic unlocks are less secure because they are easy to steal.

步骤S305:控制不将所述待同步的聊天信息同步至所述第一终端设备上。Step S305: Control not to synchronize the chat information to be synchronized to the first terminal device.

步骤S306:根据所述解锁信息,将所述解锁的方式为安全解锁方式的终端设备判定为第二终端设备,所述安全解锁方式包括指纹解锁、虹膜解锁、人脸识别解锁或声纹解锁。Step S306: According to the unlocking information, determine the terminal device whose unlocking method is a safe unlocking method as a second terminal device, and the safe unlocking method includes fingerprint unlocking, iris unlocking, face recognition unlocking or voiceprint unlocking.

具体地,带有人体生物特征的指纹解锁、虹膜解锁、人脸识别解锁或声纹解锁等解锁方式,更可以证明用户的身份,因此可以作为判定当前登录的用户是否为本人是否安全的依据。Specifically, unlocking methods such as fingerprint unlocking, iris unlocking, face recognition unlocking, or voiceprint unlocking with human biometric features can also prove the user's identity, so it can be used as a basis for determining whether the currently logged-in user is the person or not.

步骤S307:控制将所述待同步的聊天信息同步至所述第二终端设备上。Step S307: Control to synchronize the chat information to be synchronized to the second terminal device.

步骤S308:向所述第一终端设备发送提示信息,所述提示信息用于提示所述待同步的聊天信息已经同步到所述第二终端设备上。Step S308: Send prompt information to the first terminal device, where the prompt information is used to prompt that the chat information to be synchronized has been synchronized to the second terminal device.

具体地,作为人性化的设定,可以在未向第一终端设备同步且向第二终端设备同步了待同步的聊天信息的情况下,将该提示信息发送至第一终端设备上,以便于通知用户前往第二终端设备上查看,在保证了聊天信息合理同步的情况下,又可以保证聊天信息的不遗漏。进一步地,所述提示消息包括所述待同步的聊天信息的具体数量和所述第二终端设备的型号。Specifically, as a user-friendly setting, when the chat information to be synchronized is not synchronized with the first terminal device and the chat information to be synchronized is synchronized with the second terminal device, the prompt information can be sent to the first terminal device, so as to facilitate Notifying the user to go to the second terminal device to view the chat information can ensure that the chat information is not missed under the condition that the chat information is reasonably synchronized. Further, the prompt message includes the specific quantity of the chat information to be synchronized and the model of the second terminal device.

如图4a所示,图4a为本发明实施例提供的聊天信息区别同步的方法的具体应用场景示意图,图4a中,例如用户通过数据解锁的方式解锁的A型号设备,并登录了目标社交账号与其他用户进行聊天;而如图4b所示,图4b为本发明实施例所提供的聊天信息区别同步的方法的另一种具体应用场景示意图,图4b 中,用户通过指纹解锁方式解锁了B型号设备,并同样登录了目标社交账号,因此,通过指纹解锁的B型号设备上可以正常同步,但是通过数字解锁的A型号设备暂时不予显示,仅显示具体数量和已经同步显示的终端设备型号,并提供用户可以进一步完整查看该聊天信息的选项方便用户在目标终端设备上查看,提升用户体验。进一步地,可以根据内容筛选显示,将涉及到隐私或财产安全的待同步信息不同步到通过非安全解锁方式解锁的终端设备,但是普通聊天信息可以同步。As shown in Figure 4a, Figure 4a is a schematic diagram of a specific application scenario of the method for discriminating and synchronizing chat information provided by an embodiment of the present invention. In Figure 4a, for example, a model A device that is unlocked by a user through data unlocking, and logs into a target social account Chat with other users; and as shown in Figure 4b, Figure 4b is a schematic diagram of another specific application scenario of the method for distinguishing and synchronizing chat information provided by the embodiment of the present invention. In Figure 4b, the user unlocks B by fingerprint unlocking. model device, and also logged into the target social account. Therefore, the B-type device unlocked by fingerprint can be synchronized normally, but the A-type device unlocked by digital unlocking is temporarily not displayed, only the specific number and the terminal device model that has been displayed synchronously is displayed. , and provide the option that the user can further view the chat information in a complete manner, which is convenient for the user to view on the target terminal device and improves the user experience. Further, the information to be synchronized that involves privacy or property safety can be displayed according to the content screening, and the information to be synchronized is not synchronized to the terminal device unlocked by the non-secure unlocking method, but the ordinary chat information can be synchronized.

本发明实施例,通过在目标社交账号在多个终端设备上登录的情况下,监测所述目标社交账号是否有待同步的聊天信息;若在目标时刻监测到所述目标社交账号有待同步的聊天信息,则获取所述多个终端设备中需要进行聊天信息同步的终端设备的解锁信息;根据所述解锁信息,将所述解锁的方式为非安全解锁方式的终端设备判定为第一终端设备,控制不将所述待同步的聊天信息同步至所述第一终端设备上。即当用户的同一个账号在多个终端设备上登录的情况下,根据用户解锁该终端设备的方式判断是否为本人操作,从而决定是否将待同步的聊天信息同步到该终端设备上,以便于保护用户的隐私安全,同时节省由于不必要的信息同步造成的网络资源的浪费。This embodiment of the present invention monitors whether the target social account has chat information to be synchronized when the target social account is logged in on multiple terminal devices; if the target social account has chat information to be synchronized at the target time , then obtain the unlocking information of the terminal device that needs to synchronize chat information among the multiple terminal devices; according to the unlocking information, determine the terminal device whose unlocking mode is a non-secure unlocking mode as the first terminal device, and control the The chat information to be synchronized is not synchronized to the first terminal device. That is, when the same account of the user is logged in on multiple terminal devices, it is determined whether the user operates the terminal device according to the way the user unlocks the terminal device, so as to decide whether to synchronize the chat information to be synchronized to the terminal device, so as to facilitate the operation of the terminal device. It protects the privacy of users and saves the waste of network resources caused by unnecessary information synchronization.

本发明实施例还提供了一种聊天信息区别同步的装置10,如图5所示,图 5是本发明实施例中的聊天信息区别同步的装置的结构示意图,下面将结合附图 5,对聊天信息区别同步的装置10的结构进行详细介绍。该装置10可包括:监测模块101、获取模块102、第一判定模块103和第一控制模块104,其中An embodiment of the present invention also provides an apparatus 10 for distinguishing and synchronizing chat information, as shown in FIG. 5 , which is a schematic structural diagram of the apparatus for distinguishing and synchronizing chat information in an embodiment of the present invention. The structure of the apparatus 10 for discriminating and synchronizing chat information will be described in detail. The apparatus 10 may include: a monitoring module 101, an acquisition module 102, a first determination module 103 and a first control module 104, wherein

监测模块101,用于在目标社交账号在多个终端设备上登录的情况下,监测所述目标社交账号是否有待同步的聊天信息;A monitoring module 101, configured to monitor whether the target social account has chat information to be synchronized when the target social account is logged in on multiple terminal devices;

获取模块102,用于若在目标时刻监测到所述目标社交账号有待同步的聊天信息,则获取所述多个终端设备中需要进行聊天信息同步的终端设备的解锁信息,所述解锁信息包括在当前时刻之前最近进行终端设备解锁的方式;The acquiring module 102 is configured to acquire unlocking information of a terminal device that needs to synchronize chat information among the multiple terminal devices if the target social account is monitored for chat information to be synchronized at the target moment, the unlocking information is included in the The method of unlocking the terminal device recently before the current moment;

第一判定模块103,用于根据所述解锁信息,将所述解锁的方式为非安全解锁方式的终端设备判定为第一终端设备,所述非安全解锁方式包括数字密码解锁或图形解锁;The first determining module 103 is configured to determine, according to the unlocking information, a terminal device whose unlocking method is a non-secure unlocking mode as the first terminal device, and the non-secure unlocking mode includes digital password unlocking or graphic unlocking;

第一控制模块104,用于控制不将所述待同步的聊天信息同步至所述第一终端设备上。The first control module 104 is configured to control not to synchronize the chat information to be synchronized to the first terminal device.

具体地,如图6所示的本发明提供的聊天信息区别同步的装置的另一实施例的结构示意图,所述获取模块102,可包括:Specifically, as shown in FIG. 6, a schematic structural diagram of another embodiment of the apparatus for discriminating and synchronizing chat information provided by the present invention, the acquisition module 102 may include:

获取单元1021,用于若在目标时刻监测到所述目标社交账号有待同步的聊天信息,向所述多个终端设备中需要进行聊天信息同步的终端设备发送解锁信息获取指令;The obtaining unit 1021 is configured to send an unlocking information obtaining instruction to the terminal device that needs to synchronize the chat information among the multiple terminal devices if the chat information to be synchronized of the target social account is monitored at the target moment;

接收单元1022,用于接收所述多个终端设备中需要进行聊天信息同步的终端设备反馈的当前时刻之前最近进行终端设备解锁的方式。The receiving unit 1022 is configured to receive the method of unlocking the terminal device most recently before the current moment fed back by the terminal device that needs to synchronize chat information among the plurality of terminal devices.

进一步地,如图6所示,所述装置还可包括:Further, as shown in Figure 6, the device may further include:

第二判定模块105,用于根据所述解锁信息,将所述解锁的方式为安全解锁方式的终端设备判定为第二终端设备,所述安全解锁方式包括指纹解锁、虹膜解锁、人脸识别解锁或声纹解锁;The second determination module 105 is configured to determine, according to the unlocking information, a terminal device whose unlocking method is a security unlocking method as a second terminal device, and the security unlocking method includes fingerprint unlocking, iris unlocking, and face recognition unlocking or voiceprint unlocking;

第二控制模块106,用于控制将所述待同步的聊天信息同步至所述第二终端设备上。The second control module 106 is configured to control the synchronization of the chat information to be synchronized to the second terminal device.

再进一步地,如图6所示,所述装置还可包括:Still further, as shown in Figure 6, the device may further include:

提示模块107,用于向所述第一终端设备发送提示信息,所述提示信息用于提示所述待同步的聊天信息已经同步到所述第二终端设备上。The prompt module 107 is configured to send prompt information to the first terminal device, where the prompt information is used to prompt that the chat information to be synchronized has been synchronized to the second terminal device.

再进一步地,所述提示信息包括所述待同步的聊天信息的具体数量和所述第二终端设备的型号。Still further, the prompt information includes the specific quantity of the chat information to be synchronized and the model of the second terminal device.

可理解的是,聊天信息区别同步的装置10中各模块的功能可对应参考上述图1至图4b 中的各方法实施例中的具体实现方式,这里不再赘述。It is understandable that, the functions of each module in the apparatus 10 for discriminating and synchronizing chat information may refer to the specific implementation manners in each method embodiment in the above-mentioned FIG. 1 to FIG. 4b , which will not be repeated here.

在本实施例中,聊天信息区别同步的装置10是以模块的形式来呈现。这里的“模块”可以指特定应用集成电路(application-specific integrated circuit,ASIC),执行一个或多个软件或固件程序的处理器和存储器,集成逻辑电路,和/或其他可以提供上述功能的器件。此外,监测模块101、第一判定模块103和第一控制模块104可通过图7所示的终端设备的处理器201来实现,获取模块102可通过图7所示的终端设备的通信接口203来实现等。In this embodiment, the apparatus 10 for distinguishing and synchronizing chat information is presented in the form of modules. "Module" herein may refer to an application-specific integrated circuit (ASIC), a processor and memory executing one or more software or firmware programs, an integrated logic circuit, and/or other devices that may provide the above-described functions . In addition, the monitoring module 101 , the first determination module 103 and the first control module 104 can be implemented by the processor 201 of the terminal device shown in FIG. 7 , and the acquisition module 102 can be implemented by the communication interface 203 of the terminal device shown in FIG. 7 . realization etc.

本发明实施例还提供了一种终端设备20,如图7所示,图7是本发明实施例中的终端设备的结构示意图,下面将结合附图7对终端设备20的结构进行详细介绍。该终端设备20包括至少一个处理器201,至少一个存储器202、至少一个通信接口203。所述处理器201、所述存储器202和所述通信接口203通过所述通信总线连接并完成相互间的通信。An embodiment of the present invention further provides a terminal device 20, as shown in FIG. 7, which is a schematic structural diagram of the terminal device in the embodiment of the present invention. The structure of the terminal device 20 will be described in detail below with reference to FIG. 7. The terminal device 20 includes at least one processor 201 , at least one memory 202 , and at least one communication interface 203 . The processor 201, the memory 202 and the communication interface 203 are connected through the communication bus and complete the communication with each other.

处理器201可以是通用中央处理器(CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制以上方案程序执行的集成电路。The processor 201 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of programs in the above solutions.

通信接口203,用于与其他设备或通信网络通信,如以太网,无线接入网 (RAN),无线局域网(Wireless Local Area Networks,WLAN)等。The communication interface 203 is used to communicate with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Networks (Wireless Local Area Networks, WLAN).

存储器202可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory, RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(Electrically Erasable Programmable Read-Only Memory, EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过总线与处理器相连接。存储器也可以和处理器集成在一起。Memory 202 may be read-only memory (ROM) or other type of static storage device that can store static information and instructions, random access memory (RAM), or other type of static storage device that can store information and instructions It can also be an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or capable of carrying or storing desired program code in the form of instructions or data structures and capable of being executed by a computer Access any other medium without limitation. The memory can exist independently and be connected to the processor through a bus. The memory can also be integrated with the processor.

其中,所述存储器202用于存储执行以上方案的应用程序代码,并由处理器201来控制执行。所述处理器201用于执行所述存储器202中存储的应用程序代码。Wherein, the memory 202 is used for storing the application program code for executing the above solution, and the execution is controlled by the processor 201 . The processor 201 is configured to execute the application code stored in the memory 202 .

存储器202存储的代码可执行以上提供的终端设备执行的图1-图4(包括图 4a和图4b)的聊天信息区别同步的方法,比如在检测到终端设备的接入网络发生切换的情况下,发起目标域名的DNS查询请求;接收所述DNS查询请求对应的DNS解析结果,所述DNS解析结果中包括至少一个与所述目标域名对应的第一IP地址;将所述第一IP地址存储在所述终端设备中。The code stored in the memory 202 can execute the method for distinguishing and synchronizing the chat information of FIG. 1 to FIG. 4 (including FIG. 4a and FIG. 4b ) executed by the terminal device provided above, for example, in the case of detecting that the access network of the terminal device is switched. , initiate a DNS query request for the target domain name; receive a DNS resolution result corresponding to the DNS query request, where the DNS resolution result includes at least one first IP address corresponding to the target domain name; store the first IP address in the terminal device.

可以理解的是,当本发明各个方法实施例中的执行主体为社交应用服务器时,该服务器的结构图同上述终端设备的结构示意图,在此不再赘述。It can be understood that, when the execution body in each method embodiment of the present invention is a social application server, the structure diagram of the server is the same as the structure diagram of the terminal device described above, and details are not repeated here.

请参阅图8,图8是本发明实施例提供的终端设备的另一实施例的结构示意图。该终端设备30可以为智能移动终端(如手机),终端设备30包括:射频(英文:radiofrequency,RF)电路301、存储有一个或多个计算机程序的存储器302、输入装置303、输出装置304、传感器305、音频电路306、无线保真(英文: wireless fidelity,WiFi)模块307、包括有一个或多个处理核心的处理器308、以及电源309等部件。本领域技术人员可以理解,图8中示出的终端设备结构并不构成对终端设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:Please refer to FIG. 8. FIG. 8 is a schematic structural diagram of another embodiment of a terminal device provided by an embodiment of the present invention. The terminal device 30 can be an intelligent mobile terminal (such as a mobile phone), and the terminal device 30 includes: a radio frequency (English: radiofrequency, RF) circuit 301, a memory 302 storing one or more computer programs, an input device 303, an output device 304, A sensor 305, an audio circuit 306, a wireless fidelity (English: wireless fidelity, WiFi) module 307, a processor 308 including one or more processing cores, a power supply 309 and other components. Those skilled in the art can understand that the structure of the terminal device shown in FIG. 8 does not constitute a limitation on the terminal device, and may include more or less components than shown, or combine some components, or arrange different components. in:

RF电路301可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或多个处理器308处理;另外,将涉及上行的数据发送给基站。通常,RF电路301包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(英文:subscriber identity module, SIM)卡、收发信机、耦合器、低噪声放大器(英文:low noise amplifier,LNA)、双工器等。此外,RF电路301还可以通过无线通信与网络或其他终端设备进行通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(英文:global system of mobile communication,GSM)、通用分组无线服务(英文:general packet radio service,GPRS)、码分多址(英文:code division multipleaccess,CDMA)、宽带码分多址(英文:wideband code division multiple access,WCDMA)、长期演进(英文:long term evolution,LTE)、电子邮件、短消息服务(英文:shortmessaging service,SMS)等。The RF circuit 301 can be used for receiving and sending signals during sending and receiving of information or during a call. In particular, after receiving the downlink information of the base station, it is handed over to one or more processors 308 for processing; in addition, it sends the data related to the uplink to the base station. . Generally, the RF circuit 301 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (English: subscriber identity module, SIM) card, a transceiver, a coupler, a low noise amplifier ( English: low noise amplifier, LNA), duplexer, etc. In addition, the RF circuit 301 can also communicate with the network or other terminal devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to global system of mobile communication (English: global system of mobile communication, GSM), general packet radio service (English: general packet radio service, GPRS), code division Multiple access (English: code division multiple access, CDMA), wideband code division multiple access (English: wideband code division multiple access, WCDMA), long term evolution (English: long term evolution, LTE), email, short message service (English: shortmessaging service, SMS), etc.

存储器302可用于存储计算机程序以及模块,处理器308通过运行存储在存储器302的计算机程序以及模块,从而执行各种功能应用以及数据处理。存储器302可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等) 等;存储数据区可存储根据终端设备30的使用所创建的数据(比如拍摄的照片、音频数据、视频数据等)等。此外,存储器302可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器302还可以包括存储器控制器,以提供处理器308和输入装置303对存储器302的访问。The memory 302 can be used to store computer programs and modules, and the processor 308 executes various functional applications and data processing by running the computer programs and modules stored in the memory 302 . The memory 302 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required for at least one function, and the like; The use of the terminal device 30 creates data (such as photographed photos, audio data, video data, etc.) and the like. Additionally, memory 302 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 302 may also include a memory controller to provide access to the memory 302 by the processor 308 and the input device 303 .

输入装置303可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,输入装置303可包括触控面板3031以及其他输入设备3032。触控面板3031,也称为触摸显示面板或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板3031上或在触控面板 3031附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板3031可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器308,并能接收处理器308发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板3031。除了触控面板3031,输入装置303还可以包括其他输入设备3032。具体地,其他输入设备 3032可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Input device 303 may be used to receive input numerical or character information, and to generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input device 303 may include a touch panel 3031 and other input devices 3032 . The touch panel 3031, also referred to as a touch display panel or a touchpad, can collect user touch operations on or near it (for example, the user uses a finger, a stylus, etc., any suitable objects or accessories on the touch panel 3031 or on the touch panel 3031). operation near the touch panel 3031), and drive the corresponding connection device according to the preset program. Optionally, the touch panel 3031 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To the processor 308, and can receive the command sent by the processor 308 and execute it. In addition, the touch panel 3031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. Besides the touch panel 3031 , the input device 303 may also include other input devices 3032 . Specifically, other input devices 3032 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.

输出装置304可用于显示由用户输入的信息或提供给用户的信息以及终端设备30的各种图形用户界面,这些图形用户界面可以由图形、文本、图标、视频和其任意组合来构成。输出装置304可包括显示面板3041,可选的,显示面板3041可以采用液晶显示器(英文:liquid crystal display,LCD)、有机发光二极管(英文:organic light-emitting diode,OLED)等形式来配置。进一步的,触控面板3031可覆盖显示面板3041,当触控面板3031检测到在其上或附近的触摸操作后,传送给处理器308以确定触摸事件的类型,随后处理器308根据触摸事件的类型在显示面板3041上提供相应的视觉输出。虽然在图8中,触控面板3031与显示面板3041是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触控面板3031与显示面板3041集成而实现输入和输出功能。The output device 304 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the terminal device 30, which can be composed of graphics, text, icons, videos, and any combination thereof. The output device 304 may include a display panel 3041. Optionally, the display panel 3041 may be configured in the form of a liquid crystal display (English: liquid crystal display, LCD), an organic light-emitting diode (English: organic light-emitting diode, OLED) or the like. Further, the touch panel 3031 can cover the display panel 3041. When the touch panel 3031 detects a touch operation on or near it, it transmits it to the processor 308 to determine the type of the touch event, and then the processor 308 determines the type of the touch event according to the touch event. Type provides corresponding visual output on display panel 3041. Although in FIG. 8 , the touch panel 3031 and the display panel 3041 are used as two independent components to realize the input and input functions, but in some embodiments, the touch panel 3031 and the display panel 3041 can be integrated to realize the input and output functions.

终端设备30还可包括至少一种传感器305,比如距离传感器、光传感器、运动传感器以及其他传感器。具体地,距离传感器用于检测所述终端设备屏幕与覆盖所述终端设备的物体之间的距离,光传感器用于检测所述终端设备外部环境的光信号。作为运动传感器的一种,重力加速度传感器可检测各个方向上 (一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别终端设备30姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于终端设备30还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,此处不再赘述。The terminal device 30 may also include at least one sensor 305, such as a distance sensor, a light sensor, a motion sensor, and other sensors. Specifically, the distance sensor is used to detect the distance between the screen of the terminal device and the object covering the terminal device, and the light sensor is used to detect the light signal of the external environment of the terminal device. As a kind of motion sensor, the gravitational acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used for applications that recognize the attitude of the terminal device 30 (such as switching between horizontal and vertical screens). , related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that can also be configured on the terminal device 30, It will not be repeated here.

音频电路306、扬声器3061、传声器3062可提供用户与终端设备30之间的音频接口。音频电路306可将接收到的音频数据转换后的电信号,传输到扬声器3061,由扬声器3061转换为声音信号输出;另一方面,传声器3062将收集的声音信号转换为电信号,由音频电路306接收后转换为音频数据,再将音频数据输出处理器308处理后,经RF电路301以发送给比如另一设备,或者将音频数据输出至存储器302以便进一步处理。音频电路306还可能包括耳塞插孔,以提供外设耳机与终端设备30的通信。The audio circuit 306 , the speaker 3061 , and the microphone 3062 can provide an audio interface between the user and the terminal device 30 . The audio circuit 306 can convert the received audio data into an electrical signal, and transmit it to the speaker 3061, and the speaker 3061 converts it into a sound signal for output; on the other hand, the microphone 3062 converts the collected sound signal into an electrical signal, which is converted by the audio circuit 306. After receiving, it is converted into audio data, and then the audio data is output to the processor 308 for processing, and then sent to, for example, another device through the RF circuit 301, or the audio data is output to the memory 302 for further processing. The audio circuit 306 may also include an earphone jack to provide communication between peripheral headphones and the terminal device 30 .

WiFi属于短距离无线传输技术,终端设备30通过WiFi模块307可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图8示出了WiFi模块307,但是可以理解的是,其并不属于终端设备30的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology, and the terminal device 30 can help users to send and receive emails, browse web pages, access streaming media, etc. through the WiFi module 307, which provides users with wireless broadband Internet access. Although FIG. 8 shows the WiFi module 307, it can be understood that it does not belong to the necessary structure of the terminal device 30, and can be completely omitted as required within the scope of not changing the essence of the invention.

处理器308是终端设备30的控制中心,利用各种接口和线路连接整个终端设备30的各个部分,通过运行或执行存储在存储器302内的计算机程序和/或模块,以及调用存储在存储器302内的数据,执行终端设备30的各种功能和处理数据,从而对终端设备30进行整体监控。可选的,处理器308可包括一个或多个处理核心;优选的,处理器308可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器308 中。The processor 308 is the control center of the terminal device 30, and uses various interfaces and lines to connect various parts of the entire terminal device 30, by running or executing the computer programs and/or modules stored in the memory 302, and calling the stored in the memory 302. to perform various functions of the terminal device 30 and process data, so as to monitor the terminal device 30 as a whole. Optionally, the processor 308 may include one or more processing cores; preferably, the processor 308 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc. , the modem processor mainly deals with wireless communication. It can be understood that the above-mentioned modulation and demodulation processor may not be integrated into the processor 308 .

终端设备30还包括给各个部件供电的电源309(比如电池),优选的,电源可以通过电源管理系统与处理器308逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源309还可以包括一个或多个直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The terminal device 30 also includes a power supply 309 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 308 through a power management system, so that functions such as managing charging, discharging, and power consumption management can be implemented through the power management system. . The power source 309 may also include one or more DC or AC power sources, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and any other components.

尽管未示出,终端设备30还可以包括摄像头、蓝牙模块等,此处不再赘述。具体在本发明实施例中,终端设备的输出装置304(或输入装置303)是触摸屏显示器,终端设备30还包括有存储器302、处理器308、以及一个或多个的计算机程序,其中一个或多个计算机程序存储于存储器302中,处理器308用于调用存储器302(非易失性存储器)存储的聊天信息区别同步的程序执行前述方法实施例中的各方法步骤流程,在此不再赘述。Although not shown, the terminal device 30 may also include a camera, a Bluetooth module, and the like, which will not be repeated here. Specifically in this embodiment of the present invention, the output device 304 (or the input device 303 ) of the terminal device is a touch screen display, and the terminal device 30 further includes a memory 302 , a processor 308 , and one or more computer programs, wherein one or more of A computer program is stored in the memory 302, and the processor 308 is configured to call the program for differential synchronization of chat information stored in the memory 302 (non-volatile memory) to execute the steps and processes of the methods in the foregoing method embodiments, which will not be repeated here.

本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任何一种聊天信息区别同步的方法的部分或全部步骤。Embodiments of the present invention further provide a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program includes part or all of the steps of any of the methods for discriminating and synchronizing chat information described in the above method embodiments.

需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present invention does not

所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。The order of actions described is limited, as certain steps may be performed in other orders or concurrently in accordance with the present invention. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components may be combined or Integration into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM, Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented as a software functional unit and sold or used as a stand-alone product, may be stored in a computer-readable memory. Based on such understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, Several instructions are included to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash disk , Read-only memory (English: Read-Only Memory, referred to as: ROM), random access device (English: Random Access Memory, referred to as: RAM), magnetic disk or optical disk, etc.

以上对本发明实施例进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The embodiments of the present invention have been introduced in detail above, and specific examples are used to illustrate the principles and implementations of the present invention. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present invention; at the same time, for Persons of ordinary skill in the art, according to the idea of the present invention, will have changes in the specific embodiments and application scope. To sum up, the contents of this specification should not be construed as limiting the present invention.

Claims (8)

1. A method for differentiated synchronization of chat messages, comprising:
monitoring whether a target social account has chat information to be synchronized or not under the condition that the target social account logs in on a plurality of terminal devices;
if the chat information to be synchronized of the target social contact account is monitored at the target moment, acquiring unlocking information of the terminal equipment needing the chat information synchronization in the plurality of terminal equipment, wherein the unlocking information comprises a mode of unlocking the terminal equipment recently before the current moment;
according to the unlocking information, judging the terminal equipment of which the unlocking mode is a non-safety unlocking mode as first terminal equipment, wherein the non-safety unlocking mode comprises digital password unlocking or graphic unlocking;
controlling not to synchronize the chat information to be synchronized to the first terminal device, prompting the specific number of the chat information and the model of the second terminal device on the first terminal device, determining the terminal device with the unlocking mode being a safe unlocking mode as the second terminal device according to the unlocking information, and controlling not to synchronize the chat information to be synchronized to the first terminal device comprises: and according to the screening display of the chat information content, synchronizing the information to be synchronized which relates to privacy or safety to the first terminal, and synchronizing the information to be synchronized which does not relate to privacy or safety to the first terminal equipment.
2. The method as claimed in claim 1, wherein said obtaining the unlocking information of the terminal device which needs to synchronize the chat information among the plurality of terminal devices comprises:
sending an unlocking information acquisition instruction to a terminal device which needs to carry out chat information synchronization in the plurality of terminal devices;
and receiving a mode of unlocking the terminal equipment recently before the current moment fed back by the terminal equipment needing to synchronize the chat information in the plurality of terminal equipment.
3. The method of claim 1, wherein the method further comprises:
the safe unlocking mode comprises fingerprint unlocking, iris unlocking, face recognition unlocking or voiceprint unlocking;
and controlling to synchronize the chat information to be synchronized to the second terminal equipment.
4. The method of claim 3, wherein the method further comprises:
and sending prompt information to the first terminal equipment, wherein the prompt information is used for prompting that the chat information to be synchronized is synchronized to the second terminal equipment.
5. An apparatus for differentiated synchronization of chat messages, comprising:
the system comprises a monitoring module, a synchronization module and a synchronization module, wherein the monitoring module is used for monitoring whether a target social account has chat information to be synchronized or not under the condition that the target social account logs in a plurality of terminal devices;
the obtaining module is used for obtaining unlocking information of a terminal device which needs to synchronize the chat information in the plurality of terminal devices if the chat information to be synchronized of the target social account is monitored at a target moment, wherein the unlocking information comprises a mode of unlocking the terminal device recently before the current moment;
the first judging module is used for judging the terminal equipment of which the unlocking mode is a non-safe unlocking mode as the first terminal equipment according to the unlocking information, wherein the non-safe unlocking mode comprises digital password unlocking or graph unlocking;
the second judging module is used for judging the terminal equipment with the unlocking mode being the safe unlocking mode as second terminal equipment according to the unlocking information;
the first control module is used for controlling not to synchronize the chat information to be synchronized to the first terminal device, prompting the specific quantity of the chat information and the model of the second terminal device on the first terminal device, and controlling not to synchronize the chat information to be synchronized to the first terminal device, and the control method comprises the following steps: and according to the screening display of the chat information content, synchronizing the information to be synchronized which relates to privacy or safety to the first terminal, and synchronizing the information to be synchronized which does not relate to privacy or safety to the first terminal equipment.
6. The apparatus of claim 5, wherein the acquisition module comprises:
the obtaining unit is used for sending an unlocking information obtaining instruction to the terminal equipment which needs to synchronize the chat information in the plurality of terminal equipment if the chat information to be synchronized of the target social contact account is monitored at a target moment;
and the receiving unit is used for receiving a mode of unlocking the terminal equipment recently before the current moment fed back by the terminal equipment needing to synchronize the chat information in the plurality of terminal equipment.
7. The apparatus of claim 5, wherein the apparatus further comprises:
the safe unlocking mode comprises fingerprint unlocking, iris unlocking, face recognition unlocking or voiceprint unlocking;
and the second control module is used for controlling the chat information to be synchronized to the second terminal equipment.
8. The apparatus of claim 7, wherein the apparatus further comprises:
and the prompting module is used for sending prompting information to the first terminal device, wherein the prompting information is used for prompting that the chat information to be synchronized is synchronized to the second terminal device.
CN201610826836.6A 2016-09-14 2016-09-14 Method and device for distinguishing and synchronizing chat information Expired - Fee Related CN106453514B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610826836.6A CN106453514B (en) 2016-09-14 2016-09-14 Method and device for distinguishing and synchronizing chat information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610826836.6A CN106453514B (en) 2016-09-14 2016-09-14 Method and device for distinguishing and synchronizing chat information

Publications (2)

Publication Number Publication Date
CN106453514A CN106453514A (en) 2017-02-22
CN106453514B true CN106453514B (en) 2020-01-10

Family

ID=58168022

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610826836.6A Expired - Fee Related CN106453514B (en) 2016-09-14 2016-09-14 Method and device for distinguishing and synchronizing chat information

Country Status (1)

Country Link
CN (1) CN106453514B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111556021A (en) * 2020-03-30 2020-08-18 宇龙计算机通信科技(深圳)有限公司 Data transmission method, device, storage medium and related equipment
CN111581616B (en) * 2020-05-11 2023-05-12 青岛聚好联科技有限公司 Multi-terminal login control method and device
CN114756843A (en) * 2020-12-28 2022-07-15 华为技术有限公司 Method for identifying user identities of multiple devices and terminal device
CN115065653B (en) * 2022-05-10 2025-01-21 北京达佳互联信息技术有限公司 Session processing method, device and communication system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793636A (en) * 2012-11-01 2014-05-14 华为技术有限公司 Equipment and method for protecting privacy thereof
CN104144116A (en) * 2014-07-16 2014-11-12 腾讯科技(深圳)有限公司 Instant messaging method and system
CN104238940A (en) * 2014-08-29 2014-12-24 广州三星通信技术研究有限公司 Intelligent wearable device and relevance machine control method thereof
CN104378679A (en) * 2013-08-15 2015-02-25 捷达世软件(深圳)有限公司 Smart TV unlocking method and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140337139A1 (en) * 2013-05-07 2014-11-13 Google Inc. Channel-level advertising attributes in an internet-based content platform
CN104217147B (en) * 2014-09-24 2017-07-14 中国联合网络通信集团有限公司 Intelligent terminal unlocking manner changing method and intelligent terminal
CN105812482B (en) * 2016-04-21 2019-02-19 北京元心科技有限公司 The sharing method and server platform of communication information

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793636A (en) * 2012-11-01 2014-05-14 华为技术有限公司 Equipment and method for protecting privacy thereof
CN104378679A (en) * 2013-08-15 2015-02-25 捷达世软件(深圳)有限公司 Smart TV unlocking method and system
CN104144116A (en) * 2014-07-16 2014-11-12 腾讯科技(深圳)有限公司 Instant messaging method and system
CN104238940A (en) * 2014-08-29 2014-12-24 广州三星通信技术研究有限公司 Intelligent wearable device and relevance machine control method thereof

Also Published As

Publication number Publication date
CN106453514A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
US11057376B2 (en) Method, apparatus, and system for controlling intelligent device, and storage medium
CN106778175B (en) Interface locking method and device and terminal equipment
CN106453589B (en) Method and device for synchronizing backup data
CN106506820B (en) Backup method and device for mobile terminal data
CN105912905A (en) A fingerprint unlocking method and terminal
WO2016078504A1 (en) Identity authentication method and device
CN106599641A (en) A method, device and terminal for restricting terminal locking
CN106209608B (en) Method and device for distinguishing and synchronizing chat information
WO2019007371A1 (en) Method for preventing information from being stolen, storage device, and mobile terminal
CN106453514B (en) Method and device for distinguishing and synchronizing chat information
CN106326773A (en) Method and device for photo encryption management as well as terminal
CN106534324A (en) Data sharing method and cloud server
WO2017054585A1 (en) Network access method, device, and system
CN106302130B (en) A kind of method and device that chat message difference is synchronous
CN107451450A (en) Biometric discrimination method and Related product
WO2018095216A1 (en) Relationship chain processing method, terminal and storage medium
CN106886702A (en) A fingerprint unlocking method and related equipment
CN107743108B (en) Method and device for identifying medium access control address
CN106201682B (en) A kind of application control method and device
CN107491673A (en) Biometric methods and related products
CN106357512B (en) Method and device for distinguishing and synchronizing chat information
WO2015101300A1 (en) Method, device, and system for establishing temporary channel
CN106940770A (en) A screen locking method, device and terminal
CN107480495A (en) Unlocking method of mobile terminal and related products
CN107066859A (en) A fingerprint unlocking method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200110

CF01 Termination of patent right due to non-payment of annual fee