CN101222446B - A method and system for searching and adding friends in an instant messaging system - Google Patents
A method and system for searching and adding friends in an instant messaging system Download PDFInfo
- Publication number
- CN101222446B CN101222446B CN2007103016514A CN200710301651A CN101222446B CN 101222446 B CN101222446 B CN 101222446B CN 2007103016514 A CN2007103016514 A CN 2007103016514A CN 200710301651 A CN200710301651 A CN 200710301651A CN 101222446 B CN101222446 B CN 101222446B
- Authority
- CN
- China
- Prior art keywords
- instant messaging
- messaging user
- user
- module
- friend
- 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.)
- Active
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
技术领域technical field
本发明涉及互联网技术,特别涉及一种即时通信(IM:Instant messaging)系统查找、添加好友的方法及系统。 The invention relates to Internet technology, in particular to a method and system for searching and adding friends in an instant messaging (IM: Instant messaging) system. the
背景技术Background technique
IM工具如QQ、MSN和UC等作为使用频率比较普及的网络工具,已成为目前最流行的互联网通讯工具。IM可以通过点对点的技术来实现互联网上的即时沟通,甚至是几个朋友的群聊。 IM tools such as QQ, MSN and UC, as frequently used network tools, have become the most popular Internet communication tools. IM can realize instant communication on the Internet through peer-to-peer technology, even a group chat among several friends. the
目前,在IM用户使用IM工具如QQ、MSN和UC时,可以允许IM用户先填写一些个人资料信息。现有技术在IM用户查找好友时,一般先要求IM用户输入一些有关好友的信息,比如昵称、好友所在地、好友的性别或者年龄等,这样,服务器就可以根据IM用户输入的一些有关好友的信息来查找该信息对应的用户,并将查找的结果显示。但是,现有技术这种通过输入一些有关好友的信息来查找好友的方法,必须在每次查找好友时,输入一些有关好友的信息,这样,就会降低IM用户的体验度。 Currently, when an IM user uses IM tools such as QQ, MSN and UC, the IM user may be allowed to fill in some personal profile information first. In the prior art, when an IM user searches for a friend, the IM user is generally first required to input some information about the friend, such as a nickname, the location of the friend, the gender or age of the friend, etc. to find the user corresponding to the information, and display the search result. However, in the prior art method of searching for friends by inputting some information about friends, it is necessary to input some information about friends when searching for friends, which will reduce the experience of IM users. the
发明内容Contents of the invention
本发明实施例提供一种即时通信系统查找、添加好友的方法及相应的系统,能够保证IM用户方便、快捷地搜索到自己的好友,提高IM用户的体验度。 Embodiments of the present invention provide a method for searching and adding friends in an instant messaging system and a corresponding system, which can ensure that IM users can search for their friends conveniently and quickly, and improve the experience of IM users. the
为达到上述目的,本发明的技术方案具体是这样实现的: In order to achieve the above object, the technical solution of the present invention is specifically realized in the following way:
一种即时通信系统查找好友的方法,即时通信用户输入的个人资料信息存储到用户资料数据库中;该方法包括: A method for finding friends in an instant messaging system, wherein the personal data information input by the instant messaging user is stored in a user data database; the method includes:
在第一即时通信用户欲查找第二即时通信用户时,根据所述用户资料数据库所存储的第一即时通信用户的个人资料信息,查找所述第一即时通信用户欲查找的第二即时通信用户,将查找到的第二即时通信用户的个人资料信息进行显示;When the first instant messaging user wants to find the second instant messaging user, according to the personal profile information of the first instant messaging user stored in the user profile database, find the second instant messaging user that the first instant messaging user wants to look for , displaying the found personal profile information of the second instant messaging user;
其中,所述根据用户资料数据库所存储的第一即时通信用户的个人资料信息查找所述第一即时通信用户欲查找的第二即时通信用户用于引导第一即时通信用户填写完整、真实的个人资料信息。 Wherein, the searching for the second instant messaging user that the first instant messaging user wants to find according to the personal profile information of the first instant messaging user stored in the user profile database is used to guide the first instant messaging user to fill in the complete and real personal information. profile information. the
一种即时通信系统添加好友的方法,在通过上述即时通信系统查找好友的方法查找到第二即时通信用户时,如果所述第一即时通信用户根据所述方法显示的第二即时通信用户的个人资料信息选择该第二即时通信用户作为欲添加的好友,该方法包括: A method for adding friends in an instant messaging system, when a second instant messaging user is found through the method for searching friends in the instant messaging system, if the personal information of the second instant messaging user displayed by the first instant messaging user according to the method The data information selects the second instant messaging user as the friend to be added, and the method includes:
在接收到所述第一即时通信用户与所述第二即时通信用户的关系信息时,将所述第二即时通信用户添加为所述第一即时通信用户的好友,并将所述第一即时通信用户和所述第二即时通信用户的关系信息存储到用户资料数据库中。 When receiving the relationship information between the first instant messaging user and the second instant messaging user, add the second instant messaging user as a friend of the first instant messaging user, and add the first instant messaging user The relationship information between the communication user and the second instant communication user is stored in the user profile database. the
一种即时通信系统查找好友的系统,包括:第一存储模块、好友查找模块和资料显示模块,其中,所述第一存储模块设置在所述好友查找模块中,或者,独立于所述好友查找模块; A system for searching friends in an instant messaging system, comprising: a first storage module, a friend search module and a data display module, wherein the first storage module is set in the friend search module, or is independent of the friend search module module;
所述第一存储模块用于存储即时通信用户输入的个人资料信息; The first storage module is used to store personal data information input by instant messaging users;
所述好友查找模块用于在第一即时通信用户欲查找第二即时通信用户时,根据所述第一存储模块所存储的第一即时通信用户的个人资料信息,查找所述第一即时通信用户欲查找的第二即时通信用户,并发送显示通知给所述资料显示模块; The friend searching module is used to search for the first instant messaging user according to the personal data information of the first instant messaging user stored in the first storage module when the first instant messaging user wants to find a second instant messaging user The second instant messaging user to be searched, and send a display notification to the data display module;
所述资料显示模块用于在接收到所述显示通知后,显示所述好友查找模块查找到的第二即时通信用户的个人资料信息;其中,所述根据第一存储模块所存储的第一即时通信用户的个人资料信息查找所述第一即时通信用户欲查找的第二即时通信用户用于引导第一即时通信用户填写完整、真实的个人资料信息。 The profile display module is configured to display the personal profile information of the second instant messaging user found by the friend search module after receiving the display notification; wherein, the first instant messaging user stored according to the first storage module Searching for the personal profile information of the communication user is used to guide the first instant messaging user to fill in complete and real personal profile information for the second instant messaging user that the first instant messaging user wants to find. the
一种即时通信系统添加好友的系统,包括:接收模块、添加好友模块和第二存储模块;其中, A system for adding friends in an instant messaging system, comprising: a receiving module, a module for adding friends and a second storage module; wherein,
所述接收模块用于在通过上述即时通信系统查找好友的方法查找到第二即时通信用户时,如果所述第一即时通信用户根据所述方法显示的第二即时通信用户的个人资料信息选择该第二即时通信用户作为欲添加的好友,则在接收到所述第一即时通信用户与第二即时通信用户的关系信息时,向所述添加好友模块发送添加通知; The receiving module is configured to find a second instant messaging user through the method for finding friends in the instant messaging system, if the first instant messaging user selects the second instant messaging user according to the personal profile information of the second instant messaging user displayed by the method The second instant messaging user, as a friend to be added, sends an add notification to the adding friend module when receiving the relationship information between the first instant messaging user and the second instant messaging user;
所述添加好友模块用于在接收到所述添加通知后,将所述第二即时通信用户添加为所述第一即时通信用户的好友,并向所述第二存储模块发送存储通知; The adding friend module is used to add the second instant messaging user as a friend of the first instant messaging user after receiving the adding notification, and send a storage notification to the second storage module;
所述第二存储模块用于在接收到所述存储通知后,将第一即时通信用户和所述第二即时通信用户的好友关系信息进行存储。 The second storage module is configured to store the friendship relationship information between the first instant messaging user and the second instant messaging user after receiving the storage notification. the
由上述的技术方案可见,本发明的这种即时通信系统查找和添加好友的方法及系统,根据用户在用户资料数据库所存储的个人资料信息来查找该用户欲查找的好友,与现有技术相比,本发明实施例无需要求用户输入一些好友的相关信息,进而实现方便、快捷地查找好友,提高IM用户的体验度。进一步地,本发明实施例通过第一即时通信用户设置的与欲查找的所述第二即时通信用户的关系来添加好友,有利于即时通信用户对好友信息的查询和分类。 It can be seen from the above-mentioned technical solution that the method and system for finding and adding friends in the instant messaging system of the present invention search for the friends that the user wants to find according to the personal data information stored in the user data database by the user, which is similar to that of the prior art. In contrast, the embodiment of the present invention does not require the user to input some relevant information of friends, so as to realize convenient and fast search for friends and improve the experience of IM users. Further, in the embodiment of the present invention, friends are added through the relationship set by the first instant messaging user and the second instant messaging user to be searched, which is beneficial for instant messaging users to query and classify friend information. the
附图说明Description of drawings
图1为本发明实施例中判断即时通信用户输入的资料信息是否被更改的方法流程图; Fig. 1 is the flow chart of the method for judging whether the data information input by the instant messaging user is changed in the embodiment of the present invention;
图2为本发明实施例提供的即时通信系统查找好友的方法流程图; Fig. 2 is the method flowchart that the instant messaging system provided by the embodiment of the present invention searches for friend;
图3为本发明实施例中的一种即时通信系统添加好友的方法流程图; Fig. 3 is a kind of instant messaging system in the embodiment of the present invention adds the method flowchart of friend;
图4为本发明实施例提供的一种即时通信系统查找好友的系统结构图; Fig. 4 is the system structural diagram of a kind of instant messaging system that the embodiment of the present invention provides looking for friend;
图4a为本发明实施例提供的一种即时通信系统查找好友的具体系统结构图; Fig. 4 a is a kind of instant messaging system provided by the embodiment of the present invention to find the concrete system structural diagram of friend;
图5为本发明实施例提供的一种即时通信系统添加好友的系统结构图。 Fig. 5 is a system structure diagram of adding friends in an instant messaging system provided by an embodiment of the present invention. the
具体实施方式Detailed ways
本发明实施例主要是先将将IM用户输入的个人资料信息存储到用户资料数据库中;根据所述用户资料数据库所存储的第一IM用户的个人资料信息,查找所述第一IM用户欲查找的IM用户,将查找到的IM用户的个人资料信息进行显示。这能保证IM用户方便、快捷地搜索到自己的好友,提高IM用户的体验度。 In the embodiment of the present invention, the personal data information input by the IM user is first stored in the user data database; according to the personal data information of the first IM user stored in the user data database, the first IM user to be searched is searched. IM users, display the personal profile information of the found IM users. This can ensure that the IM users can search for their friends conveniently and quickly, and improve the experience of the IM users. the
上述将IM用户输入的资料信息存储到用户资料数据库中,一般发生在IM系统查找好友的操作之前。其中,IM用户输入的个人资料信息可以包括IM用户输入的基本个人资料信息,如昵称、性别、年龄等一些基本资料信息。当然,本实施例也能保证IM用户可以输入详细个人资料信息,如毕业院校、所在省份、所在公司、兴趣爱好等一些可以被好友找到的详细资料信息。进一步地,IM用户还可以设置预设的特殊条件来保护自己输入的详细个人资料信息,如IM用户可以设置“仅好友可见”,以便保证其输入的详细个人资料信息不被陌生人浏览到。 The above-mentioned storing of the profile information input by the IM user into the user profile database generally occurs before the IM system searches for friends. Wherein, the personal data information input by the IM user may include basic personal data information input by the IM user, such as nickname, gender, age and other basic data information. Of course, this embodiment can also ensure that the IM user can input detailed personal information, such as graduate school, province, company, hobbies and other detailed information that can be found by friends. Further, the IM user can also set preset special conditions to protect the detailed personal data information input by himself, such as the IM user can set "only friends can see", so as to ensure that the detailed personal data information entered by him will not be browsed by strangers. the
本发明实施例中,上述要找的好友,可以为要找的联系人、好朋友、好友群等,具体情况需要具体分析。 In the embodiment of the present invention, the above-mentioned friend to be found may be a contact person to be found, a good friend, a friend group, etc., and specific situations need to be analyzed in detail. the
通常情况下,上述IM用户输入的资料信息可能经过一段时间后会发生改变,这样,该IM用户为了方便被其好友找到,可能会实时更新其改变的信息。本发明实施例在IM用户输入完其资料信息后,首先判断资料是否被更改过,具体实现流程参见图1,图1为本发明实施例中判断IM用户输入的资料信息是否被更改的方法流程图。如图1所示,IM用户完成个人资料信息的输入后,该流程可以包括以下步骤: Usually, the above-mentioned information input by the IM user may change after a period of time. In this way, the IM user may update the changed information in real time for the convenience of being found by his friends. In the embodiment of the present invention, after the IM user has inputted its data information, it first judges whether the data has been changed. The specific implementation process is shown in FIG. 1 . picture. As shown in Figure 1, after the IM user completes the input of personal data information, the process may include the following steps:
步骤101,判断是否触发任何一个资料输入框的内容被更改过的事件,如果是,执行步骤102;否则,流程结束。 In step 101, it is judged whether an event that the content of any data input box has been changed is triggered, and if yes, step 102 is executed; otherwise, the process ends. the
本步骤中,上述资料输入框一般为进行资料输入时启动的资料输入窗口中的资料输入框。 In this step, the above-mentioned data input box is generally a data input box in a data input window activated when data input is performed. the
步骤102,根据上述触发事件得到IM用户修改的内容和该内容所对应的资料输入框。 Step 102, obtain the content modified by the IM user and the data input box corresponding to the content according to the above trigger event. the
步骤103,利用上述得到的修改的内容更新用户资料数据库所保存的该IM用户的对应的更改的信息内容。 Step 103, using the obtained modified content to update the corresponding modified information content of the IM user stored in the user profile database. the
本步骤可以采用SQL语句中的更新(Update)命令来实现利用上述得到的修改的内容更新用户资料数据库中保存的该IM用户对应的更改的信息内容。 In this step, an update (Update) command in the SQL statement may be used to update the modified information corresponding to the IM user stored in the user profile database with the modified content obtained above. the
可见,通过上述图1所示的操作,可以帮助IM用户实时、方便、快捷的实现查找好友的目的。 It can be seen that through the operations shown in FIG. 1 above, the IM user can be helped to find friends in real time, conveniently and quickly. the
下面对本发明实施例提供的IM系统查找好友的方法流程进行详细描述。 The flow of the method for finding a friend in the IM system provided by the embodiment of the present invention will be described in detail below. the
参见图2,图2为本发明实施例提供的IM系统查找好友的方法的流程图。本实施例中,假如第一IM用户欲查找好友,则先将该第一IM用户的个人资料信息存储到用户资料数据库中。这样,如图2所示,该流程包括以下步骤: Referring to FIG. 2 , FIG. 2 is a flow chart of a method for finding friends in an IM system provided by an embodiment of the present invention. In this embodiment, if the first IM user wants to find a friend, the personal profile information of the first IM user is first stored in the user profile database. Thus, as shown in Figure 2, the process includes the following steps:
步骤201,根据用户资料数据库所存储的第一IM用户的个人资料信息,查找所述第一IM用户欲查找的IM用户。 Step 201: Search for an IM user that the first IM user wants to find according to the personal profile information of the first IM user stored in the user profile database. the
本步骤中,上述将第一IM用户提交的欲查找的好友的个人资料信息可以包括:第一IM用户的个人基本资料信息,和/或,第一IM用户的个人详细资料信息。 In this step, the personal profile information of the friend to be searched submitted by the first IM user may include: personal basic profile information of the first IM user, and/or personal detailed profile information of the first IM user. the
本实施例中,根据用户资料数据库所存储的第一IM用户的个人资料信息,查找所述第一IM用户欲查找的IM用户,可以包括: In this embodiment, searching for the IM user that the first IM user wants to find according to the personal data information of the first IM user stored in the user data database may include:
步骤2011,将第一IM用户欲查找的IM用户的属性发送给好友查找模块。 Step 2011, send the attribute of the IM user that the first IM user wants to search to the friend search module. the
本实施例中,第一IM用户欲查找的IM用户的属性可以包括:第一IM用户选择的欲查找IM用户的查找方式和第一IM用户选择的与欲查找IM用户的关系类型。 In this embodiment, the attributes of the IM user to be searched by the first IM user may include: the search mode of the IM user to be searched selected by the first IM user and the relationship type of the IM user to be searched selected by the first IM user. the
本实施例中,该查找方式可以包括:精确查找好友的方式、按条件查找好 友的方式和查找用户群的方式。事实上,上述三组方式都可以称为按条件查找好友。只不过在精确查找好友时,可能需要比较多的第一IM用户的有关信息。而第一IM用户选择的与欲查找IM用户的关系类型可以为:同学、同事、老乡、同一兴趣爱好者、工作客户、联系人、好朋友以及同一城市的联系人等。本实施以第一IM用户选择按条件查找的查找方式来查找其大学同学。 In this embodiment, the search method may include: a method of accurately searching for friends, a method of searching for friends according to conditions, and a method of searching for user groups. In fact, the above three groups of methods can all be referred to as finding friends by condition. It's just that more relevant information of the first IM user may be needed when accurately searching for friends. The type of relationship between the first IM user and the desired IM user can be: classmates, colleagues, fellow villagers, lovers of the same interest, work clients, contacts, good friends, and contacts in the same city. In this implementation, the first IM user selects a search method of searching by conditions to find his college classmates. the
步骤2012,所述好友查找模块在存储第一IM用户个人资料信息的用户资料数据库中查找对应所述属性的IM用户。 Step 2012, the friend search module searches for the IM user corresponding to the attribute in the user profile database storing the personal profile information of the first IM user. the
本实施例中,假如第一IM用户欲查找其大学同学,则好友查找模块可以根据第一IM用户在其个人资料信息中输入的毕业院校、大学专业和年级所对应的信息等来匹配对应该属性的IM用户。比如,若第一IM用户在其资料信息中输入的毕业院校为浙江大学,大学专业为工业设计以及年级为2001级一院3班,本实施可以根据该第一IM用户个人资料信息中的毕业院校即浙江大学、大学专业即工业设计和年级即2001级一院3班等来查找匹配的信息。当然,本实施例可以对第一IM用户欲查找的好友进行模糊查找,这样,第一IM用户可以将资料信息中的专业和年级设置为任意。 In this embodiment, if the first IM user wants to search for his college classmates, the friend search module can match the corresponding information according to the graduate school, university major, and grade entered by the first IM user in its personal data information. The IM user that should attribute. For example, if the graduate school entered by the first IM user in its profile information is Zhejiang University, the major of the university is industrial design, and the grade is Class 3, Class 1, Grade 2001, this implementation can be based on the personal profile information of the first IM user. The graduate school is Zhejiang University, the major of the university is industrial design, and the grade is Class 3 of the 2001 first hospital, etc. to find the matching information. Of course, this embodiment can perform a fuzzy search on the friends that the first IM user wants to search for. In this way, the first IM user can set the major and grade in the profile information to be arbitrary. the
也可以通过本实施例来查找其他类型的好友如同事、老乡或同一兴趣爱好者。比如,如果要查找同事,则服务器根据第一IM用户个人资料信息中的“公司”信息查找匹配该“公司”信息的IM用户;如果要查找老乡,则服务器根据第一IM用户个人资料信息中的“所在城市”信息查找匹配该“所在城市”信息的IM用户;如果要查找“同一兴趣爱好”的好友,则服务器根据第一IM用户个人资料信息中的“兴趣爱好”信息,查找匹配该“兴趣爱好”信息的IM用户。其具体查找的方法与上述查找同学的方法类似,只不过不需要进行同学查找时所需要的附加条件如专业和年级等。 It is also possible to find other types of friends such as colleagues, fellow villagers or lovers of the same interest through this embodiment. For example, if you want to find a colleague, the server searches for an IM user matching the "company" information according to the "company" information in the first IM user's profile information; The "city" information of the first IM user searches for IM users matching the "city" information; if one wants to find friends of the "same interest and hobby", the server searches for friends who match the "hobby" information in the first IM user's profile information. IM users of "Hobbies" information. The specific search method is similar to the above-mentioned method of searching for classmates, except that no additional conditions such as major and grade are required for searching for classmates. the
本实施例中,服务器可以使用SQL命令中的选择(select)语句筛选用户资料数据库中所存储的IM用户的资料信息,比如,在选择同一城市为广州市的好友时,可以采用select*from table where“所在城市”=“广州”的语句选择出用户资料数据库中所存储的广州市的IM用户。 In this embodiment, the server can use the select (select) statement in the SQL command to filter the data information of the IM user stored in the user data database. For example, when selecting the same city as a friend in Guangzhou, you can use select * from table The statement where "location city" = "Guangzhou" selects the IM users in Guangzhou city stored in the user profile database. the
步骤202,将查找到的IM用户的个人资料信息进行显示。
本步骤中,可以将上述查找到的IM用户输入的个人资料信息,通常为基本资料信息进行显示,还可以根据IM用户填写的个人资料信息的数量来计算该IM用户资料信息的完整度,并使用进度条进行直观表示该IM用户资料信息的完整度。其中,计算用户资料信息的完整度可以采用如下公式计算: In this step, the personal data information entered by the IM user found above, usually basic data information, can be displayed, and the completeness of the IM user data information can also be calculated according to the number of personal data information filled in by the IM user, and Use the progress bar to visually represent the completeness of the IM user profile information. Among them, the completeness of user profile information can be calculated using the following formula:
资料信息的完整度=非空资料信息的数量值/资料信息的总数量值*100% The completeness of the data information = the quantity value of the non-empty data information / the total quantity value of the data information * 100%
其中,资料信息的总数量值为已定义的资料信息的数量值,非空资料信息的数量值为IM用户已填写的个人资料信息的数量值。这样,就可以将该IM用户资料的完整度计算出来。比如,假如已定义的资料信息的总数量为30个资料输入框,而IM用户只填写了其中的18个资料输入框,这样,就可以通过进度条来表示该IM用户资料信息的完整度为60%。 Wherein, the total quantity value of the profile information is the quantity value of the defined profile information, and the quantity value of the non-empty profile information is the quantity value of the personal profile information filled by the IM user. In this way, the completeness of the IM user profile can be calculated. For example, if the total number of defined data information is 30 data input boxes, and the IM user only fills in 18 data input boxes, in this way, the progress bar can be used to indicate that the completeness of the IM user data information is 60%. the
可见,根据IM用户在用户资料数据库所存储的个人资料信息来查找该用户欲查找的好友,这样,本发明实施例无需要求IM用户输入一些好友的相关信息,进而实现方便、快捷地查找好友,提高用户的体验度。进一步地,本发明实施例通过IM用户所填写的个人资料信息来查找该用户欲查找的好友,能够引导IM用户填写完整、真实的个人资料信息,并通过资料信息的完整度来体现用户输入资料的完整性,也能吸引用户填写更全面、更完整的数据,进而丰富用户的资料数据库。 It can be seen that according to the personal data information stored by the IM user in the user data database, the friends that the user wants to find are searched. In this way, the embodiment of the present invention does not need to require the IM user to input some relevant information of the friends, so as to realize the convenient and fast search for the friends. Improve user experience. Furthermore, the embodiment of the present invention finds the friends that the user wants to find through the personal data information filled in by the IM user, can guide the IM user to fill in complete and real personal data information, and reflects the information entered by the user through the completeness of the data information. The integrity of the information can also attract users to fill in more comprehensive and complete data, thereby enriching the user's information database. the
在将上述服务器查找的结果进行显示后,通常情况下,IM用户会根据显示的结果来添加好友。下面对本发明实施例提供的一种IM系统添加好友的方法进行详细的描述。 After displaying the search result of the above server, usually, the IM user will add friends according to the displayed result. A method for adding a friend in an IM system provided by an embodiment of the present invention will be described in detail below. the
参见图3,图3为本发明实施例中的IM系统添加好友的方法流程图。本实施例中,第一IM用户可以根据图2所查找的结果选择一个好友。如图3所示,该流程在第一IM用户选择第二IM用户作为欲添加的好友时,包括以下步骤: Referring to FIG. 3 , FIG. 3 is a flowchart of a method for adding a friend in the IM system in an embodiment of the present invention. In this embodiment, the first IM user can select a friend according to the result found in FIG. 2 . As shown in Figure 3, the process includes the following steps when the first IM user selects the second IM user as a friend to be added:
步骤301,在接收到第一IM用户与第二IM用户的关系时,执行步骤302。
本实施例中,在没有接收到第一IM用户与第二IM用户的关系时,执行现有技术进行添加好友的操作。第一IM用户可能设置的与第二IM用户的关系, 可以包括:人际关系、工作关系、共同兴趣或爱好关系等。本实施例以第一IM用户与第二IM用户的关系为工作同事关系为例。 In this embodiment, when the relationship between the first IM user and the second IM user is not received, the prior art is performed to add a friend. The relationship that the first IM user may set with the second IM user may include: interpersonal relationship, work relationship, common interest or hobby relationship, etc. In this embodiment, the relationship between the first IM user and the second IM user is taken as an example of a work colleague relationship. the
步骤302,判断第二IM用户的预设置是否需要验证身份,如果是,执行步骤303,否则,执行步骤304。
步骤303,将第一IM用户与第二IM用户的关系携带在验证请求中发送给第二IM用户,若验证请求通过,执行步骤304。 In step 303, the relationship between the first IM user and the second IM user is included in the verification request and sent to the second IM user. If the verification request is passed, step 304 is executed. the
本实施例中,将第一IM用户与第二IM用户的关系携带在验证请求中发送给第二IM用户,可以方便第二IM用户对第一IM用户身份的快速辨认。 In this embodiment, the verification request includes the relationship between the first IM user and the second IM user and sends it to the second IM user, which can facilitate the second IM user to quickly identify the identity of the first IM user. the
步骤304,将第二IM用户添加为所述第一IM用户的好友,否则,结束流程。 Step 304, add the second IM user as a friend of the first IM user, otherwise, end the process. the
若在上述步骤301接收到第一IM用户与第二IM用户的关系时,则本实施例在执行步骤304后,将第一IM用户设置的与第二IM用户的关系保存在用户资料数据库中。 If the relationship between the first IM user and the second IM user is received in
由此可见,本发明实施例通过第一IM用户设置的与欲查找的所述第二IM用户的关系来添加好友,有利于IM用户对好友信息的查询和分类。 It can be seen that, in the embodiment of the present invention, a friend is added through the relationship between the first IM user and the second IM user to be searched, which is beneficial to the query and classification of friend information by the IM user. the
下面对本发明实施例提供的IM系统查找好友的系统进行详细的描述。 The following describes in detail the system for searching for friends in the IM system provided by the embodiment of the present invention. the
参见图4,图4为本发明实施例提供的一种IM系统查找好友的系统结构图。如图4所示,该系统可以包括:第一存储模块401、好友查找模块402和资料显示模块403;其中,第一存储模块401设置在好友查找模块402中,或者,独立于好友查找模块402。 Referring to FIG. 4 , FIG. 4 is a system structure diagram of an IM system for searching for friends provided by an embodiment of the present invention. As shown in Figure 4, the system may include: a
其中,第一存储模块401用于存储IM用户输入的个人资料信息。 Wherein, the
好友查找模块402用于根据第一存储模块401所存储的第一IM用户的个人资料信息,查找所述第一IM用户欲查找的IM用户,并发送显示通知给资料显示模块403。 The
资料显示模块403用于在接收到所述显示通知后,显示所述好友查找模块查找到的IM用户的个人资料信息。 The
该系统还可以包括:第一判断模块404和第一更新模块405,具体如图4a 所示。 The system may also include: a
其中,第一判断模块404用于在将IM用户输入的个人资料信息存储到所述第一存储模块401后,在所述IM用户输入的个人资料信息被更改时,发送更新通知给第一更新模块405。 Wherein, the
第一更新模块405用于在接收到所述更新通知后,利用更改后的资料信息更新第一存储模块404所存储的对应的资料信息。 The
资料显示模块403还用于通过进度条显示所述IM用户输入的个人资料信息的完整度。 The
好友查找模块402还用于在接收到所述第一IM用户选择的欲查找IM用户的属性时,根据第一存储模块401所存储的第一IM用户的个人资料信息查找对应所述属性的IM用户。 The
下面对本发明实施例提供的一种IM系统添加好友的系统结构图进行详细描述。 The following describes in detail the system structure diagram of an IM system for adding friends provided by an embodiment of the present invention. the
参见图5,图5为本发明实施例提供的一种IM系统添加好友的系统结构图。如图5所示,该系统可以包括:接收模块501,添加好友模块502和第二存储模块503。 Referring to FIG. 5 , FIG. 5 is a system structure diagram of adding friends in an IM system provided by an embodiment of the present invention. As shown in FIG. 5 , the system may include: a receiving
其中,接收模块501用于在接收到所述第一IM用户与第二IM用户的关系信息时,向添加好友模块502发送添加通知。 Wherein, the receiving
添加好友模块502用于在接收到所述添加通知后,将第二IM用户添加为第一IM用户的好友,向第二存储模块503发送存储通知。 The adding
第二存储模块503用于在接收到所述存储通知后,将第一IM用户和第二IM用户的好友关系信息进行存储。 The
接收模块501还用于在所述第二IM用户的预设置为需要验证身份时,将所述第一IM用户与所述第二IM用户的关系携带在验证请求中发送给所述第二IM用户。 The receiving
添加好友模块502还用于在所述验证请求通过时,将第二IM用户添加为第一IM用户的好友。 The adding
由上述的实施例可见,本发明的这种IM系统查找、添加好友的方法及、系统,根据IM用户在用户资料数据库所存储的个人资料信息来查找该用户欲查找的好友,可以实现无需要求IM用户输入一些好友的相关信息,进而实现方便、快捷地查找好友。进一步地,本发明实施例通过IM用户所填写的个人资料信息来查找该用户欲查找的好友,能够引导IM用户填写完整、真实的个人资料信息,并通过资料信息的完整度来体现用户输入资料的完整性,也能吸引用户填写更全面、更完整的数据,进而丰富用户的资料数据库。另外,本发明实施例通过第一IM用户设置的与欲查找的所述第二IM用户的关系来添加好友,有利于IM用户对好友信息的查询和分类。 As can be seen from the above-mentioned embodiments, the method and system for searching and adding friends in this IM system of the present invention can search for the friends that the user wants to find according to the personal data information stored in the user data database by the IM user, which can realize no requirement The IM user inputs the relevant information of some friends, and then finds friends conveniently and quickly. Furthermore, the embodiment of the present invention finds the friends that the user wants to find through the personal data information filled in by the IM user, can guide the IM user to fill in complete and real personal data information, and reflects the information entered by the user through the completeness of the data information. The integrity of the information can also attract users to fill in more comprehensive and complete data, thereby enriching the user's information database. In addition, in the embodiment of the present invention, friends are added through the relationship set by the first IM user and the second IM user to be searched, which is beneficial for the IM user to query and classify friend information. the
所应理解的是,以上所述仅为本发明的较佳实施方式而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 It should be understood that the above descriptions are only preferred implementations of the present invention, and are not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements, Improvements and the like should all be included within the protection scope of the present invention. the
Claims (15)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2007103016514A CN101222446B (en) | 2007-12-27 | 2007-12-27 | A method and system for searching and adding friends in an instant messaging system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2007103016514A CN101222446B (en) | 2007-12-27 | 2007-12-27 | A method and system for searching and adding friends in an instant messaging system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN101222446A CN101222446A (en) | 2008-07-16 |
| CN101222446B true CN101222446B (en) | 2011-03-30 |
Family
ID=39632027
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN2007103016514A Active CN101222446B (en) | 2007-12-27 | 2007-12-27 | A method and system for searching and adding friends in an instant messaging system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN101222446B (en) |
Families Citing this family (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8984072B2 (en) * | 2010-11-09 | 2015-03-17 | Sony Corporation | System and method for providing recommendations to a user in a viewing social network |
| CN102185826A (en) * | 2011-01-28 | 2011-09-14 | 北京开心人信息技术有限公司 | Method and system for protecting user privacy |
| CN103023744A (en) * | 2011-09-22 | 2013-04-03 | 北京神州泰岳软件股份有限公司 | Method and system for information management in instant messaging tool |
| CN103139045B (en) * | 2011-11-28 | 2017-02-15 | 腾讯科技(深圳)有限公司 | Business card exchange method, device and friend-making client |
| CN103425649B (en) * | 2012-05-15 | 2016-05-18 | 腾讯科技(深圳)有限公司 | Add method and the device of friend information |
| CN103428069B (en) | 2012-05-15 | 2015-07-01 | 腾讯科技(深圳)有限公司 | Method and device for adding friends in social network |
| CN103108226A (en) * | 2013-01-23 | 2013-05-15 | 深圳创维-Rgb电子有限公司 | Method and system for establishing inter-user communication based on television terminals |
| CN105100377B (en) * | 2014-05-16 | 2019-03-22 | 阿尔派株式会社 | The display control method of e-machine and information |
| CN106156160B (en) * | 2015-04-15 | 2020-04-14 | 腾讯科技(深圳)有限公司 | Method and device for searching enterprise account |
| CN106202071A (en) * | 2015-04-29 | 2016-12-07 | 腾讯科技(深圳)有限公司 | Method, terminal, server and the system that accounts information obtains |
| CN109377806B (en) * | 2018-12-12 | 2021-12-21 | 广东小天才科技有限公司 | Test question distribution method based on learning level and learning client |
| CN110727879A (en) * | 2019-10-11 | 2020-01-24 | 孙峰 | Information bidirectional and multidirectional search matching function for adding friends to social software |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1447943A (en) * | 2000-06-22 | 2003-10-08 | 亚隆·梅耶 | System and method for searching, discovering and contacting dating partners on the Internet via instant messaging networks and/or other methods for quick discovery and quick connection |
| CN101071478A (en) * | 2006-06-15 | 2007-11-14 | 腾讯科技(深圳)有限公司 | Friendly packet management method |
-
2007
- 2007-12-27 CN CN2007103016514A patent/CN101222446B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1447943A (en) * | 2000-06-22 | 2003-10-08 | 亚隆·梅耶 | System and method for searching, discovering and contacting dating partners on the Internet via instant messaging networks and/or other methods for quick discovery and quick connection |
| CN101071478A (en) * | 2006-06-15 | 2007-11-14 | 腾讯科技(深圳)有限公司 | Friendly packet management method |
Also Published As
| Publication number | Publication date |
|---|---|
| CN101222446A (en) | 2008-07-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101222446B (en) | A method and system for searching and adding friends in an instant messaging system | |
| US7409384B2 (en) | Integration of instant messaging with internet searching | |
| CN102955781B (en) | A kind of personage's searching method and device | |
| US20050177385A1 (en) | Method and system for customizing views of information associated with a social network user | |
| US20120260188A1 (en) | Potential communication recipient prediction | |
| JP5156879B1 (en) | Information presentation control apparatus and information presentation control method | |
| CN107145594B (en) | Method, device and system for pushing virtual gift recommendation list | |
| US20140059141A1 (en) | Electronic messaging system utilizing social classification rules | |
| US9489458B1 (en) | Suggesting interaction among members of a social network | |
| US9294537B1 (en) | Suggesting a tag for content | |
| WO2005074444A2 (en) | Selective electronic messaging within an online social network for spam detection | |
| US8977641B1 (en) | Suggesting participation in an online social group | |
| CN103294800A (en) | Method and device for pushing information | |
| CN101645856A (en) | Contact information processing method and mobile terminal | |
| US20210194842A1 (en) | System and Method for Displaying Message or User Lists | |
| CN101118557A (en) | Network information searching method and searching system thereof | |
| CN103942271B (en) | User profile searches system and method | |
| TWI476690B (en) | User information pushing method and apparatus | |
| CN100413249C (en) | A contact management method | |
| JP2012198788A (en) | Electronic mail system, user terminal device, information providing device and program | |
| WO2015180306A1 (en) | Method and device for querying instant message, and computer storage medium | |
| JP2007072523A (en) | Program, method and device for supporting formation of cooperative work area | |
| JP5952329B2 (en) | Communication identification information notification system, information processing apparatus, and program | |
| KR101362484B1 (en) | Method and system for determining user name | |
| JP2009003744A (en) | Case retrieval system and case retrieval method |
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 |