[go: up one dir, main page]

CN108513005B - Contact person information processing method and device, electronic equipment and storage medium - Google Patents

Contact person information processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN108513005B
CN108513005B CN201810239702.3A CN201810239702A CN108513005B CN 108513005 B CN108513005 B CN 108513005B CN 201810239702 A CN201810239702 A CN 201810239702A CN 108513005 B CN108513005 B CN 108513005B
Authority
CN
China
Prior art keywords
aggregated
account
information
contact
accounts
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
CN201810239702.3A
Other languages
Chinese (zh)
Other versions
CN108513005A (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 CN201810239702.3A priority Critical patent/CN108513005B/en
Publication of CN108513005A publication Critical patent/CN108513005A/en
Application granted granted Critical
Publication of CN108513005B publication Critical patent/CN108513005B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/26Devices for calling a subscriber
    • H04M1/27Devices whereby a plurality of signals may be stored simultaneously
    • H04M1/274Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
    • H04M1/2745Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
    • H04M1/27453Directories allowing storage of additional subscriber data, e.g. metadata
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Library & Information Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephone Function (AREA)

Abstract

The application relates to a contact person information processing method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring information of contact persons to be aggregated in an account number to be aggregated, wherein the information of the contact persons to be aggregated belongs to the same contact person; determining corresponding primary account and secondary account from the account to be aggregated according to the information of the contact person to be aggregated; and aggregating the information of the contact persons to be aggregated in the secondary account into the information of the contact persons to be aggregated in the primary account. By the contact information processing method and device, the electronic equipment and the storage medium, the flexibility of contact information aggregation can be improved.

Description

联系人信息处理方法和装置、电子设备、存储介质Contact information processing method and device, electronic device, storage medium

技术领域technical field

本申请涉及信息处理技术领域,特别是涉及一种联系人信息处理方法和装置、电子设备、存储介质。The present application relates to the technical field of information processing, and in particular, to a method and apparatus for processing contact information, an electronic device, and a storage medium.

背景技术Background technique

移动终端上具有通讯功能的应用越来越多,如用户在同一个移动终端上安装有微信、QQ、邮箱、电话本或WhatsApp等均具有通讯功能的应用。通常地,每个应用均具有对应的账号,如微信账号、QQ账号或邮箱账号等。这些账号中,通常存在着共同的联系人,为便于管理,通常将具有相同的联系人进行聚合,使得可在一个账号的应用中显示出被待聚合联系人的信息。比如,某一应用A和应用B上均存在相同的联系人A,则可选择某一主账号,将同一联系人A在应用A上的信息和应用B上的信息均聚合至该主账号的联系人信息之中。主账号即为被选择聚合的账号,如选择聚的主账号为应用A的账号,则将同一联系人A在应用A上的信息和应用B上的信息均聚合至应用A的账号中。There are more and more applications with communication functions on mobile terminals. For example, users install WeChat, QQ, mailbox, phone book or WhatsApp and other applications with communication functions on the same mobile terminal. Generally, each application has a corresponding account, such as a WeChat account, a QQ account, or an email account. Common contacts usually exist in these accounts. For the convenience of management, the same contacts are usually aggregated, so that the information of the contacts to be aggregated can be displayed in the application of one account. For example, if the same contact A exists on both application A and application B, you can select a primary account, and aggregate the information of the same contact A on application A and the information on application B into the primary account. in the contact information. The main account is the account selected for aggregation. If the main account selected for aggregation is the account of application A, the information of the same contact A on application A and the information on application B are aggregated into the account of application A.

然而,传统方法中,通常是选取某一固定应用的账号作为主账号,继而将其它应用的联系人信息中,与该应用中相同的联系人进行信息聚合。但传统方法由于主账号固定,导致聚合处理的灵活性不高。However, in the traditional method, the account of a certain fixed application is usually selected as the main account, and then the contact information of other applications is aggregated with the same contacts in the application. However, the traditional method has low flexibility in aggregation processing due to the fixed main account.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供一种联系人信息处理方法和装置、电子设备、存储介质,可以提高对联系人信息聚合处理的灵活性。The embodiments of the present application provide a contact information processing method and apparatus, an electronic device, and a storage medium, which can improve the flexibility of contact information aggregation processing.

一种联系人信息处理方法,包括:A method for processing contact information, comprising:

获取待聚合账号中的待聚合联系人信息,所述待聚合联系人信息为属于同一联系人的信息;Obtain the contact information to be aggregated in the account to be aggregated, where the contact information to be aggregated is information belonging to the same contact;

根据所述待聚合联系人信息从所述待聚合账号中确定相应的主账号和从账号;Determine the corresponding primary account and secondary account from the accounts to be aggregated according to the contact information to be aggregated;

将从账号中的待聚合联系人信息聚合至主账号中的待聚合联系人信息中。Aggregate the contact information to be aggregated from the account to the contact information to be aggregated in the master account.

一种联系人信息处理装置,包括:A contact information processing device, comprising:

联系人信息获取模块,用于获取待聚合账号中的待聚合联系人信息,所述待聚合联系人信息为属于同一联系人的信息;a contact information acquisition module, configured to acquire contact information to be aggregated in the account to be aggregated, where the contact information to be aggregated is information belonging to the same contact;

主账号确定模块,用于根据所述待聚合联系人信息从所述待聚合账号中确定相应的主账号和从账号;a primary account determination module, configured to determine the corresponding primary account and secondary account from the to-be-aggregated accounts according to the to-be-aggregated contact information;

信息聚合模块,用于将从账号中的待聚合联系人信息聚合至主账号中的待聚合联系人信息中。The information aggregation module is used to aggregate the contact information to be aggregated from the account to the contact information to be aggregated in the main account.

一种电子设备,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行本申请任意实施例中描述的联系人信息处理方法的步骤。An electronic device, comprising a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the contact information processing described in any embodiment of the present application steps of the method.

一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现本申请任意实施例中描述的联系人信息处理方法的步骤。A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the steps of the contact information processing method described in any embodiment of this application.

上述的联系人信息处理方法和装置、电子设备、存储介质,通过获取待聚合账号中的待聚合联系人信息,该待聚合联系人信息为属于同一联系人的信息。并根据该待聚合联系人信息从多个待聚合账号中确定相应的主账号和从账号,并将从账号中的待聚合联系人信息聚合至主账号中的待聚合联系人信息中。通过根据待聚合联系人来确定主账号,使得针对不同的联系人可设置不同的主账号,提高了联系人聚合的灵活性。The above-mentioned contact information processing method and device, electronic device, and storage medium obtain the contact information to be aggregated in the account to be aggregated, and the contact information to be aggregated is information belonging to the same contact. And according to the to-be-aggregated contact information, the corresponding master account and the slave account are determined from the multiple to-be-aggregated accounts, and the to-be-aggregated contact information in the slave accounts is aggregated into the to-be-aggregated contact information in the master account. By determining the primary account according to the contacts to be aggregated, different primary accounts can be set for different contacts, which improves the flexibility of contact aggregation.

附图说明Description of drawings

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

图1A~图1C为一个实施例中联系人信息处理方法的应用环境图;1A to 1C are application environment diagrams of a method for processing contact information in one embodiment;

图2为一个实施例中电子设备的架构示意图;2 is a schematic diagram of the architecture of an electronic device in one embodiment;

图3为一个实施例中联系人信息处理方法的流程图;3 is a flowchart of a method for processing contact information in one embodiment;

图4为一个实施例中确定主账号的流程图;4 is a flowchart of determining a primary account number in one embodiment;

图5为另一个实施例中联系人信息处理方法的流程图;5 is a flowchart of a method for processing contact information in another embodiment;

图6为一个实施例中获取待聚合账号中的待聚合联系人信息的流程图;6 is a flow chart of obtaining contact information to be aggregated in an account to be aggregated in one embodiment;

图7为又一个实施例中联系人信息处理方法的流程图;7 is a flowchart of a method for processing contact information in yet another embodiment;

图8为一个实施例中联系人信息处理装置的结构框图;8 is a structural block diagram of an apparatus for processing contact information in one embodiment;

图9为一个实施例中与终端相关的手机的部分结构的框图。FIG. 9 is a block diagram of a partial structure of a mobile phone associated with a terminal in one embodiment.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.

可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一数量称为第二数量,且类似地,可将第二数量称为第一数量。第一数量和第二数量两者都是数量,但其不是同一数量。It will be understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, a first quantity could be termed a second quantity, and, similarly, a second quantity could be termed a first quantity, without departing from the scope of this application. Both the first quantity and the second quantity are quantities, but they are not the same quantity.

在一个实施例中,如图1A、图1B和图1C所示,提供了一种联系人信息处理方法的应用环境图。其中,电子设备100中具有多个具备通讯功能的应用程序(Application,APP),电子设备100可包括但不限于手机、掌上游戏机、平板电脑、个人数字助理或穿戴设备等任意一种。每个应用程序对应一个或多个账号,每个账号包含了用户在该应用程序下的通讯录,通讯录中包含了至少一个联系人信息。如包含账号A中的通讯录A包含了联系人A1、A2、A3、A4等的信息,账号B的通讯录B包含了联系人B1、B2、B3、B4等的信息。电子设备可检测多个通讯录中是否具有相同的联系人,并将判定为相同的联系人作为待聚合联系人,如联系人A1和联系人B1为同一联系人,则该联系人A1和联系人B1即为待聚合联系人。电子设备可从账号A和账号B中选取其中一个作为主账号,如选取账号A作为主账号,然后将联系人B1的信息(如图1C中图)聚合至联系人A1的信息(如图1C左图)中,使得从通讯录A中即可查看到联系人A1在通讯录B的信息(如图1C右图)。In one embodiment, as shown in FIG. 1A , FIG. 1B and FIG. 1C , an application environment diagram of a method for processing contact information is provided. The electronic device 100 has a plurality of application programs (Application, APP) with a communication function, and the electronic device 100 may include but is not limited to any one of a mobile phone, a handheld game console, a tablet computer, a personal digital assistant, or a wearable device. Each application program corresponds to one or more accounts, each account contains the user's address book under the application program, and the address book includes at least one contact information. For example, the address book A of account A includes information of contacts A1, A2, A3, A4, etc., and the address book B of account B includes information of contacts B1, B2, B3, B4, etc. The electronic device can detect whether there are the same contacts in multiple address books, and determine the same contacts as the contacts to be aggregated. If the contact A1 and the contact B1 are the same contact, then the contact A1 and the contact Person B1 is the contact to be aggregated. The electronic device can select one of account A and account B as the primary account, such as selecting account A as the primary account, and then aggregate the information of contact B1 (as shown in Figure 1C ) to the information of contact A1 (as shown in Figure 1C ). In the picture on the left), the information of the contact A1 in the address book B can be viewed from the address book A (the right picture in Fig. 1C ).

图2为一个实施例中电子设备的内部结构示意图。如图2所示,该电子设备包括通过系统总线连接的处理器、存储器和显示屏。其中,该处理器用于提供计算和控制能力,支撑整个电子设备的运行。存储器用于存储数据、程序等,存储器上存储至少一个计算机程序,该计算机程序可被处理器执行,以实现本申请实施例中提供的适用于电子设备的联系人信息处理方法。存储器可包括磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等非易失性存储介质,或随机存储记忆体(Random-Access-Memory,RAM)等。例如,在一个实施例中,存储器包括非易失性存储介质及内存储器。非易失性存储介质存储有操作系统和计算机程序。该计算机程序可被处理器所执行,以用于实现以下各个实施例所提供的一种联系人信息处理方法。内存储器为非易失性存储介质中的操作系统计算机程序提供高速缓存的运行环境。显示屏可以是触摸屏,比如为电容屏或电子屏,用于显示通讯录中的联系人信息等,还可以被用于检测作用于该显示屏的触摸操作,生成相应的指令。FIG. 2 is a schematic diagram of an internal structure of an electronic device in one embodiment. As shown in FIG. 2, the electronic device includes a processor, a memory and a display screen connected through a system bus. Among them, the processor is used to provide computing and control capabilities to support the operation of the entire electronic device. The memory is used for storing data, programs, etc., and at least one computer program is stored in the memory, and the computer program can be executed by the processor to implement the contact information processing method applicable to the electronic device provided in the embodiments of the present application. The memory may include a non-volatile storage medium such as a magnetic disk, an optical disk, and a read-only memory (Read-Only Memory, ROM), or a random-access-memory (Random-Access-Memory, RAM) and the like. For example, in one embodiment, the memory includes a non-volatile storage medium and internal memory. The nonvolatile storage medium stores an operating system and a computer program. The computer program can be executed by the processor to implement a method for processing contact information provided by the following embodiments. Internal memory provides a cached execution environment for operating system computer programs in non-volatile storage media. The display screen can be a touch screen, such as a capacitive screen or an electronic screen, used to display contact information in the address book, etc., and can also be used to detect a touch operation acting on the display screen to generate corresponding instructions.

本领域技术人员可以理解,图2中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的电子设备的限定,具体的电子设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 2 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the electronic device to which the solution of the present application is applied. The specific electronic device may be Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.

在一个实施例中,如图3所示,提供了一种联系人信息处理方法,该方法可应用于如图1所示的电子设备中,包括下述步骤302至步骤306。In one embodiment, as shown in FIG. 3 , a method for processing contact information is provided, which can be applied to the electronic device shown in FIG. 1 , and includes the following steps 302 to 306 .

步骤302,获取待聚合账号中的待聚合联系人信息,待聚合联系人信息为属于同一联系人的信息。Step 302: Obtain contact information to be aggregated in the account to be aggregated, where the contact information to be aggregated is information belonging to the same contact.

待聚合账号表示需要进行联系人聚合的账号,其中,每个账号可为用户在不同应用中注册的账号。比如该账号可为在具有即时通信功能的应用中的账号。每个账号对应关联存储了相应的通讯录,通讯录中包含了用户在对应应用中的联系人信息。该联系人可以体现为与用户在对应应用中具有好友关系的联系人,或者具有通讯记录的陌生联系人等。The account to be aggregated represents an account that needs to be aggregated with contacts, wherein each account may be an account registered by the user in different applications. For example, the account may be an account in an application with an instant messaging function. Each account is associated with a corresponding address book, and the address book contains the user's contact information in the corresponding application. The contact may be embodied as a contact who has a friend relationship with the user in the corresponding application, or an unfamiliar contact with communication records.

当电子设备上存在多个联系人账号时(比如手机账号,Gmail账号,微信账号),不同联系人账号会有同一个联系人的资料,针对属于同一联系人的联系人信息,可将其作为待聚合联系人信息。比如,如图1A和图1B所示,若待聚合账号A中的联系人A1和待聚合账号B中的联系人B1为相同的联系人,则获取待聚合账号A中联系人A1的信息与待聚合账号B中联系人B1的信息,所获取的联系人A1的信息和联系人B1的信息均为待聚合信息。When there are multiple contact accounts on the electronic device (such as mobile phone account, Gmail account, WeChat account), different contact accounts will have the same contact information, for the contact information belonging to the same contact, it can be used as Contact information to be aggregated. For example, as shown in FIG. 1A and FIG. 1B , if the contact A1 in the account A to be aggregated and the contact B1 in the account B to be aggregated are the same contact, the information of the contact A1 in the account A to be aggregated is obtained and the The information of the contact B1 in the account B to be aggregated, the acquired information of the contact A1 and the information of the contact B1 are the information to be aggregated.

举例来说,用户的电子设备中安装了电话本、QQ、微信、微博、邮箱等多种具有即时通讯功能的应用,并针对这些应用注册了相应的账号。当用户在这些账号中存在相同的联系人时,则可将用户在这些应用中注册的账号作为待聚合账号,并获取待聚合账号中存在相同联系人的联系人信息。如在多个聚合账号(如待聚合账号1~10)的通讯录中,均包含联系人“张三”的账号为待聚合账号2~6。则获取待聚合账号2~6中的通讯录中,同为联系人张三的联系人信息,该联系人信息即为待聚合联系人信息。For example, a variety of applications with instant messaging functions such as phonebook, QQ, WeChat, Weibo, and mailbox are installed in the user's electronic device, and corresponding accounts are registered for these applications. When the user has the same contact in these accounts, the account registered by the user in these applications can be used as the account to be aggregated, and the contact information of the same contact in the account to be aggregated can be obtained. For example, in the address book of multiple aggregated accounts (eg, accounts 1 to 10 to be aggregated), the accounts that all include the contact "Zhang San" are accounts to be aggregated 2 to 6. Then, in the address book of the accounts 2 to 6 to be aggregated, the contact information of the contact Zhang San is acquired, and the contact information is the contact information to be aggregated.

步骤304,根据待聚合联系人信息从待聚合账号中确定相应的主账号和从账号。Step 304: Determine the corresponding primary account and secondary account from the accounts to be aggregated according to the contact information to be aggregated.

在一个实施例中,联系人信息包括联系人的姓名、备注名、昵称、标签、姓名、性别、生日、公司、职务、联系方式以及该联系人在对应应用中的应用账号等其中的一种或多种字段的组合,联系方式可包括邮箱账号和手机号码等。可以理解地,不同应用中的联系人信息所包含的字段不尽相同,且部分字段中的字段信息可为空值。比如多数应用中均包含联系人的姓名、手机号码以及该联系人在对应应用中的应用账号等字段。其中,待聚合联系人之间的姓名、联系方式等字段信息具有一定的重合度,如具有相同的联系电话以及相同或相似的姓名等。In one embodiment, the contact information includes one of the contact's name, note name, nickname, label, name, gender, birthday, company, title, contact information, and the contact's application account in the corresponding application, etc. Or a combination of multiple fields, the contact information can include email account and mobile phone number, etc. Understandably, the fields contained in the contact information in different applications are different, and the field information in some fields may be null. For example, most applications contain fields such as the contact's name, mobile phone number, and the contact's application account in the corresponding application. The field information such as name and contact information among the contacts to be aggregated have a certain degree of overlap, such as having the same contact phone number and the same or similar name.

电子设备可根据每个应用中的待聚合联系人信息中的一个或多个字段内的字段信息来确定将哪一个或几个待聚合账号作为主账号,并将剩余的账号作为从账号。比如,可将多个待聚合联系人信息中,预设的相同字段内的字段信息进行比较,根据比较来确定相应的主账号和从账号。其中,可比较相同字段中,字段信息的完整性和/或字段信息的复杂度。并选取完整性最大和/或复杂度最大的字段信息对应的待聚合账号,将该待聚合账号作为主账号,并将剩余的账号作为从账号。The electronic device can determine which one or several accounts to be aggregated are used as the master account according to the field information in one or more fields of the contact information to be aggregated in each application, and the remaining accounts are used as the slave accounts. For example, the field information in the preset same fields in the multiple contact information to be aggregated may be compared, and the corresponding master account and slave account may be determined according to the comparison. Wherein, in the same field, the integrity of the field information and/or the complexity of the field information can be compared. And select the account to be aggregated corresponding to the field information with the greatest integrity and/or the greatest complexity, take the account to be aggregated as the master account, and use the remaining accounts as slave accounts.

步骤306,将从账号中的待聚合联系人信息聚合至主账号中的待聚合联系人信息中。Step 306: Aggregate the contact information to be aggregated from the account to the contact information to be aggregated in the primary account.

电子设备可在从账号中的待聚合联系人信息中,选取预设的需要聚合的字段信息,将选取的字段信息聚合至主账号的待聚合联系人信息中,使得在主账号的联系人信息中也包含了该联系人在从账号中的信息。其中,不同的从账号中对应选取的字段信息不一定相同。可选地,所选取的字段信息为与主账号中的字段信息不同的字段信息,比如可选取从账号的待聚合联系人信息中的应用账号和头像信息,将该账号和头像信息添加至主账号的联系人信息中。使得在主账号对应的应用中,可查询到该联系人在从账号对应的应用程序中的信息。The electronic device can select the preset field information to be aggregated from the contact information to be aggregated in the account, and aggregate the selected field information into the contact information to be aggregated of the primary account, so that the contact information of the primary account is aggregated. It also contains the information of the contact in the slave account. The field information correspondingly selected from different accounts is not necessarily the same. Optionally, the selected field information is field information different from the field information in the main account, for example, the application account number and avatar information in the contact information to be aggregated from the account can be selected, and the account number and avatar information are added to the main account. account's contact information. Therefore, in the application corresponding to the primary account, the information of the contact in the application corresponding to the secondary account can be queried.

举例来说,针对通讯录中包含联系人“张三”,确定该主账号为电话本的账号,从账号包括电子设备用户在QQ、微信、微博和邮箱应用上的账号,则可将该用户在QQ、微信、微博和邮箱应用上的账号下,联系人“张三”的账号昵称、备注以及头像等其中的一种或多种字段信息添加在电话本应用下的“张三”的信息之中,使得在电话本应用下的“张三”的信息中,可以查看到“张三”的QQ、微信、微博和邮箱应用的账号和头像等字段信息。或者针对相同联系人“李四”,可确定将电子设备用户的邮箱应用的账号作为主账号,而将电话本、QQ、微信和微博应用下,联系人“李四”的账号昵称、备注以及头像等其中的一种或多种字段信息添加在邮箱应用下的联系人“张三”的信息之中。For example, for the contact "Zhang San" included in the address book, it is determined that the primary account is the account of the phone book, and the secondary account includes the accounts of the user of the electronic device on QQ, WeChat, Weibo, and mailbox applications, then the account can be used as the primary account. Under the user's account on QQ, WeChat, Weibo and mailbox applications, one or more fields such as the account nickname, remarks and avatar of the contact "Zhang San" are added to "Zhang San" under the phonebook application In the information of "Zhang San" under the phonebook application, you can view the field information such as the account number and avatar of "Zhang San"'s QQ, WeChat, Weibo and mailbox applications. Or for the same contact "Li Si", it can be determined that the account of the electronic device user's mailbox application is used as the main account, and the account nickname and remarks of the contact "Li Si" under the phonebook, QQ, WeChat and Weibo applications And one or more field information, such as the avatar, is added to the information of the contact "Zhang San" under the mailbox application.

通过联系人聚合可以将不同账号同一个联系人的信息聚在一起显示,信息显示更集中,方便联系人查找和管理。可选地,聚合后的联系人不会修改联系人的信息,只是显示层面的整合。Through contact aggregation, the information of the same contact from different accounts can be displayed together, and the information display is more centralized, which is convenient for contact search and management. Optionally, the aggregated contacts will not modify the contact information, but only display-level integration.

上述的联系人信息处理方法,通过获取待聚合账号中的待聚合联系人信息,该待聚合联系人信息为属于同一联系人的信息。并根据该待聚合联系人信息从多个待聚合账号中确定相应的主账号和从账号,并将从账号中的待聚合联系人信息聚合至主账号中的待聚合联系人信息中。通过根据待聚合联系人来确定主账号,使得针对不同的联系人可设置不同的主账号,提高了联系人聚合的灵活性。In the above method for processing contact information, the contact information to be aggregated in the account to be aggregated is acquired, and the contact information to be aggregated is information belonging to the same contact. And according to the to-be-aggregated contact information, the corresponding master account and the slave account are determined from the multiple to-be-aggregated accounts, and the to-be-aggregated contact information in the slave accounts is aggregated into the to-be-aggregated contact information in the master account. By determining the primary account according to the contacts to be aggregated, different primary accounts can be set for different contacts, which improves the flexibility of contact aggregation.

在一个实施例中,步骤304包括:根据待聚合联系人信息,从具有读写权限待聚合账号中选取待聚合账号作为相应的主账号。In one embodiment, step 304 includes: according to the contact information to be aggregated, selecting the account to be aggregated from the accounts to be aggregated with read and write permissions as the corresponding primary account.

可选地,在部分待聚合账号中,通讯录中的联系人信息中包含的字段内容是固定的,不允许进行读写,因而当选择不具有读写权限的待聚合账号作为主账号时,容易导致聚合失败。因此,可获取每个待聚合账号的属性信息,该属性信息中包含了待聚合账号中的联系人信息是否被允许进行读写操作。根据该属性确定是否对对应待聚合账号具有读写权限,并从具有读写权限的待聚合账号中选取主账号。在一个实施例中,当所有待聚合账号均不具有读写权限时,可创建新的账号,作为相应的主账号。Optionally, in some of the accounts to be aggregated, the content of the fields contained in the contact information in the address book is fixed, and reading and writing is not allowed. Therefore, when selecting an account to be aggregated that does not have read and write permissions as the primary account, It is easy to cause aggregation failure. Therefore, attribute information of each account to be aggregated can be obtained, and the attribute information includes whether the contact information in the account to be aggregated is allowed to perform read and write operations. According to this attribute, it is determined whether the corresponding account to be aggregated has read and write permissions, and the primary account is selected from the accounts to be aggregated with read and write permissions. In one embodiment, when all the accounts to be aggregated do not have read and write permissions, a new account can be created as the corresponding primary account.

在一个实施例中,步骤304包括:根据待聚合联系人信息计算对应待聚合账号中的待聚合联系人信息的信息复杂度;根据信息复杂度从待聚合账号中确定相应的主账号和从账号。In one embodiment, step 304 includes: calculating the information complexity of the contact information to be aggregated corresponding to the account to be aggregated according to the contact information to be aggregated; determining the corresponding master account and slave account from the accounts to be aggregated according to the information complexity .

其中,信息复杂度可根据待聚合联系人信息中的每个字段信息来确定,字段信息越多,则相应的信息复杂度越大。电子设备可计算该待聚合联系人信息中,每个字段信息的复杂度,并依次选取相同字段的字段信息计算相应的复杂度,选取最大复杂度的字段信息对应的待聚合账号,作为主账号;若各个复杂度大小均相同,即选取的各个待聚合联系人信息中的字段信息均相同,则可继续选择各个待聚合联系人中,下一个相同字段的字段信息,并计算出对应的信息复杂度,选取最大复杂度的字段信息对应的待聚合账号,作为主账号。The information complexity may be determined according to each field information in the contact information to be aggregated, and the more field information, the greater the corresponding information complexity. The electronic device can calculate the complexity of each field information in the contact information to be aggregated, select the field information of the same field in turn to calculate the corresponding complexity, and select the account to be aggregated corresponding to the field information with the largest complexity as the primary account. ; If the complexity of each is the same, that is, the field information in the selected contacts to be aggregated is the same, you can continue to select the field information of the next same field in each contact to be aggregated, and calculate the corresponding information For complexity, select the account to be aggregated corresponding to the field information with the largest complexity as the main account.

以联系人姓名字段为例,姓名的名称复杂度可根据名称组成结构来确定,其中,数字的复杂程度<英文字母的复杂程度(汉字会转化为拼音),字母之间按照字母A-Z比较大小,越大的代表复杂程度越大。如果前面两轮比较不能区分复杂度的话,再根据字符串长度来比较,长度越长的复杂度越大。Taking the contact name field as an example, the name complexity of the name can be determined according to the name composition structure, where the complexity of the numbers < the complexity of the English letters (Chinese characters will be converted into pinyin), and the letters are compared according to the letters A-Z. Larger means greater complexity. If the first two rounds of comparison cannot distinguish the complexity, then compare according to the length of the string. The longer the length, the greater the complexity.

在一个实施例中,确定主账号的判定顺序为:是否是读写账号-账号联系人的名称类型-账号联系人的名称复杂程度。多个联系人账号有符合聚合条件的联系人时,优先选择读写账号作为聚合主账号,如果没有读写账号时,再将只读账号作为主账号。都是读写账号或者都是只读账号时,按照名称类型(姓名>姓名拼音>公司>职位>号码>电子邮箱)来确定主账号优先级,名称类型也相同时,按照名称复杂程度来确定,名称复杂程度越大的,对应的账号优先作为主账号。In one embodiment, the determination sequence for determining the primary account is: whether it is a read-write account - the name type of the account contact - the name complexity of the account contact. When multiple contact accounts have contacts that meet the aggregation conditions, the read-write account is preferentially selected as the main aggregation account. If there is no read-write account, the read-only account is used as the main account. When both are read-write accounts or read-only accounts, the priority of the main account is determined according to the name type (name>name pinyin>company>position>number>e-mail), and if the name type is the same, it is determined according to the complexity of the name , the more complex the name is, the corresponding account will be prioritized as the main account.

在一个实施例中,可将最大的信息复杂度对应的待聚合账号作为主账号,将非最大的信息复杂度对应的待聚合账号作为从账号。可选地,结合图4所示,为一个实施例中对主账号确认的流程示意图。其中,确定主账号的步骤包括下述步骤402至步骤408。In one embodiment, the account to be aggregated corresponding to the maximum information complexity may be used as the master account, and the account to be aggregated corresponding to the non-maximum information complexity may be used as the slave account. Optionally, with reference to FIG. 4 , it is a schematic flowchart of confirming the primary account in one embodiment. The step of determining the primary account number includes the following steps 402 to 408 .

步骤402,从每个待聚合联系人信息中,选取未被选取过的相同字段的字段信息。Step 402, from each contact information to be aggregated, select field information of the same field that has not been selected.

其中,不同应用中的联系人信息之间具有部分相同的字段,比如该相同字段包括联系人的姓名或备注名、联系电话、出生日期、公司等字段。针对这些相同的字段,电子设备可设置对联系人信息中的字段的选取顺序,并按照该选取顺序来选取未被选取的相同字段的字段信息。比如,可将联系人信息中的姓名字段作为选取的字段,并获取每个待聚合联系人信息中的姓名信息。The contact information in different applications has some of the same fields, for example, the same field includes fields such as the contact's name or note name, contact number, date of birth, and company. For these same fields, the electronic device may set a selection sequence of fields in the contact information, and select the field information of the same fields that are not selected according to the selection sequence. For example, the name field in the contact information can be used as the selected field, and the name information in each contact information to be aggregated can be obtained.

步骤404,计算当前选取的每个字段信息的信息复杂度,并进行信息复杂度的大小比较。Step 404: Calculate the information complexity of each field information currently selected, and compare the size of the information complexity.

电子设备可根据当前选取的字段信息来计算对应的信息复杂度,并对该复杂度进行大小比较。The electronic device may calculate the corresponding information complexity according to the currently selected field information, and compare the complexity.

步骤406,比较是否存在最大信息复杂度,若是,则进入步骤408,否则,进入步骤402。Step 406 , compare whether there is a maximum information complexity, if yes, go to step 408 , otherwise, go to step 402 .

可选地,电子设备预先确定了主账号的数量,当主账号的数量为1时,若具有一个最大的信息复杂度,进入步骤408,若存在多个最大的信息复杂度,则既进入步骤402,重新选取新的相同字段信息进行复杂度比较。Optionally, the electronic device pre-determines the number of primary accounts, when the number of primary accounts is 1, if there is one maximum information complexity, go to step 408, if there are multiple maximum information complexity, then both go to step 402 , and re-select the new same field information for complexity comparison.

步骤408,选取最大信息复杂度对应的待聚合账号,作为主账号。Step 408: Select the account to be aggregated corresponding to the maximum information complexity as the primary account.

电子设备可最大信息复杂度对应的待聚合账号作为主账号,并将其它待聚合账号作为从账号。The electronic device may use the account to be aggregated corresponding to the maximum information complexity as the master account, and the other accounts to be aggregated as the slave account.

通过按照待聚合联系人信息来计算出信息复杂度,并按照信息复杂度的大小来进行主账号的确定,使得可将最大信息复杂度对应的待聚合账号作为主账号,将其它待聚合账号作为从账号。从而在进行信息聚合的过程中,降低聚合时的工作量。By calculating the information complexity according to the contact information to be aggregated, and determining the primary account according to the size of the information complexity, the account to be aggregated corresponding to the maximum information complexity can be used as the primary account, and other accounts to be aggregated as from the account. Therefore, in the process of information aggregation, the workload of aggregation is reduced.

在一个实施例中,如图5所示,提供了另一种联系人信息处理方法,该方法包括下述步骤502至步骤510。In one embodiment, as shown in FIG. 5 , another method for processing contact information is provided, and the method includes the following steps 502 to 510 .

步骤502,获取待聚合账号的第一数量。Step 502: Obtain a first number of accounts to be aggregated.

第一数量表示电子设备用户的具有即时通讯功能的应用程序的账号中,针对具有相同的某一联系人的账号的数量。比如,有5个账号中存在同一联系人“小明”,则针对该同一个联系人“小明”,该5个账号即为待聚合账号,待聚合账号的第一数量即为5。The first number represents the number of accounts with the same certain contact among the accounts of the application program with the instant messaging function of the user of the electronic device. For example, if there are 5 accounts with the same contact "Xiao Ming", for the same contact "Xiao Ming", the 5 accounts are the accounts to be aggregated, and the first number of the accounts to be aggregated is 5.

步骤504,获取待聚合账号中的待聚合联系人信息,待聚合联系人信息为属于同一联系人的信息。Step 504: Obtain contact information to be aggregated in the account to be aggregated, and the contact information to be aggregated is information belonging to the same contact.

其中,待聚合联系人信息中包括联系人的姓名、备注名、昵称、标签、姓名、性别、生日、公司、职务、联系方式以及该联系人在对应应用中的应用账号等其中的一种或多种字段的组合。不同应用中的联系人信息所包含的字段不尽相同,且部分字段中的字段信息可为空值。The contact information to be aggregated includes one of the contact's name, note name, nickname, label, name, gender, birthday, company, title, contact information, and the contact's application account in the corresponding application, etc. A combination of various fields. Contact information in different applications contains different fields, and the field information in some fields can be null.

步骤506,根据待聚合账号的第一数量确定主账号的第二数量。Step 506: Determine the second number of primary accounts according to the first number of accounts to be aggregated.

可选地,电子设备预设了每个账号可以聚合的其它账号的聚合数量阈值,聚合数量阈值表示相应账号中的联系人信息中,被允许聚合的其它账号的联系人信息的最大数量。根据该聚合数量阈值和第一数量,可确定用于作为主账号的数量,即第二数量。其中,第二数量与聚合数量阈值之间的乘积不大于第一数量。通过设置聚合数量阈值,使得聚合至某一主账号中的待聚合联系人的数量不超过该聚合数量阈值,可防止聚合的数量过多而导致处理聚合后的主账号或主账号的联系人信息时,相应速度下降,影响用户的体验。Optionally, the electronic device presets an aggregation quantity threshold of other accounts that can be aggregated by each account, and the aggregation quantity threshold represents the maximum quantity of contact information of other accounts that are allowed to be aggregated in the contact information of the corresponding account. According to the aggregate quantity threshold and the first quantity, the quantity used as the primary account number, that is, the second quantity, may be determined. Wherein, the product between the second quantity and the aggregate quantity threshold is not greater than the first quantity. By setting the aggregate number threshold, the number of contacts to be aggregated in a master account does not exceed the aggregate number threshold, which can prevent the aggregated master account or the contact information of the master account from being processed due to the excessive number of aggregates. When the corresponding speed drops, the user experience is affected.

步骤508,根据待聚合联系人信息从待聚合账号中选取第二数量的主账号,将未选取的待聚合账号作为从账号。Step 508: Select a second number of primary accounts from the accounts to be aggregated according to the contact information to be aggregated, and use the unselected accounts to be aggregated as the secondary accounts.

电子设备可基于每个待聚合联系人信息,按照前述的主账号的选取方式,选取第二数量的主账号。其中,可根据待聚合联系人信息计算对应待聚合账号中的待聚合联系人信息的信息复杂度,并对信息复杂度进行大小比较,选取最大的第二数量的信息复杂度对应的待聚合账号,作为主账号,并将剩余的待聚合账号作为从账号。The electronic device may select the second number of primary accounts based on the information of each to-be-aggregated contact and according to the foregoing selection method of primary accounts. Wherein, the information complexity of the contact information to be aggregated corresponding to the account to be aggregated can be calculated according to the contact information to be aggregated, the size of the information complexity is compared, and the account to be aggregated corresponding to the largest second number of information complexities is selected , as the master account, and the remaining accounts to be aggregated as slave accounts.

步骤510,从从账号序列中依次选取指定数量的从账号对应到主账号序列中的主账号,将从账号的待聚合联系人信息聚合到对应的主账号的待聚合联系人信息中。Step 510: Select a specified number of secondary accounts from the sequence of secondary accounts to correspond to the primary accounts in the sequence of primary accounts in turn, and aggregate the contact information to be aggregated from the secondary accounts into the contact information to be aggregated of the corresponding primary account.

电子设备可对从账号进行排序,形成从账号序列,并针对主账号也进行排序,形成主账号序列。将从账号序列中每个从账号和其中一个主账号之间建立对应关系,使得针对每个主账号,均有指定数量的从账号与该主账号之间具有对应关系。每个主账号的指定数量可根据上述的第一数量和第二数量来确定,不同主账号的指定数量不一定相同,且指定数量的大小不超过上述的聚合数量阈值。The electronic device can sort the slave accounts to form a sequence of slave accounts, and also sort the master accounts to form a sequence of master accounts. A corresponding relationship is established between each slave account in the slave account sequence and one of the master accounts, so that for each master account, there is a corresponding relationship between a specified number of slave accounts and the master account. The designated quantity of each main account can be determined according to the above-mentioned first quantity and second quantity, the designated quantity of different main accounts is not necessarily the same, and the size of the designated quantity does not exceed the above-mentioned aggregate quantity threshold.

通过根据待聚合账号的数量来确定相应数量的主账号,并为每个主账号分配指定数量的从账号,并聚合对应指定数量的从账号中的待聚合联系人信息,从而可防止主账号中聚合的联系人信息过多,而导致该主账号的操作相应效率低下。By determining a corresponding number of master accounts according to the number of accounts to be aggregated, assigning a specified number of slave accounts to each master account, and aggregating the contact information to be aggregated corresponding to the specified number of slave accounts, thereby preventing the The aggregated contact information is too much, which leads to the corresponding inefficiency of the operation of the main account.

在一个实施例中,如图6所示,获取待聚合账号中的待聚合联系人信息,包括下述步骤602至步骤606。In one embodiment, as shown in FIG. 6 , acquiring the contact information to be aggregated in the account to be aggregated includes the following steps 602 to 606 .

步骤602,获取参与聚合的账号中的通讯录信息。Step 602: Obtain the address book information in the accounts participating in the aggregation.

其中,每份通讯录信息中包含了至少一个联系人的联系人信息。电子设备可获取所有参与聚合的账号中的通讯录信息,从该通讯录信息中提取各个联系人的联系人信息。Wherein, each address book information includes contact information of at least one contact. The electronic device can obtain the address book information in all the accounts participating in the aggregation, and extract the contact information of each contact from the address book information.

步骤604,检测各个通讯录信息中,是否存在属于同一联系人的联系人信息。Step 604: Detect whether there is contact information belonging to the same contact in each address book information.

电子设备根据提取的各个通讯录中的联系人信息,检测是否存在两个或两个以上的联系人信息所表示的联系人是否为同一联系人。可选地,可根据联系人信息中的各个字段中的字段信息来判定相应联系人信息所表示的联系人是否为同一联系人,举例来说,当两个联系人信息中,若包含相同的联系人的姓名和联系方式,则可判定该两个联系人信息为同一联系人的联系人信息。The electronic device detects, according to the extracted contact information in each address book, whether there are two or more contacts represented by the contact information and whether the contacts are the same contact. Optionally, it can be determined whether the contact represented by the corresponding contact information is the same contact according to the field information in each field in the contact information. name and contact information of the contact, it can be determined that the two contact information is the contact information of the same contact.

在一个实施例中,步骤604包括:计算其中一个待聚合账号中的联系人信息与其它待聚合账号中的联系人信息之间,指定字段中的字段信息的相似度;将相似度超过预设的相似度阈值联系人信息作为属于同一联系人的联系人信息。In one embodiment, step 604 includes: calculating the similarity of the field information in the specified field between the contact information in one of the accounts to be aggregated and the contact information in the other accounts to be aggregated; The similarity threshold contact information is used as the contact information belonging to the same contact.

其中,指定字段可包括联系人的姓名和联系方式,联系方式可包括手机号码和邮箱账号等。电子设备可针对其中的联系人信息,对不同账号中,各个联系人的姓名和联系方式进行相似度比较,检测是否具有相同或相似的姓名和联系方式。若具有相同的姓名或相同的联系方式,则判定相应的联系人信息表示为同一个联系人的信息。The specified field may include the name and contact information of the contact person, and the contact information may include a mobile phone number, an email account, and the like. The electronic device can compare the similarity of the names and contact information of each contact in different accounts with respect to the contact information, and detect whether they have the same or similar names and contact information. If they have the same name or the same contact information, it is determined that the corresponding contact information is represented as the information of the same contact.

步骤606,将属于同一联系人的联系人信息作为待聚合联系人信息,将属于同一联系人的联系人信息对应的账号作为待聚合账号。Step 606 , taking the contact information belonging to the same contact as the contact information to be aggregated, and taking the account corresponding to the contact information belonging to the same contact as the account to be aggregated.

电子设备可将判定为属于同一联系人的联系人信息作为待聚合联系人信息,将相应的账号作为待聚合账号。并可按照上述方法对待聚合账号中的待聚合联系人信息进行聚合。The electronic device may regard the contact information determined to belong to the same contact as the contact information to be aggregated, and the corresponding account number as the account to be aggregated. The contact information to be aggregated in the account to be aggregated can be aggregated according to the above method.

通过对指定字段中的字段信息进行相似度比较,可提高对属于同一联系人的判定的准确定。By comparing the similarity of the field information in the specified fields, the accuracy of the determination of belonging to the same contact can be improved.

在一个实施例中,如图7所示,提供了另一种联系人信息聚合方法,该方法包括以下步骤702至步骤712。In one embodiment, as shown in FIG. 7 , another method for aggregating contact information is provided, and the method includes the following steps 702 to 712 .

步骤702,获取参与聚合的账号中的通讯录信息。Step 702: Obtain the address book information in the accounts participating in the aggregation.

步骤704,计算其中一个待聚合账号中的联系人信息与其它待聚合账号中的联系人信息之间,指定字段中的字段信息的相似度;将相似度超过预设的相似度阈值联系人信息作为属于同一联系人的联系人信息。Step 704: Calculate the similarity of the field information in the specified field between the contact information in one of the accounts to be aggregated and the contact information in the other accounts to be aggregated; set the similarity to exceed the preset similarity threshold contact information as contact information belonging to the same contact.

在一个实施例中,当检测到两个联系人信息中,被标记需要聚合时,则直接判定两个联系人信息为属于同一联系人的联系人信息。若检测到两个联系人信息中,联系人姓名相同或相似度超过相似度阈值,且有一个或多个相同的联系方式,则同样判定两个联系人信息为属于同一联系人的联系人信息。若检测到两个联系人信息中,姓名相同但不具有相同的联系方式,且分属不同的账号,则同样判定两个联系人信息为属于同一联系人的联系人信息。若检测到两个联系人信息中,均无姓名信息,但具有相同的联系方式,则同样判定两个联系人信息为属于同一联系人的联系人信息。In one embodiment, when it is detected that the two contact information is marked and needs to be aggregated, it is directly determined that the two contact information is the contact information belonging to the same contact. If it is detected that in the two contact information, the contact name is the same or the similarity exceeds the similarity threshold, and there are one or more the same contact information, the two contact information is also determined to belong to the same contact information. . If it is detected that the two contact information have the same name but do not have the same contact information, and belong to different accounts, it is also determined that the two contact information is the contact information belonging to the same contact. If it is detected that there is no name information in the two contact information, but have the same contact information, it is also determined that the two contact information is the contact information belonging to the same contact.

在一个实施例中,当检测到两个联系人信息中,带有不聚合的标记,则不对两个联系人信息进行聚合,若检测到两个联系人信息中,联系人姓名相同但不具有相同的联系方式,且分属相同的账号,则判定不为同一联系人;当两个联系人信息中有相同的联系方式时,若姓名相似度小于预设的相似度阈值,则判定不为同一联系人。In one embodiment, when it is detected that the two contact information is marked with a non-aggregation mark, the two contact information is not aggregated. The same contact information and belong to the same account, it is determined not to be the same contact; when two contact information has the same contact information, if the name similarity is less than the preset similarity threshold, it is determined not to be the same contact the same contact.

步骤706,将属于同一联系人的联系人信息作为待聚合联系人信息,将属于同一联系人的联系人信息对应的账号作为待聚合账号。Step 706: Use the contact information belonging to the same contact as the contact information to be aggregated, and use the account corresponding to the contact information belonging to the same contact as the account to be aggregated.

举例来说,针对联系人“张三”,当判定为属于“张三”的联系人信息包括联系人信息1~联系人信息5,则将该联系人信息1~联系人信息5作为待聚合联系人信息,而将该联系人信息1~联系人信息5对应的账号1~账号5作为待聚合账号。For example, for the contact "Zhang San", when it is determined that the contact information belonging to "Zhang San" includes contact information 1 to contact information 5, then the contact information 1 to contact information 5 are regarded as to be aggregated Contact information, and account 1 to account 5 corresponding to the contact information 1 to contact information 5 are used as the accounts to be aggregated.

步骤708,获取待聚合账号的第一数量。Step 708: Obtain the first number of accounts to be aggregated.

针对所确定的待聚合账号,可计算出该待聚合账号的数量。For the determined accounts to be aggregated, the number of the accounts to be aggregated can be calculated.

步骤710,根据待聚合账号的第一数量确定主账号的第二数量,根据待聚合联系人信息从待聚合账号中选取第二数量的主账号,将未选取的待聚合账号作为从账号。Step 710: Determine the second number of primary accounts according to the first number of accounts to be aggregated, select a second number of primary accounts from the accounts to be aggregated according to the contact information to be aggregated, and use the unselected accounts to be aggregated as secondary accounts.

可选地,电子设备预设了每个账号可以聚合的其它账号的聚合数量阈值,当第一数量大于聚合数量阈值+1,可设置多个主账号;当第一数量不小于聚合数量阈值,可仅设置一个主账号。通过按照第一数量来确定主账号的第二数量,可防止主账号中聚合的联系人信息过多。Optionally, the electronic device presets the aggregation quantity threshold of other accounts that can be aggregated by each account. When the first quantity is greater than the aggregation quantity threshold + 1, multiple primary accounts can be set; when the first quantity is not less than the aggregation quantity threshold, Only one primary account can be set. By determining the second quantity of the main account according to the first quantity, too much contact information aggregated in the main account can be prevented.

在确定主账号数量之后,可检测每个待聚合账号是否为可读写账号,并根据每个待聚合联系人信息中的信息复杂度,优先从可读写账号中选取信息复杂度较低的待聚合账号作为主账号。其中,信息复杂度可为指定字段中的字段信息的复杂度,比如名称的复杂度。比如存在名称字段信息为“张三”和“张三1”时,则判定“张三”的复杂度小于“张三1”。After determining the number of primary accounts, it can be detected whether each account to be aggregated is a readable and writable account, and according to the information complexity of each contact information to be aggregated, the account with lower information complexity is preferentially selected from the readable and writable accounts. The account to be aggregated is used as the main account. The information complexity may be the complexity of the field information in the specified field, such as the complexity of the name. For example, when the name field information is "Zhang San" and "Zhang San 1", it is determined that the complexity of "Zhang San" is less than that of "Zhang San 1".

步骤712,从从账号序列中依次选取指定数量的从账号对应到主账号序列中的主账号,将从账号的待聚合联系人信息聚合到对应的主账号的待聚合联系人信息中。Step 712: Select a specified number of secondary accounts in sequence from the secondary account sequence to correspond to the primary accounts in the primary account sequence, and aggregate the to-be-aggregated contact information of the secondary accounts into the to-be-aggregated contact information of the corresponding primary account.

可选地,可将从账号中指定字段的字段信息添加到主账号的待聚合联系人信息中。该指定字段可包括联系人的头像、该联系人在相应从账号中的账号名称、昵称等字段信息。如图1C所示,可将图1C(中)中的头像、XX号以及昵称等聚合至图1C(左)中,形成如图1C(右)中的展示界面。在从账号和主账号的待聚合联系人信息中,姓名信息不相同时,可按照以下的方式,选取其中一个账号中的姓名信息,将该姓名信息显示在聚合后的联系人信息中的姓名字段之中。Optionally, the field information of the specified field in the account can be added to the contact information to be aggregated in the primary account. The specified field may include field information such as the avatar of the contact, the account name and nickname of the contact in the corresponding slave account. As shown in FIG. 1C , the avatar, XX number, and nickname in FIG. 1C (middle) can be aggregated into FIG. 1C (left) to form a display interface as shown in FIG. 1C (right). In the contact information to be aggregated from the secondary account and the primary account, when the name information is different, you can select the name information in one of the accounts in the following way, and display the name information as the name in the aggregated contact information in the field.

其中,可按照姓名>姓名拼音>公司>职位>号码>电子邮箱的方式来确定聚合后的姓名,有姓名时优先显示姓名,没有姓名时,显示昵称,如果昵称也没有,会将公司、职位、电话号码或电子邮箱当作姓名显示在联系人列表。Among them, the aggregated name can be determined according to the method of Name>Name Pinyin>Company>Position>Number>E-mail. If there is a name, the name will be displayed first. If there is no name, the nickname will be displayed. If there is no nickname, the company and position will be displayed. , phone number, or email address is displayed as a name in the contact list.

举例来说,若聚合数量阈值可为10个,即表示为主账号中的待聚合联系人中,聚合的从账号的待聚合联系人的数量不超过10个。在针对某一相同联系人,第一数量为32个时,则可确定第二数量为3个,即选取3个待聚合账号作为主账号,余下29个待聚合账号作为从账号。即可选择2个主账号中的待聚合联系人来分别聚合10个从账号中的待聚合联系人信息,剩余的1个主账号中的待聚合联系人信息聚合剩下的9个从账号中的待聚合联系人信息。For example, if the aggregate number threshold is 10, it means that among the contacts to be aggregated in the master account, the number of contacts to be aggregated in the aggregated secondary accounts does not exceed 10. For a certain same contact, when the first number is 32, it can be determined that the second number is 3, that is, 3 accounts to be aggregated are selected as master accounts, and the remaining 29 accounts to be aggregated are selected as slave accounts. You can select the contacts to be aggregated in the 2 master accounts to aggregate the information of the contacts to be aggregated in the 10 slave accounts respectively, and the contact information to be aggregated in the remaining 1 master account is aggregated from the remaining 9 slave accounts. The to-be-aggregated contact information.

比如,电子设备可将该29个从账号进行排序,形成从账号序列,将3个主账号进行排序,形成主账号序列。并从该从账号序列中选取第1~10个从账号,将排序为1~10的从账号对应到主账号序列中的排序为第1的主账号;并选取第11~20个从账号,将排序为11~20的从账号对应到主账号序列中的排序为第2的主账号;然后将剩下的排序为21~29的从账号对应待主账号序列中的排序为第2的主账号,实现了对每个主账号的聚合分配。并按照上述建立的对应分配,将从账号的待聚合联系人信息聚合到对应的主账号的待聚合联系人信息中。For example, the electronic device may sort the 29 slave accounts to form a sequence of slave accounts, and sort the 3 master accounts to form a sequence of master accounts. And select the 1st to 10th slave accounts from the sequence of slave accounts, and correspond the slave accounts ranked as 1 to 10 to the master account ranked as the first in the sequence of master accounts; and select the 11th to 20th slave accounts, Correspond the slave accounts ranked 11 to 20 to the second master account in the master account sequence; then the remaining slave accounts ranked 21 to 29 correspond to the second master account in the master account sequence. Account, which realizes the aggregate allocation of each main account. And according to the corresponding allocation established above, the to-be-aggregated contact information of the sub-account is aggregated into the to-be-aggregated contact information of the corresponding master account.

在一个实施例中,当在聚合后的主账号的联系人信息展示界面中,接收到对从账号信息的点击操作时,可响应该操作,并启动该从账号对应的应用,进入与该从账号应用中,相应联系人的处理界面,如进入相应从账号应用中,与该联系人的通话信息界面。In one embodiment, when a click operation on the slave account information is received in the aggregated contact information display interface of the master account, the operation can be responded to, the application corresponding to the slave account can be started, and an application corresponding to the slave account can be entered. In the account application, the processing interface of the corresponding contact, such as entering the corresponding slave account application, the call information interface with the contact.

上述的联系人信息处理方法,通过获取参与聚合的账号中的通讯录信息,进而根据该通讯录信息来确定需要待聚合联系人联系以及相应的待聚合账号,并根据待聚合账号的数量来确定主账号的数量,并选取相应数量的待聚合账号作为主账号,提高了主账号确定的灵活性,然后从从账号序列中依次选取指定数量的从账号对应到主账号序列中的主账号,将从账号的待聚合联系人信息聚合到对应的主账号的待聚合联系人信息中,可防止主账号中聚合了过多数量的联系人信息,造成对该主账号操作的相应速度。The above-mentioned contact information processing method, by acquiring the address book information in the accounts participating in the aggregation, and then determining the contacts to be aggregated and the corresponding accounts to be aggregated according to the address book information, and determined according to the number of the accounts to be aggregated. The number of master accounts, and select the corresponding number of accounts to be aggregated as the master account, which improves the flexibility of determining the master account, and then selects a specified number of slave accounts from the slave account sequence to correspond to the master account in the master account sequence. From the to-be-aggregated contact information of the account to the to-be-aggregated contact information of the corresponding main account, it is possible to prevent an excessive amount of contact information from being aggregated in the main account, resulting in a corresponding speed of operations on the main account.

应该理解的是,虽然图3~图7的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图3~图7中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flowcharts of FIG. 3 to FIG. 7 are displayed in sequence according to the arrows, these steps are not necessarily executed in the sequence indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in FIG. 3 to FIG. 7 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but may be executed at different times. These sub-steps or The order of execution of the stages is also not necessarily sequential, but may be performed alternately or alternately with other steps or sub-steps of other steps or at least a portion of a stage.

在一个实施例中,如图8所示,提供了一种联系人信息处理装置,该装置包括:In one embodiment, as shown in FIG. 8, a contact information processing apparatus is provided, and the apparatus includes:

联系人信息获取模块802,用于获取待聚合账号中的待聚合联系人信息,待聚合联系人信息为属于同一联系人的信息。The contact information acquisition module 802 is configured to acquire the contact information to be aggregated in the account to be aggregated, and the contact information to be aggregated is information belonging to the same contact.

主账号确定模块804,用于根据待聚合联系人信息从待聚合账号中确定相应的主账号和从账号。The primary account determining module 804 is configured to determine the corresponding primary account and secondary account from the accounts to be aggregated according to the contact information to be aggregated.

信息聚合模块806,用于将从账号中的待聚合联系人信息聚合至主账号中的待聚合联系人信息中。The information aggregation module 806 is configured to aggregate the contact information to be aggregated in the account to the contact information to be aggregated in the primary account.

在一个实施例中,主账号确定模块804还用于根据待聚合联系人信息,从具有读写权限待聚合账号中选取待聚合账号作为相应的主账号。In one embodiment, the primary account determination module 804 is further configured to select the account to be aggregated from the accounts to be aggregated with read and write permissions as the corresponding primary account according to the contact information to be aggregated.

在一个实施例中,主账号确定模块804还用于根据待聚合联系人信息计算对应待聚合账号中的待聚合联系人信息的信息复杂度;根据信息复杂度从待聚合账号中确定相应的主账号和从账号。In one embodiment, the primary account determining module 804 is further configured to calculate the information complexity of the contact information to be aggregated corresponding to the account to be aggregated according to the contact information to be aggregated; account and slave account.

在一个实施例中,主账号确定模块804还用于将最大的信息复杂度对应的待聚合账号作为主账号,将非最大的信息复杂度对应的待聚合账号作为从账号。In one embodiment, the primary account determination module 804 is further configured to use the account to be aggregated corresponding to the maximum information complexity as the primary account, and the account to be aggregated corresponding to the non-maximum information complexity as the secondary account.

在一个实施例中,联系人信息获取模块802还用于获取待聚合账号的第一数量;主账号确定模块804还用于根据待聚合账号的第一数量确定主账号的第二数量;根据待聚合联系人信息从待聚合账号中选取第二数量的主账号,将未选取的待聚合账号作为从账号;信息聚合模块806还用于从从账号序列中依次选取指定数量的从账号对应到主账号序列中的主账号,将从账号的待聚合联系人信息聚合到对应的主账号的待聚合联系人信息中。In one embodiment, the contact information obtaining module 802 is further configured to obtain a first number of accounts to be aggregated; the primary account determination module 804 is further configured to determine a second number of primary accounts according to the first number of accounts to be aggregated; The aggregated contact information selects the second number of master accounts from the accounts to be aggregated, and uses the unselected accounts to be aggregated as the slave accounts; the information aggregation module 806 is also used to sequentially select a specified number of slave accounts from the slave account sequence to correspond to the master account. The main account in the account sequence will aggregate the to-be-aggregated contact information from the account to the to-be-aggregated contact information of the corresponding main account.

在一个实施例中,联系人信息获取模块802还用于获取参与聚合的账号中的通讯录信息;检测各个通讯录信息中,是否存在属于同一联系人的联系人信息;将属于同一联系人的联系人信息作为待聚合联系人信息;将属于同一联系人的联系人信息对应的账号作为待聚合账号。In one embodiment, the contact information obtaining module 802 is further configured to obtain the address book information in the accounts participating in the aggregation; detect whether there is contact information belonging to the same contact in each address book information; The contact information is used as the contact information to be aggregated; the account corresponding to the contact information belonging to the same contact is used as the account to be aggregated.

在一个实施例中,联系人信息获取模块802还用于计算其中一个待聚合账号中的联系人信息与其它待聚合账号中的联系人信息之间,指定字段中的字段信息的相似度;将相似度超过预设的相似度阈值联系人信息作为属于同一联系人的联系人信息。In one embodiment, the contact information acquisition module 802 is further configured to calculate the similarity of the field information in the specified field between the contact information in one of the accounts to be aggregated and the contact information in the other accounts to be aggregated; Contact information whose similarity exceeds a preset similarity threshold is regarded as contact information belonging to the same contact.

上述的联系人信息处理装置,通过获取待聚合账号中的待聚合联系人信息,该待聚合联系人信息为属于同一联系人的信息。并根据该待聚合联系人信息从多个待聚合账号中确定相应的主账号和从账号,并将从账号中的待聚合联系人信息聚合至主账号中的待聚合联系人信息中。通过根据待聚合联系人来确定主账号,使得针对不同的联系人可设置不同的主账号,提高了联系人聚合的灵活性。The above-mentioned contact information processing apparatus obtains the contact information to be aggregated in the account to be aggregated, and the contact information to be aggregated is information belonging to the same contact. And according to the to-be-aggregated contact information, the corresponding master account and the slave account are determined from the multiple to-be-aggregated accounts, and the to-be-aggregated contact information in the slave accounts is aggregated into the to-be-aggregated contact information in the master account. By determining the primary account according to the contacts to be aggregated, different primary accounts can be set for different contacts, which improves the flexibility of contact aggregation.

上述联系人信息处理装置中各个模块的划分仅用于举例说明,在其他实施例中,可将联系人信息处理装置按照需要划分为不同的模块,以完成上述联系人信息处理装置的全部或部分功能。The division of each module in the above-mentioned contact information processing apparatus is only used for illustration. In other embodiments, the contact information processing apparatus may be divided into different modules as required, so as to complete all or part of the above-mentioned contact information processing apparatus Function.

关于联系人信息处理装置的具体限定可以参见上文中对于联系人信息处理方法的限定,在此不再赘述。上述联系人信息处理装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitation of the contact information processing apparatus, reference may be made to the limitation on the contact information processing method above, which will not be repeated here. Each module in the above-mentioned contact information processing apparatus may be implemented in whole or in part by software, hardware and combinations thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

本申请实施例中提供的联系人信息处理装置中的各个模块的实现可为计算机程序的形式。该计算机程序可在终端或服务器上运行。该计算机程序构成的程序模块可存储在终端或服务器的存储器上。该计算机程序被处理器执行时,实现本申请实施例中所描述方法的步骤。The implementation of each module in the contact information processing apparatus provided in the embodiments of the present application may be in the form of a computer program. The computer program can be run on a terminal or server. The program modules constituted by the computer program can be stored in the memory of the terminal or the server. When the computer program is executed by the processor, the steps of the methods described in the embodiments of the present application are implemented.

本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当计算机可执行指令被一个或多个处理器执行时,使得处理器执行本申请任意实施例中描述的联系人信息处理方法的步骤。Embodiments of the present application also provide a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to execute the contact information described in any of the embodiments of this application The steps of the processing method.

一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行本申请任意实施例中描述的联系人信息处理方法。A computer program product containing instructions, when run on a computer, causes the computer to execute the contact information processing method described in any of the embodiments of this application.

在一个实施例中,提供了一种电子设备,包括存储器及处理器,存储器中储存有计算机程序,计算机程序被处理器执行时,使得处理器执行本申请任意实施例中描述的联系人信息处理方法的步骤。In one embodiment, an electronic device is provided, including a memory and a processor, a computer program is stored in the memory, and when the computer program is executed by the processor, the processor causes the processor to execute the contact information processing described in any embodiment of the present application steps of the method.

如图9所示,为了便于说明,仅示出了该电子设备与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该电子设备可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备,以电子设备为手机为例:As shown in FIG. 9 , for the convenience of description, only the part of the electronic device related to the embodiment of the present application is shown. For specific technical details that are not disclosed, please refer to the method part of the embodiment of the present application. The electronic device may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales, a sales terminal), a vehicle-mounted computer, a wearable device, etc. The electronic device is a mobile phone as an example :

图9为与本申请实施例提供的电子设备相关的手机的部分结构的框图。参考图9,手机包括:射频(Radio Frequency,RF)电路910、存储器920、输入单元930、显示单元940、传感器950、音频电路960、无线保真(wireless fidelity,WiFi)模块970、处理器980、以及电源990等部件。本领域技术人员可以理解,图9所示的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 9 is a block diagram of a partial structure of a mobile phone related to an electronic device provided by an embodiment of the present application. Referring to FIG. 9 , the mobile phone includes: a radio frequency (RF) circuit 910 , a memory 920 , an input unit 930 , a display unit 940 , a sensor 950 , an audio circuit 960 , a wireless fidelity (WiFi) module 970 , and a processor 980 , and power supply 990 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 9 does not constitute a limitation on the mobile phone, and may include more or less components than the one shown, or combine some components, or arrange different components.

其中,RF电路910可用于收发信息或通话过程中,信号的接收和发送,可将基站的下行信息接收后,给处理器980处理;也可以将上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路910还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System ofMobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband CodeDivision Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE))、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 910 can be used for receiving and sending signals during sending and receiving of information or during a call. After receiving the downlink information of the base station, it can be processed by the processor 980; it can also send the uplink data to the base station. Typically, the RF circuit includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuitry 910 may communicate with networks and other devices via wireless communications. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access) Access, CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE)), email, Short Messaging Service (Short Messaging Service, SMS) and the like.

存储器920可用于存储软件程序以及模块,处理器980通过运行存储在存储器920的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器920可主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能的应用程序、图像播放功能的应用程序等)等;数据存储区可存储根据手机的使用所创建的数据(比如音频数据、通讯录等)等。此外,存储器920可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 920 can be used to store software programs and modules, and the processor 980 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 920 . The memory 920 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as an application program for a sound playback function, an application program for an image playback function, etc.), etc.; The data storage area may store data (such as audio data, address book, etc.) created according to the usage of the mobile phone, and the like. Additionally, memory 920 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.

输入单元930可用于接收输入的数字或字符信息,以及产生与手机900的用户设置以及功能控制有关的键信号输入。具体地,输入单元930可包括触控面板931以及其他输入设备932。触控面板931,也可称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板931上或在触控面板931附近的操作),并根据预先设定的程式驱动相应的连接装置。在一个实施例中,触控面板931可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器980,并能接收处理器980发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板931。除了触控面板931,输入单元930还可以包括其他输入设备932。具体地,其他输入设备932可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)等中的一种或多种。The input unit 930 may be used to receive input numerical or character information, and generate key signal input related to user settings and function control of the mobile phone 900 . Specifically, the input unit 930 may include a touch panel 931 and other input devices 932 . The touch panel 931, also referred to as a touch screen, can collect the user's touch operations on or near it (such as the user using a finger, a stylus, etc., any suitable object or accessory on or near the touch panel 931) operation), and drive the corresponding connection device according to the preset program. In one embodiment, the touch panel 931 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 980, and can receive the command sent by the processor 980 and execute it. In addition, the touch panel 931 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 931 , the input unit 930 may further include other input devices 932 . Specifically, other input devices 932 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), and the like.

显示单元940可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元940可包括显示面板941。在一个实施例中,可以采用液晶显示器(LiquidCrystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板941。在一个实施例中,触控面板931可覆盖显示面板941,当触控面板931检测到在其上或附近的触摸操作后,传送给处理器980以确定触摸事件的类型,随后处理器980根据触摸事件的类型在显示面板941上提供相应的视觉输出。虽然在图9中,触控面板931与显示面板941是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板931与显示面板941集成而实现手机的输入和输出功能。The display unit 940 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 940 may include a display panel 941 . In one embodiment, the display panel 941 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. In one embodiment, the touch panel 931 may cover the display panel 941, and when the touch panel 931 detects a touch operation on or near it, the touch panel 931 transmits it to the processor 980 to determine the type of the touch event, and then the processor 980 determines the type of the touch event according to the The type of touch event provides a corresponding visual output on display panel 941 . Although in FIG. 9, the touch panel 931 and the display panel 941 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 931 and the display panel 941 can be integrated to form Realize the input and output functions of the mobile phone.

手机900还可包括至少一种传感器950,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板941的亮度,接近传感器可在手机移动到耳边时,关闭显示面板941和/或背光。运动传感器可包括加速度传感器,通过加速度传感器可检测各个方向上加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换)、振动识别相关功能(比如计步器、敲击)等;此外,手机还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器等。Cell phone 900 may also include at least one sensor 950, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor can include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 941 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 941 and/or when the mobile phone is moved to the ear. or backlight. Motion sensors can include acceleration sensors, which can detect the magnitude of acceleration in all directions, and can detect the magnitude and direction of gravity when stationary. It can be used for applications that recognize the posture of mobile phones (such as switching between horizontal and vertical screens), and vibration recognition related functions (such as Pedometer, tapping), etc.; in addition, the mobile phone can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc.

音频电路60、扬声器61和传声器62可提供用户与手机之间的音频接口。音频电路60可将接收到的音频数据转换后的电信号,传输到扬声器61,由扬声器61转换为声音信号输出;另一方面,传声器62将收集的声音信号转换为电信号,由音频电路60接收后转换为音频数据,再将音频数据输出处理器980处理后,经RF电路910可以发送给另一手机,或者将音频数据输出至存储器920以便后续处理。The audio circuit 60, the speaker 61 and the microphone 62 can provide the audio interface between the user and the mobile phone. The audio circuit 60 can transmit the received audio data converted electrical signal to the speaker 61, and the speaker 61 converts it into a sound signal for output; on the other hand, the microphone 62 converts the collected sound signal into an electrical signal, which is converted by the audio circuit 60 After receiving, the audio data is converted into audio data, and then the audio data is output to the processor 980 for processing, and can be sent to another mobile phone via the RF circuit 910, or the audio data can be output to the memory 920 for subsequent processing.

WiFi属于短距离无线传输技术,手机通过WiFi模块970可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图9示出了WiFi模块970,但是可以理解的是,其并不属于手机900的必须构成,可以根据需要而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 970. It provides users with wireless broadband Internet access. Although FIG. 9 shows the WiFi module 970, it can be understood that it is not a necessary component of the mobile phone 900 and can be omitted as required.

处理器980是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器920内的软件程序和/或模块,以及调用存储在存储器920内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。在一个实施例中,处理器980可包括一个或多个处理单元。在一个实施例中,处理器980可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等;调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器980中。The processor 980 is the control center of the mobile phone, using various interfaces and lines to connect various parts of the entire mobile phone, by running or executing the software programs and/or modules stored in the memory 920, and calling the data stored in the memory 920. Various functions of the mobile phone and processing data, so as to monitor the mobile phone as a whole. In one embodiment, the processor 980 may include one or more processing units. In one embodiment, the processor 980 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface and application programs, etc.; the modem processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 980.

手机900还包括给各个部件供电的电源990(比如电池),优选的,电源可以通过电源管理系统与处理器980逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone 900 also includes a power supply 990 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 980 through a power management system, so that functions such as charging, discharging, and power consumption management are implemented through the power management system.

在一个实施例中,手机900还可以包括摄像头、蓝牙模块等。In one embodiment, the mobile phone 900 may further include a camera, a Bluetooth module, and the like.

在本申请实施例中,该手机所包括的处理器680执行存储在存储器上的计算机程序时实现本申请任意实施例中描述的联系人信息处理方法的步骤。In this embodiment of the present application, when the processor 680 included in the mobile phone executes the computer program stored in the memory, the steps of the method for processing contact information described in any embodiment of the present application are implemented.

本申请所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDR SDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。Any reference to a memory, storage, database, or other medium as used herein may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).

以上实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above examples only represent several embodiments of the present application, and the descriptions thereof are relatively specific and detailed, but should not be construed as a limitation on the scope of the patent of the present application. It should be pointed out that for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the patent of the present application shall be subject to the appended claims.

Claims (10)

1. A contact information processing method is characterized by comprising the following steps:
acquiring information of contact persons to be aggregated in an account number to be aggregated, wherein the information of the contact persons to be aggregated belongs to the same contact person;
determining corresponding primary account and secondary account from the account to be aggregated according to the information of the contact person to be aggregated;
aggregating the information of the contact persons to be aggregated in the secondary account into the information of the contact persons to be aggregated in the primary account;
determining corresponding primary account and secondary account from the account to be aggregated according to the information of the contact person to be aggregated, wherein the determining comprises the following steps:
selecting an account to be aggregated from account to be aggregated with read-write permission as a corresponding primary account according to the information of the contact to be aggregated; or,
determining corresponding primary account and secondary account from the account to be aggregated according to the information of the contact person to be aggregated, wherein the determining comprises the following steps:
calculating the information complexity of the information of the contact person to be aggregated in the corresponding account to be aggregated according to the information of the contact person to be aggregated; determining corresponding primary account and secondary account from the accounts to be aggregated according to the information complexity; or,
acquiring a first number of the accounts to be aggregated;
determining corresponding primary account and secondary account from the account to be aggregated according to the information of the contact person to be aggregated, wherein the determining comprises the following steps:
determining a second number of the primary account numbers according to the first number of the account numbers to be aggregated; and selecting a second number of primary accounts from the accounts to be aggregated according to the information of the contact persons to be aggregated, and taking the unselected accounts to be aggregated as secondary accounts.
2. The method according to claim 1, wherein the determining corresponding primary account numbers and secondary account numbers from the account numbers to be aggregated according to the information complexity comprises:
and taking the account to be aggregated corresponding to the maximum information complexity as a primary account, and taking the account to be aggregated corresponding to the non-maximum information complexity as a secondary account.
3. The method of claim 1, wherein aggregating the contact information to be aggregated in the secondary account into the contact information to be aggregated in the primary account comprises:
and sequentially selecting a specified number of slave account numbers from the slave account number sequence to correspond to the primary account number in the primary account number sequence, and aggregating the information of the contact persons to be aggregated of the slave account numbers into the information of the contact persons to be aggregated of the corresponding primary account number.
4. The method according to any one of claims 1 to 3, wherein the obtaining of the information of the contact to be aggregated in the account to be aggregated includes:
acquiring address book information in the account participating in aggregation;
detecting whether contact person information belonging to the same contact person exists in each address book information;
taking the contact information belonging to the same contact as the contact information to be aggregated;
and taking the account corresponding to the contact information belonging to the same contact as the account to be aggregated.
5. The method according to claim 4, wherein the detecting whether there is contact information belonging to the same contact in the address book information of each account to be aggregated includes:
calculating the similarity of the field information in the designated field between the contact information in one account to be aggregated and the contact information in other accounts to be aggregated;
and taking the contact information with the similarity exceeding a preset similarity threshold as the contact information belonging to the same contact.
6. A contact information processing apparatus, comprising:
the contact information acquiring module is used for acquiring the information of the contact to be aggregated in the account to be aggregated, wherein the information of the contact to be aggregated belongs to the same contact;
the primary account number determining module is used for determining corresponding primary account numbers and corresponding secondary account numbers from the account numbers to be aggregated according to the information of the contact persons to be aggregated;
the information aggregation module is used for aggregating the information of the contact persons to be aggregated in the secondary account into the information of the contact persons to be aggregated in the primary account;
the primary account number determining module is also used for selecting an account number to be aggregated from account numbers to be aggregated with read-write permission as a corresponding primary account number according to the information of the contact person to be aggregated; or,
the primary account number determining module is further used for calculating the information complexity of the information of the contact person to be aggregated in the corresponding account number to be aggregated according to the information of the contact person to be aggregated; determining corresponding primary account and secondary account from the accounts to be aggregated according to the information complexity; or,
the contact person information acquisition module is further used for acquiring a first number of the accounts to be aggregated;
the primary account number determining module is further used for determining a second number of primary account numbers according to the first number of the account numbers to be aggregated; and selecting a second number of primary accounts from the accounts to be aggregated according to the information of the contact persons to be aggregated, and taking the unselected accounts to be aggregated as secondary accounts.
7. The contact information processing apparatus according to claim 6,
the primary account number determining module is further configured to use the account number to be aggregated corresponding to the largest information complexity as a primary account number, and use the account number to be aggregated corresponding to the non-largest information complexity as a secondary account number.
8. The contact information processing apparatus according to claim 6,
the information aggregation module is further used for sequentially selecting a specified number of slave account numbers from the slave account number sequence to correspond to the primary account number in the primary account number sequence, and aggregating the information of the contact persons to be aggregated of the slave account numbers into the information of the contact persons to be aggregated of the corresponding primary account number.
9. An electronic device comprising a memory and a processor, the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of the contact information processing method according to any one of claims 1 to 5.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the contact information processing method according to any one of claims 1 to 5.
CN201810239702.3A 2018-03-22 2018-03-22 Contact person information processing method and device, electronic equipment and storage medium Expired - Fee Related CN108513005B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810239702.3A CN108513005B (en) 2018-03-22 2018-03-22 Contact person information processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810239702.3A CN108513005B (en) 2018-03-22 2018-03-22 Contact person information processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108513005A CN108513005A (en) 2018-09-07
CN108513005B true CN108513005B (en) 2020-08-18

Family

ID=63378050

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810239702.3A Expired - Fee Related CN108513005B (en) 2018-03-22 2018-03-22 Contact person information processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108513005B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110505333A (en) * 2019-01-30 2019-11-26 上海传英信息技术有限公司 The management method and device of address list
CN110311891B (en) * 2019-05-23 2023-04-18 平安普惠企业管理有限公司 Account management method and device, computer equipment and storage medium
CN114218541A (en) * 2021-12-16 2022-03-22 中国建设银行股份有限公司 User data merging method and related device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572105A (en) * 2012-01-16 2012-07-11 中兴通讯股份有限公司 Contact information processing method and terminal
CN102905002A (en) * 2012-10-31 2013-01-30 广东欧珀移动通信有限公司 A method and system for automatically merging contact entries
CN106559555A (en) * 2015-09-30 2017-04-05 北京奇虎科技有限公司 A kind of construction method of address list, device
CN106921777A (en) * 2017-03-07 2017-07-04 百度在线网络技术(北京)有限公司 Information processing method and device, computer equipment and computer-readable medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9600804B2 (en) * 2011-10-20 2017-03-21 Microsoft Technology Licensing, Llc Providing an aggregate display of contact data from internal and external sources
CN102932414A (en) * 2012-09-26 2013-02-13 中国科学院计算技术研究所 Method and system for combining address book and social network
CN103024698B (en) * 2013-01-06 2018-09-25 中兴通讯股份有限公司 A kind of method, system and the mobile terminal of information that integrating each contact person
JP2018522479A (en) * 2015-06-24 2018-08-09 ボネックス リミテッドVonex Ltd System and method for establishing communication over multiple communication platforms
CN104994236A (en) * 2015-07-13 2015-10-21 魅族科技(中国)有限公司 Information processing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572105A (en) * 2012-01-16 2012-07-11 中兴通讯股份有限公司 Contact information processing method and terminal
CN102905002A (en) * 2012-10-31 2013-01-30 广东欧珀移动通信有限公司 A method and system for automatically merging contact entries
CN106559555A (en) * 2015-09-30 2017-04-05 北京奇虎科技有限公司 A kind of construction method of address list, device
CN106921777A (en) * 2017-03-07 2017-07-04 百度在线网络技术(北京)有限公司 Information processing method and device, computer equipment and computer-readable medium

Also Published As

Publication number Publication date
CN108513005A (en) 2018-09-07

Similar Documents

Publication Publication Date Title
CN107562835B (en) File searching method and device, mobile terminal and computer readable storage medium
KR102274043B1 (en) Method and electronic device for displaying contact
WO2018153100A1 (en) Method for displaying collected object, and terminal
US10091643B2 (en) Method and apparatus for displaying associated information in electronic device
CN104852885B (en) Method, device and system for verifying verification code
CN108156508B (en) Barrage information processing method and device, mobile terminal, server and system
CN111984165A (en) Method and device for displaying message and terminal equipment
CN109445917B (en) Application processing method and apparatus, electronic device, computer-readable storage medium
WO2015043163A1 (en) Method and apparatus for inputting account information
CN110767950B (en) Charging method, device, terminal device and computer-readable storage medium
CN108513005B (en) Contact person information processing method and device, electronic equipment and storage medium
CN106951492A (en) File search method, device and electronic equipment
CN108737618A (en) Information processing method and device, electronic equipment and computer readable storage medium
CN107632985B (en) Webpage preloading method and device
WO2019079958A1 (en) File management method and apparatus, mobile terminal and computer readable storage medium
CN108038193A (en) Game application searching method and device, electronic equipment and computer-readable storage medium
CN108256466B (en) Data processing method and device, electronic equipment and computer readable storage medium
CN108512746A (en) Information processing method, device, mobile terminal, and computer-readable storage medium
CN108494851B (en) Application program recommended method, device and server
CN107708092B (en) Flow information updating method and device, terminal and computer readable storage medium
CN106934003B (en) File processing method and mobile terminal
WO2019056391A1 (en) Information processing method and apparatus, mobile terminal, and computer readable storage medium
US10528655B2 (en) Method and device for inputting information into an entry field of an electronic communication
CN103457832A (en) Information management method, device and terminal
CN107332996A (en) Screen lock control method, device, computer storage medium and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

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

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

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

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

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

Granted publication date: 20200818