[go: up one dir, main page]

CN102957778A - Method and device for searching contact information - Google Patents

Method and device for searching contact information Download PDF

Info

Publication number
CN102957778A
CN102957778A CN2011102358703A CN201110235870A CN102957778A CN 102957778 A CN102957778 A CN 102957778A CN 2011102358703 A CN2011102358703 A CN 2011102358703A CN 201110235870 A CN201110235870 A CN 201110235870A CN 102957778 A CN102957778 A CN 102957778A
Authority
CN
China
Prior art keywords
user
client
contact list
contact information
target user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2011102358703A
Other languages
Chinese (zh)
Other versions
CN102957778B (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.)
SAM ELECTRICAL EQUIPMENTS (NANTONG) CO Ltd
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201110235870.3A priority Critical patent/CN102957778B/en
Priority to PCT/CN2011/082621 priority patent/WO2012155480A1/en
Publication of CN102957778A publication Critical patent/CN102957778A/en
Application granted granted Critical
Publication of CN102957778B publication Critical patent/CN102957778B/en
Active 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/2753Devices 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 providing data content
    • H04M1/2757Devices 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 providing data content by data transmission, e.g. downloading

Landscapes

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

Abstract

The invention discloses a method and a device for searching contact information. The method includes: allowing a sender client to send a request message, carrying user identity of a target user, to a client of the user in a contact list so as to request for contact information of the target user; allowing a receiver client to receive the message and to search presence of the target user in a contact list of the receiver client according to the user identifier; if presence is negative, allowing the receiver client to send the request message to a client of the user in the contact list of the receiver client so as to request for acquiring contact information of the target user. When the contact information of the target user is directly inaccessible, the method and device allow a user to search contacts so as to acquire the contact information of the target user.

Description

一种搜索联系人信息的方法及装置A method and device for searching contact information

技术领域 technical field

本发明涉及通信技术领域,尤其涉及一种搜索联系人信息的方法及装置。The invention relates to the field of communication technology, in particular to a method and device for searching contact information.

背景技术 Background technique

六度分割理论指出,每个人与任何一个陌生人之间所间隔的人不会超过六个,也就是说,最多通过六个人某个人就能够认识任何一个陌生人,从而可以构筑一个庞大的社交网络。The theory of six degrees of separation points out that there are no more than six people between each person and any stranger, that is to say, a person can know any stranger through at most six people, so that a huge social network can be built. network.

实际中,在目前的基于通信终端地址本的业务中,用户A只能获取终端地址本中的联系人信息,无法获取到终端地址本以外的联系人信息,例如,用户A想获取终端地址本以外的用户C的联系信息,即使用户C是用户A终端地址本中的用户B的一个联系人,用户A也无法获知用户C的联系信息,无法实现通过用户B获取用户C的联系信息,因此,不能扩展用户A的社交网络,降低了用户体验。In practice, in the current business based on the address book of the communication terminal, user A can only obtain the contact information in the terminal address book, and cannot obtain contact information other than the terminal address book. For example, user A wants to obtain the terminal address book other than user C's contact information, even if user C is a contact of user B in user A's terminal address book, user A cannot obtain user C's contact information, and cannot obtain user C's contact information through user B, so , the social network of user A cannot be expanded, which reduces the user experience.

发明内容 Contents of the invention

本发明要解决的技术问题是提供一种搜索联系人信息的方法及装置,能够实现通过已有联系人获取目标用户的联系信息。The technical problem to be solved by the present invention is to provide a method and device for searching contact information, which can obtain the contact information of a target user through existing contacts.

为了解决上述技术问题,本发明的一种搜索联系人信息的方法,包括:In order to solve the above technical problems, a method for searching contact information of the present invention includes:

发送方客户端向联系人列表中用户的客户端发送请求消息,在所述请求消息中携带目标用户的用户标识,请求获取所述目标用户的联系信息;The sender client sends a request message to the client of the user in the contact list, the request message carries the user identifier of the target user, and requests to obtain the contact information of the target user;

接收方客户端接收到所述请求消息后,根据所述用户标识在自身的联系人列表中查询是否存在所述目标用户,如果不存在,则向自身的联系人列表中用户的客户端发送所述请求消息,请求获取所述目标用户的联系信息。After receiving the request message, the receiver client checks whether the target user exists in its own contact list according to the user ID, and if not, sends the target user to the client of the user in its own contact list. The above request message, requesting to obtain the contact information of the target user.

进一步地,还包括:Further, it also includes:

所述接收方客户端如果在自身的联系人列表中查询到所述目标用户,则将所述目标用户的联系信息作为返回结果,或者将自身的联系信息或用户标识作为返回结果,并发送所述返回结果。If the recipient client finds the target user in its own contact list, it will use the target user's contact information as a return result, or use its own contact information or user ID as a return result, and send the Describe the returned result.

进一步地,所述接收方客户端包括中间级接收方客户端和末级接收方客户端;Further, the receiver client includes an intermediate receiver client and a final receiver client;

所述末级接收方客户端在查询到所述目标用户后,将所述返回结果发送给上一级的接收方客户端;After the last-level receiver client has inquired about the target user, it sends the return result to the upper-level receiver client;

所述中间级接收方客户端在接收到所述返回结果后,将所述返回结果发送给上一级的接收方客户端或所述发送方客户端。After receiving the return result, the intermediate-level receiver client sends the return result to the upper-level receiver client or the sender client.

进一步地,还包括:Further, it also includes:

所述中间级接收方客户端在接收到的返回结果中包含下级客户端的联系信息或用户标识时,在所述返回结果中加入自身的联系信息或用户标识,将所述返回结果发送给上一级的接收方客户端或所述发送方客户端,使所述接收方客户端得到获取所述目标用户的联系信息的路径。When the received return result contains the contact information or user identification of the lower-level client, the intermediate receiver client adds its own contact information or user identification in the return result, and sends the return result to the previous The receiver client at the level or the sender client, so that the receiver client obtains a path for obtaining the contact information of the target user.

进一步地,还包括:Further, it also includes:

所述发送方客户端在向联系人列表中用户的客户端发送所述请求消息时,还对联系人列表中用户的客户端启动计数器并赋计数初值;When the sender client sends the request message to the client of the user in the contact list, it also starts a counter and assigns an initial value to the client of the user in the contact list;

所述接收方客户端在自身的联系人列表中未查询到所述目标用户时,对计数器进行一次计数,在计数值达到深度阈值时,不向联系人列表中用户的客户端发送所述请求消息。When the receiving client does not find the target user in its own contact list, it counts the counter once, and when the count value reaches the depth threshold, it does not send the request to the client of the user in the contact list information.

进一步地,所述接收方客户端在计数值未达到所述深度阈值时,向自身的联系人列表中用户的客户端发送所述请求消息,并对自身的联系人列表中用户的客户端启动计数器,将本地计数器的计数值作为计数初值赋值给自身的联系人列表中用户的客户端。Further, when the count value does not reach the depth threshold, the receiver client sends the request message to the client of the user in its own contact list, and initiates the request to the client of the user in its own contact list The counter assigns the count value of the local counter as an initial count value to the client of the user in its own contact list.

进一步地,所述联系人列表为本地存储的联系人列表和/或在网络服务器上存储的联系人列表。Further, the contact list is a locally stored contact list and/or a contact list stored on a network server.

进一步地,一种搜索联系人信息的装置,其特征在于,包括:发送单元,其中:Further, a device for searching contact information is characterized by comprising: a sending unit, wherein:

所述发送单元,用于向联系人列表中用户的客户端发送请求消息,在所述请求消息中携带目标用户的用户标识,请求获取所述目标用户的联系信息。The sending unit is configured to send a request message to the client of the user in the contact list, the request message carries the user identifier of the target user, and requests to obtain the contact information of the target user.

进一步地,还包括接收单元和查询单元,其中:Further, it also includes a receiving unit and a query unit, wherein:

所述接收单元,用于接收上级客户端发送的请求消息;The receiving unit is configured to receive a request message sent by a superior client;

所述查询单元,用于在所述接收单元接收到所述请求消息后,根据所述用户标识在联系人列表中查询是否存在所述目标用户,如果不存在,则调用所述发送单元向下级客户端发送所述请求消息。The query unit is configured to, after the receiving unit receives the request message, query whether the target user exists in the contact list according to the user identifier, and if not, call the sending unit to send a request to the next level The client sends the request message.

进一步地,所述查询单元,还用于在联系人列表中查询到所述目标用户时,将所述目标用户的联系信息作为返回结果,或者将自身的联系信息或用户标识作为返回结果,并调用所述发送单元发送所述返回结果。Further, the query unit is further configured to use the target user's contact information as a return result, or use its own contact information or user identification as a return result when the target user is found in the contact list, and calling the sending unit to send the returned result.

进一步地,所述接收单元,还用于接收下级客户端的返回结果,在所述返回结果中包含下级客户端的联系信息或用户标识时,在所述返回结果中加入自身的联系信息或用户标识,通过所述发送单元将所述返回结果发送给上一级的客户端。Further, the receiving unit is also configured to receive a return result from a lower-level client, and add its own contact information or user ID to the return result when the return result contains the contact information or user ID of the lower-level client, Send the returned result to the upper-level client through the sending unit.

进一步地,还包括计数器控制单元,其中:Further, it also includes a counter control unit, wherein:

所述计数器控制单元,用于在所述发送单元向联系人列表中用户的客户端发送所述请求消息时,对联系人列表中用户的客户端启动计数器并赋计数初值;在所述查询单元在联系人列表中未查询到所述目标用户时,对计数器进行一次计数,在计数值达到深度阈值时,终止所述发送单元向联系人列表中用户的客户端发送所述请求消息。The counter control unit is configured to start a counter and assign an initial value to the client of the user in the contact list when the sending unit sends the request message to the client of the user in the contact list; When the target user is not found in the contact list, the unit counts the counter once, and when the count value reaches a depth threshold, the sending unit stops sending the request message to the client of the user in the contact list.

综上所述,本发明在用户无法直接获取目标用户联系信息时,可以通过联系人搜索并获取目标用户的联系信息。To sum up, in the present invention, when the user cannot directly obtain the contact information of the target user, the contact information of the target user can be searched and obtained through contacts.

附图说明 Description of drawings

图1是本发明的搜索联系人信息的方法的流程图;Fig. 1 is the flowchart of the method for searching contact information of the present invention;

图2是本发明的获取目标用户其他联系信息的实施例流程图;Fig. 2 is the flow chart of the embodiment of obtaining other contact information of the target user of the present invention;

图3是本发明的搜索并共享目标用户联系信息的实施例流程图;Fig. 3 is the flow chart of the embodiment of searching and sharing target user contact information of the present invention;

图4是本发明的搜索联系人信息的装置的架构图。FIG. 4 is a structural diagram of a device for searching contact information according to the present invention.

具体实施方式 Detailed ways

下文中将参考附图并结合实施例来详细说明本实施方式。需要说明的是,在不冲突的情况下,本实施方式中的实施例及实施例中的特征可以相互组合。Hereinafter, this embodiment will be described in detail with reference to the drawings and examples. It should be noted that, in the case of no conflict, the embodiments in this implementation manner and the features in the embodiments can be combined with each other.

图1是本实施方式的搜索联系人信息的方法,包括:FIG. 1 is a method for searching contact information in this embodiment, including:

步骤S101:发送方客户端向联系人列表中的用户的客户端发送请求消息,在该请求消息中携带目标用户的用户标识,请求获取目标用户的联系信息;Step S101: the sender client sends a request message to the client of the user in the contact list, the request message carries the user identifier of the target user, and requests to obtain the contact information of the target user;

例如,用户A要获取目标用户X的联系信息,联系信息包括:电话号码、电子邮件地址和网络ID(如QQ号码)等,而用户X并不在用户A的联系人列表或好友列表中,那么用户A可以通过用户A的联系人列表中的用户来搜索用户X。用户A的客户端向其联系人列表中的用户的客户端发送请求消息请求获取目标用户X的联系信息。For example, user A wants to obtain the contact information of target user X, the contact information includes: phone number, email address and network ID (such as QQ number), etc., and user X is not in user A's contact list or friend list, then User A may search for User X through the users in User A's contact list. The client of user A sends a request message to the client of users in its contact list to request to obtain the contact information of target user X.

联系人列表可以是用户A的客户端本地存储的联系人,也可以是用户A存放在网络上的联系人,比如,联系人的电话号码通常存储在客户端本地,而及时通信的好友列表、社交网络的好友和Email的常用联系人信息等则经常存放在网络服务器中。The contact list can be the contacts stored locally by user A's client, or the contacts stored by user A on the network. For example, the phone numbers of the contacts are usually stored locally on the client, while the friend list for timely communication, The friends of social network and the common contact information of Email are often stored in the network server.

假设用户A的本地和/或网络中的联系人列表中有用户B、C和D,则用户A的客户端分别向用户B、C和D的客户端发送请求消息,请求获取用户X的联系信息,该请求消息中携带用户X的用户标识,用户标识可以是用户的姓名、昵称和网络用户名等,也可以增加用户的地域信息(如归属地信息),以便更加准确地定位目标用户。Assuming that there are users B, C and D in the contact list of user A's local and/or network, the client of user A sends a request message to the client of user B, C and D respectively, requesting to obtain the contact of user X Information, the request message carries the user identification of user X, and the user identification can be the user's name, nickname and network user name, etc., and the user's geographical information (such as attribution information) can also be added to more accurately locate the target user.

发送方客户端可以根据自身的处理能力和网络环境,同时或分批地向联系人列表中的用户的客户端发送请求消息。The sending client can send request messages to clients of users in the contact list simultaneously or in batches according to its own processing capability and network environment.

步骤S102:接收方客户端根据目标用户的用户标识查询联系人列表是否存在目标用户,如存在目标用户,则向发送方客户端返回目标用户的联系信息;否则,接收方客户端继续向联系人列表中的用户的客户端发送请求消息,请求目标用户的联系信息,并接收联系人列表中的用户的客户端的返回结果,将返回结果反馈给发送方客户端。Step S102: The receiver client checks whether the target user exists in the contact list according to the user ID of the target user. If there is a target user, it returns the contact information of the target user to the sender client; otherwise, the receiver client continues to contact the contact The client of the user in the list sends a request message, requests the contact information of the target user, receives the returned result from the client of the user in the contact list, and feeds back the returned result to the sending client.

接收方客户端包括中间级接收方客户端和末级接收方客户端;末级接收方客户端在查询到目标用户后,将返回结果发送给上一级的接收方客户端;中间级接收方客户端在接收到返回结果后,将返回结果发送给上一级的接收方客户端或发送方客户端。The receiver client includes the intermediate receiver client and the final receiver client; after the final receiver client inquires about the target user, it sends the returned result to the upper receiver client; the intermediate receiver After receiving the returned result, the client sends the returned result to the receiver client or the sender client at the upper level.

接收方B、C和D的客户端分别查询本地和/或网络中的联系人列表中是否存在用户X,如存在,则返回用户X的联系信息,结束;否则,接收方B、C和D的客户端分别向本地和/或网络中的联系人列表中的用户的客户端继续发送请求消息,请求目标用户X的联系信息,并接收其联系人列表中的用户的客户端的返回结果,将返回结果再返回给用户A的客户端。The clients of receivers B, C and D respectively inquire whether user X exists in the contact list in the local and/or network, and if so, return the contact information of user X and end; otherwise, receivers B, C and D The client of the user in the contact list in the local and/or network respectively continues to send the request message, request the contact information of the target user X, and receive the return result of the client of the user in the contact list, and send The result is returned to the client of user A.

为了提高搜索效率,根据六度分割理论,可以限制搜索的深度,如搜索3~6级。此时发送方客户端在向接收方客户端发送搜索目标用户的请求消息时,对接收方客户端启动一个计数器并赋计数初值,接收方客户端向下一级发送搜索请求消息时,对计数器加1,并将计数值作为计数初值赋值给下一级的接收方客户端,当计数器的计数值到达限定值时,不再向下一级搜索。In order to improve the search efficiency, according to the six-degree segmentation theory, the depth of the search can be limited, such as searching for levels 3 to 6. At this time, when the sender client sends a request message for searching the target user to the receiver client, it starts a counter and assigns an initial value to the receiver client. When the receiver client sends a search request message to the next level, it The counter is incremented by 1, and the count value is assigned to the next-level receiver client as the initial value of the count. When the count value of the counter reaches the limit value, the next-level search is no longer performed.

为了保护隐私,接收方客户端可以不将搜索到的目标用户的联系信息直接返回给发送方客户端,可以返回接收方客户端自身的联系信息或用户标识,在返回自身的联系信息或用户标识的基础上也可以同时返回目标用户的用户标识。在多级搜索的场景中,中间级的接收方客户端在下一级的客户端的返回结果中加入自身的联系信息或用户标识,使发送方客户端能够获知查询到目标用户的联系信息的路径,便于发送方客户端通过获取到的路径,采用其他方式共享目标用户的联系信息。In order to protect privacy, the receiver client may not directly return the contact information of the searched target user to the sender client, but may return the receiver client's own contact information or user ID, and return its own contact information or user ID The user ID of the target user can also be returned on the basis of . In a multi-level search scenario, the receiver client at the intermediate level adds its own contact information or user ID to the results returned by the client at the next level, so that the sender client can know the path to query the contact information of the target user. It is convenient for the sender client to share the contact information of the target user in other ways through the obtained path.

实施例1:Example 1:

本实施例中,用户A登录社交网络后得知好友X离线,但用户A希望及时联系到好友X,而用户A不知道X的任何其他联系方式。In this embodiment, user A learns that friend X is offline after logging into the social network, but user A hopes to contact friend X in time, and user A does not know any other contact methods of X.

图2为本实施例中用户A联系用户X的流程图,如图2所示,包括以下步骤:Fig. 2 is the flowchart of user A contacting user X in the present embodiment, as shown in Fig. 2, comprises the following steps:

步骤201,用户A无法联系上用户X时,用户A的客户端向在线的好友的客户端(下面步骤中称为接收方客户端)发送请求消息,请求用户X的联系信息;Step 201, when user A cannot contact user X, the client of user A sends a request message to the client of an online friend (referred to as the receiver client in the following steps), requesting the contact information of user X;

步骤202,接收方客户端查询联系人列表中是否存在目标用户的其他联系方式,如存在,则向发送方客户端返回目标用户的联系信息;否则,接收方客户端继续向其联系人列表中的用户的客户端发送请求消息,获取目标用户的联系信息,并接收其联系人列表中的用户的客户端的返回结果,将返回结果再返回发送方客户端,重复该步骤,直至搜索到目标用户或达到搜索深度的限制。Step 202, the receiver client inquires whether there are other contact methods of the target user in the contact list, and if so, returns the contact information of the target user to the sender client; The user's client sends a request message, obtains the target user's contact information, and receives the returned results from the user's client in the contact list, returns the returned result to the sender's client, and repeats this step until the target user is searched Or reach the limit of search depth.

实施例2:Example 2:

在融合地址本业务中,用户A在服务器上搜索到用户X以后,向服务器申请订阅用户X的联系信息失败,在这种情况下,通过本实施方式的方法用户A可以得到用户X的联系方式。In the converged address book service, user A fails to apply for user X’s contact information from the server after searching for user X on the server. In this case, user A can obtain user X’s contact information through the method of this embodiment .

图3为本实施例的流程图,本实施例中用户A订阅用户X的流程主要包括以下步骤:FIG. 3 is a flow chart of this embodiment. In this embodiment, the process of user A subscribing to user X mainly includes the following steps:

步骤301,用户A通过客户端向服务器发起订阅目标用户X的请求;Step 301, user A initiates a request to subscribe target user X to the server through the client;

步骤302,在订阅未成功时,用户A的客户端向其联系人列表中的用户的客户端(下面步骤中简称接收方)发送请求消息,该请求消息用于请求搜索目标用户X的联系信息;Step 302, when the subscription is unsuccessful, the client of user A sends a request message to the client of the user in its contact list (referred to as the receiver in the following steps), and the request message is used to request to search for the contact information of the target user X ;

步骤303,接收方客户端查询其联系人列表是否存在目标用户,如存在目标用户,则向发送方客户端返回自身的联系信息或用户标识;否则,接收方客户端继续向其联系人列表中的用户的客户端发送搜索目标用户联系信息的请求消息,并接收其联系人列表中的用户的客户端的返回结果,在返回结果中添加自身的联系信息或用户标识,将返回结果返回给发送方客户端;Step 303, the recipient client inquires whether there is a target user in its contact list, if there is a target user, then returns its own contact information or user ID to the sender client; The user's client sends a request message to search for the target user's contact information, and receives the returned results from the user's client in the contact list, adds its own contact information or user ID to the returned results, and returns the returned results to the sender client;

如果搜索到目标用户,用户A通过返回结果中的路径发起联系人共享请求,请求共享目标用户X的联系信息。If the target user is found, user A initiates a contact sharing request through the path in the returned result, requesting to share the contact information of target user X.

例如,用户A的联系人有用户B和C,用户C订阅过用户D(即用户D是用户C的联系人),而用户D订阅过用户X。通过用户B搜索不到用户X,通过用户C这条途径找到了用户D,再通过用户D找到用户X,则用户A的客户端向用户D的客户端发起联系人共享请求,请求共享用户X的联系信息;或者用户A的客户端通过用户C的客户端共享得到用户D的联系信息,再通过用户D的客户端共享得到用户X的联系信息。For example, user A's contacts include users B and C, user C has subscribed to user D (that is, user D is a contact of user C), and user D has subscribed to user X. User X cannot be found through user B, user D is found through user C, and user X is found through user D, then user A's client initiates a contact sharing request to user D's client, requesting to share user X or the client of user A shares the contact information of user D through the client of user C, and then shares the contact information of user X through the client of user D.

图4为本实施方式搜索联系人信息的装置,包括:发送单元、接收单元、查询单元和计数器控制单元,其中:Figure 4 is a device for searching contact information in this embodiment, including: a sending unit, a receiving unit, a query unit and a counter control unit, wherein:

发送单元,用于向联系人列表中用户的客户端发送请求消息,在请求消息中携带目标用户的用户标识,请求获取目标用户的联系信息。The sending unit is configured to send a request message to the client of the user in the contact list, the request message carries the user identifier of the target user, and requests to obtain the contact information of the target user.

接收单元,用于接收上级客户端发送的请求消息;a receiving unit, configured to receive a request message sent by a superior client;

查询单元,用于在接收单元接收到请求消息后,根据用户标识在联系人列表中查询是否存在目标用户,如果不存在,则调用发送单元向下级客户端发送请求消息;在联系人列表中查询到目标用户时,将目标用户的联系信息作为返回结果,或者将自身的联系信息或用户标识作为返回结果,并调用发送单元发送返回结果。The query unit is used to query whether the target user exists in the contact list according to the user ID after the receiving unit receives the request message, and if not, call the sending unit to send the request message to the lower-level client; query in the contact list When reaching the target user, take the target user's contact information as the return result, or take the own contact information or user ID as the return result, and call the sending unit to send the return result.

接收单元,还用于接收下级客户端的返回结果,在返回结果中包含下级客户端的联系信息或用户标识时,在返回结果中加入自身的联系信息或用户标识,通过发送单元将返回结果发送给上一级的客户端。The receiving unit is also used to receive the return result of the lower-level client. When the return result contains the contact information or user identification of the lower-level client, add its own contact information or user identification in the return result, and send the return result to the upper level through the sending unit. Level 1 client.

计数器控制单元,用于在发送单元向联系人列表中用户的客户端发送请求消息时,对联系人列表中用户的客户端启动计数器并赋计数初值;在查询单元在联系人列表中未查询到目标用户时,对计数器进行一次计数,在计数值达到深度阈值时,终止发送单元向联系人列表中用户的客户端发送请求消息。The counter control unit is used to start the counter and assign an initial value to the client of the user in the contact list when the sending unit sends a request message to the client of the user in the contact list; the query unit does not query in the contact list When the target user is reached, the counter is counted once, and when the count value reaches the depth threshold, the sending unit is terminated to send the request message to the client of the user in the contact list.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (12)

1.一种搜索联系人信息的方法,其特征在于,包括:1. A method for searching contact information, comprising: 发送方客户端向联系人列表中用户的客户端发送请求消息,在所述请求消息中携带目标用户的用户标识,请求获取所述目标用户的联系信息;The sender client sends a request message to the client of the user in the contact list, the request message carries the user identifier of the target user, and requests to obtain the contact information of the target user; 接收方客户端接收到所述请求消息后,根据所述用户标识在自身的联系人列表中查询是否存在所述目标用户,如果不存在,则向自身的联系人列表中用户的客户端发送所述请求消息,请求获取所述目标用户的联系信息。After receiving the request message, the receiver client checks whether the target user exists in its own contact list according to the user ID, and if not, sends the target user to the client of the user in its own contact list. The above request message, requesting to obtain the contact information of the target user. 2.如权利要求1所述的方法,其特征在于,还包括:2. The method of claim 1, further comprising: 所述接收方客户端如果在自身的联系人列表中查询到所述目标用户,则将所述目标用户的联系信息作为返回结果,或者将自身的联系信息或用户标识作为返回结果,并发送所述返回结果。If the recipient client finds the target user in its own contact list, it will use the target user's contact information as a return result, or use its own contact information or user ID as a return result, and send the Describe the returned result. 3.如权利要求2所述的方法,其特征在于:3. The method of claim 2, wherein: 所述接收方客户端包括中间级接收方客户端和末级接收方客户端;The receiver client includes an intermediate receiver client and a final receiver client; 所述末级接收方客户端在查询到所述目标用户后,将所述返回结果发送给上一级的接收方客户端;After the last-level receiver client has inquired about the target user, it sends the return result to the upper-level receiver client; 所述中间级接收方客户端在接收到所述返回结果后,将所述返回结果发送给上一级的接收方客户端或所述发送方客户端。After receiving the return result, the intermediate-level receiver client sends the return result to the upper-level receiver client or the sender client. 4.如权利要求3所述的方法,其特征在于,还包括:4. The method of claim 3, further comprising: 所述中间级接收方客户端在接收到的返回结果中包含下级客户端的联系信息或用户标识时,在所述返回结果中加入自身的联系信息或用户标识,将所述返回结果发送给上一级的接收方客户端或所述发送方客户端,使所述接收方客户端得到获取所述目标用户的联系信息的路径。When the received return result contains the contact information or user identification of the lower-level client, the intermediate receiver client adds its own contact information or user identification in the return result, and sends the return result to the previous The receiver client at the level or the sender client, so that the receiver client obtains a path for obtaining the contact information of the target user. 5.如权利要求3所述的方法,其特征在于,还包括:5. The method of claim 3, further comprising: 所述发送方客户端在向联系人列表中用户的客户端发送所述请求消息时,还对联系人列表中用户的客户端启动计数器并赋计数初值;When the sender client sends the request message to the client of the user in the contact list, it also starts a counter and assigns an initial value to the client of the user in the contact list; 所述接收方客户端在自身的联系人列表中未查询到所述目标用户时,对计数器进行一次计数,在计数值达到深度阈值时,不向联系人列表中用户的客户端发送所述请求消息。When the receiving client does not find the target user in its own contact list, it counts the counter once, and when the count value reaches the depth threshold, it does not send the request to the client of the user in the contact list information. 6.如权利要求5所述的方法,其特征在于:6. The method of claim 5, wherein: 所述接收方客户端在计数值未达到所述深度阈值时,向自身的联系人列表中用户的客户端发送所述请求消息,并对自身的联系人列表中用户的客户端启动计数器,将本地计数器的计数值作为计数初值赋值给自身的联系人列表中用户的客户端。When the count value does not reach the depth threshold, the receiver client sends the request message to the client of the user in its own contact list, and starts a counter for the client of the user in its own contact list, and The counting value of the local counter is assigned to the client terminal of the user in its own contact list as the counting initial value. 7.如权利要求1所述的方法,其特征在于:所述联系人列表为本地存储的联系人列表和/或在网络服务器上存储的联系人列表。7. The method according to claim 1, wherein the contact list is a locally stored contact list and/or a contact list stored on a network server. 8.一种搜索联系人信息的装置,其特征在于,包括:发送单元,其中:8. A device for searching contact information, characterized in that it comprises: a sending unit, wherein: 所述发送单元,用于向联系人列表中用户的客户端发送请求消息,在所述请求消息中携带目标用户的用户标识,请求获取所述目标用户的联系信息。The sending unit is configured to send a request message to the client of the user in the contact list, the request message carries the user identifier of the target user, and requests to obtain the contact information of the target user. 9.如权利要求8所述的装置,其特征在于,还包括接收单元和查询单元,其中:9. The device according to claim 8, further comprising a receiving unit and a query unit, wherein: 所述接收单元,用于接收上级客户端发送的请求消息;The receiving unit is configured to receive a request message sent by a superior client; 所述查询单元,用于在所述接收单元接收到所述请求消息后,根据所述用户标识在联系人列表中查询是否存在所述目标用户,如果不存在,则调用所述发送单元向下级客户端发送所述请求消息。The query unit is configured to, after the receiving unit receives the request message, query whether the target user exists in the contact list according to the user identifier, and if not, call the sending unit to send a request to the next level The client sends the request message. 10.如权利要求9所述的装置,其特征在于:10. The apparatus of claim 9, wherein: 所述查询单元,还用于在联系人列表中查询到所述目标用户时,将所述目标用户的联系信息作为返回结果,或者将自身的联系信息或用户标识作为返回结果,并调用所述发送单元发送所述返回结果。The query unit is further configured to use the contact information of the target user as a return result, or use its own contact information or user identification as a return result when the target user is found in the contact list, and call the The sending unit sends the returned result. 11.如权利要求10所述的装置,其特征在于:11. The apparatus of claim 10, wherein: 所述接收单元,还用于接收下级客户端的返回结果,在所述返回结果中包含下级客户端的联系信息或用户标识时,在所述返回结果中加入自身的联系信息或用户标识,通过所述发送单元将所述返回结果发送给上一级的客户端。The receiving unit is also used to receive the return result of the lower-level client, and when the return result contains the contact information or user identification of the lower-level client, add its own contact information or user identification in the return result, through the The sending unit sends the returned result to the upper-level client. 12.如权利要求10所述的装置,其特征在于,还包括计数器控制单元,其中:12. The apparatus of claim 10, further comprising a counter control unit, wherein: 所述计数器控制单元,用于在所述发送单元向联系人列表中用户的客户端发送所述请求消息时,对联系人列表中用户的客户端启动计数器并赋计数初值;在所述查询单元在联系人列表中未查询到所述目标用户时,对计数器进行一次计数,在计数值达到深度阈值时,终止所述发送单元向联系人列表中用户的客户端发送所述请求消息。The counter control unit is configured to start a counter and assign an initial value to the client of the user in the contact list when the sending unit sends the request message to the client of the user in the contact list; When the target user is not found in the contact list, the unit counts the counter once, and when the count value reaches a depth threshold, the sending unit stops sending the request message to the client of the user in the contact list.
CN201110235870.3A 2011-08-17 2011-08-17 A kind of method and device searching for associated person information Active CN102957778B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201110235870.3A CN102957778B (en) 2011-08-17 2011-08-17 A kind of method and device searching for associated person information
PCT/CN2011/082621 WO2012155480A1 (en) 2011-08-17 2011-11-22 Method and device for searching contact information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110235870.3A CN102957778B (en) 2011-08-17 2011-08-17 A kind of method and device searching for associated person information

Publications (2)

Publication Number Publication Date
CN102957778A true CN102957778A (en) 2013-03-06
CN102957778B CN102957778B (en) 2016-08-03

Family

ID=47176182

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110235870.3A Active CN102957778B (en) 2011-08-17 2011-08-17 A kind of method and device searching for associated person information

Country Status (2)

Country Link
CN (1) CN102957778B (en)
WO (1) WO2012155480A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916469A (en) * 2014-03-26 2014-07-09 北京奇虎科技有限公司 Method for acquiring contact person information, client end and server
CN104156379A (en) * 2014-01-14 2014-11-19 深圳市亿芯通讯有限公司 Contact associative retrieval system and method
CN105515939A (en) * 2014-10-20 2016-04-20 阿里巴巴集团控股有限公司 Method and apparatus for providing user information in instant messaging application
US9871884B2 (en) 2014-09-30 2018-01-16 Xiaomi Inc. Method and device for transferring messages
CN109542937A (en) * 2018-11-06 2019-03-29 上海掌门科技有限公司 It is a kind of for searching for the method and apparatus of user contact infonnation

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060166686A1 (en) * 2005-01-27 2006-07-27 Samsung Electronics Co., Ltd. Method for sharing data using SMS
CN101616503A (en) * 2009-08-03 2009-12-30 中兴通讯股份有限公司 A kind of method of shared telephone number information and device
CN101702837A (en) * 2009-11-18 2010-05-05 中兴通讯股份有限公司 Message book sharing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860588A (en) * 2010-06-23 2010-10-13 中兴通讯股份有限公司 Method and device for acquiring address book of mobile communication terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060166686A1 (en) * 2005-01-27 2006-07-27 Samsung Electronics Co., Ltd. Method for sharing data using SMS
CN101616503A (en) * 2009-08-03 2009-12-30 中兴通讯股份有限公司 A kind of method of shared telephone number information and device
CN101702837A (en) * 2009-11-18 2010-05-05 中兴通讯股份有限公司 Message book sharing method and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104156379A (en) * 2014-01-14 2014-11-19 深圳市亿芯通讯有限公司 Contact associative retrieval system and method
CN103916469A (en) * 2014-03-26 2014-07-09 北京奇虎科技有限公司 Method for acquiring contact person information, client end and server
US9871884B2 (en) 2014-09-30 2018-01-16 Xiaomi Inc. Method and device for transferring messages
CN105515939A (en) * 2014-10-20 2016-04-20 阿里巴巴集团控股有限公司 Method and apparatus for providing user information in instant messaging application
US10320720B2 (en) 2014-10-20 2019-06-11 Alibaba Group Holding Limited Method and device for providing user information in an instant messaging application
CN105515939B (en) * 2014-10-20 2019-10-29 阿里巴巴集团控股有限公司 The method and device of user information is provided in instant messaging application
CN109542937A (en) * 2018-11-06 2019-03-29 上海掌门科技有限公司 It is a kind of for searching for the method and apparatus of user contact infonnation

Also Published As

Publication number Publication date
CN102957778B (en) 2016-08-03
WO2012155480A1 (en) 2012-11-22

Similar Documents

Publication Publication Date Title
US9021028B2 (en) Systems and methods for spam filtering
CN113159910B (en) Method, device and system for notification
US20110034182A1 (en) Geographic messaging using location-identified access points
CN105228140B (en) A kind of data access method and device
CN102957778B (en) A kind of method and device searching for associated person information
CN103581111B (en) A kind of communication means and system
CN103516581B (en) Add the method and device of instant messaging good friend
US20120297031A1 (en) Anonymous Signalling
WO2016086817A1 (en) Rcs-based group message processing method and device
CN103380634A (en) Method and device for sending data
US20120296988A1 (en) Email spam elimination using per-contact address
KR20080114747A (en) Method and apparatus for providing geographic location information associated with a mobile instant message user
CN102801691A (en) Method and device for acquiring contact information
WO2022001736A1 (en) Mail processing method and apparatus, and device and medium
WO2014108913A1 (en) Choosing a service to provide a message
WO2013075430A1 (en) Information filtering method, and method, device, and system for processing forwarded information
CN102724140B (en) Instant messaging good friend's addition means and device
CN107800612B (en) User matching method and device, storage medium and computer equipment
JP2015046944A (en) Sms message transmission substitution device and program
CN101662486B (en) Method and system for subscribing information
WO2012129832A1 (en) Method and device for acquiring contact information
CN101193348A (en) A method, device and system for subscribing to regular short messages
WO2016206477A1 (en) Interaction method, apparatus, and system for unstructured supplementary services data, and computer readable storage medium
US20160156728A1 (en) Method and apparatus for accessing ott application and pushing message by server
WO2011153772A1 (en) Method and system for obtaining multiple instant information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201127

Address after: No.36, Chenggang Road, Gangzha Economic Development Zone, Nantong City, Jiangsu Province, 226001

Patentee after: SAM ELECTRICAL EQUIPMENTS (NANTONG) Co.,Ltd.

Address before: 518057 Nanshan District Guangdong high tech Industrial Park, South Road, science and technology, ZTE building, Ministry of Justice

Patentee before: ZTE Corp.