CN106790738B - User contact information query method and server - Google Patents

User contact information query method and server Download PDF

Info

Publication number
CN106790738B
CN106790738B CN201611027557.XA CN201611027557A CN106790738B CN 106790738 B CN106790738 B CN 106790738B CN 201611027557 A CN201611027557 A CN 201611027557A CN 106790738 B CN106790738 B CN 106790738B
Authority
CN
China
Prior art keywords
contact
initiator
information
user
list
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
Application number
CN201611027557.XA
Other languages
Chinese (zh)
Other versions
CN106790738A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201611027557.XA priority Critical patent/CN106790738B/en
Publication of CN106790738A publication Critical patent/CN106790738A/en
Application granted granted Critical
Publication of CN106790738B publication Critical patent/CN106790738B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4594Address books, i.e. directories containing contact information about correspondents
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention provides a query method and a server for a user contact way, wherein the method comprises the following steps: receiving a query request from a terminal where an initiator is located, wherein the query request comprises target user characteristics and information of the initiator; acquiring a contact list of the initiator according to the information of the initiator, searching candidate users matched with the characteristics of the target user in a preset contact database, and acquiring the contact list of the candidate users; calculating the matching degree between the contact list of the initiator and the contact list of the candidate user; and when the matching degree meets a preset condition, returning the contact information of the candidate user to the terminal. The embodiment of the invention has simple and convenient operation, greatly improves the timeliness and the practicability of inquiry, and simultaneously determines whether to feed back the contact way of the user or not through the matching degree between the contact person information, thereby ensuring the privacy of the contact way.

Description

User contact information query method and server
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method for querying a user contact information and a server.
Background
With the development of communication technology, mobile terminals have been accepted by more and more people and are more and more commonly used in various aspects of work, study, daily life and the like.
In the using process of the mobile terminal, the communication frequency of the current user and other users is higher, so that a large amount of contact information is stored in the mobile terminal.
If a user wants to store another user's contact information in the mobile terminal as contact information, the user generally needs to be presented with the contact information or a third party user is asked to find the user's contact information.
The two modes can not timely obtain the contact information of the user who wants to contact, the timeliness is poor, and if the user does not contact for a long time, the user who wants to contact is difficult to see and the contact information of the user who wants to contact is difficult to find through a third party, and the practicability is poor.
Disclosure of Invention
The embodiment of the invention provides a method for inquiring a user contact way, which aims to solve the problems of poor timeliness and poor practicability of inquiring the user contact way.
In a first aspect, a method for querying a user contact address is provided, where the method includes:
receiving a query request from a terminal where an initiator is located, wherein the query request comprises target user characteristics and information of the initiator;
acquiring a contact list of the initiator according to the information of the initiator, searching candidate users matched with the characteristics of the target user in a preset contact database, and acquiring the contact list of the candidate users;
calculating the matching degree between the contact list of the initiator and the contact list of the candidate user;
and when the matching degree meets a preset condition, returning the contact information of the candidate user to the terminal.
In a second aspect, a server is provided, the server comprising:
the system comprises a query request receiving module, a query request sending module and a query request receiving module, wherein the query request receiving module is used for receiving a query request from a terminal where an initiator is located, and the query request comprises target user characteristics and information of the initiator;
a contact information obtaining module, configured to obtain a contact list of the initiator according to the information of the initiator, search a candidate user matching the target user characteristics in a preset contact database, and obtain a contact list of the candidate user;
the matching degree calculation module is used for calculating the matching degree between the contact list of the initiator and the contact list of the candidate user;
and the contact way returning module is used for returning the contact way of the candidate user to the terminal when the matching degree meets a preset condition.
Thus, in the embodiment of the invention, the contact list of the initiator is obtained according to the information of the initiator, searching candidate users matched with the characteristics of the target user in a preset contact database, acquiring a contact list of the candidate users, by calculating the degree of match between the contact list of the originating user and the contact list of the candidate user, when the matching degree meets the preset condition, the contact information of the candidate user is returned to the terminal, the contact information can be shared by a plurality of users at the cloud end in the early stage, and the user to be contacted can be inquired in the later stage based on the user characteristics, so that the contact information is avoided in the current stage and the third-party user is inquired, the operation is simple and convenient, the timeliness and the practicability of the inquiry are greatly improved, meanwhile, whether the contact information of the user is fed back is determined through the matching degree of the contact information, and the privacy of the contact information can be guaranteed.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flowchart illustrating steps of an embodiment of a method for querying a user's contact information according to the present invention;
FIG. 2 is a flowchart illustrating steps of another embodiment of a method for querying user contact information according to the present invention;
FIG. 3 is a flowchart illustrating steps of another embodiment of a method for querying user contact information;
FIG. 4 is a block diagram of a server of the present invention;
FIG. 5 is a block diagram of a contact information acquisition module according to an embodiment of the present invention;
FIG. 6 is a block diagram of a match score calculation module according to an embodiment of the invention;
FIG. 7 is a block diagram of a contact information acquisition module according to an embodiment of the present invention;
FIG. 8 is a block diagram of a matchability calculation module of an embodiment of the present invention;
FIG. 9 is a block diagram of another server of the present invention;
FIG. 10 is a block diagram of a contact return module of an embodiment of the present invention;
fig. 11 is a block diagram of another server of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
First embodiment
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a method for querying a user contact address of the present invention is shown, which may specifically include the following steps:
step 101, receiving an inquiry request from a terminal where an initiator is located.
In a specific implementation, the embodiment of the present invention may be applied to a server, where the server may be an independent computer, or may be a computer cluster, such as a distributed system, and the embodiment of the present invention is not limited thereto.
The server is provided with an Application Programming Interface (API) for providing a query service of a user contact.
The user can call an API (application programming interface) provided by the server through a terminal (for example, a mobile phone, a tablet computer, a personal digital assistant, a wearable device (such as glasses, a watch and the like)), and according to the parameter specification of the API, the target user characteristics are used as parameters and are assembled into a query request to be sent to the server so as to call a query service of the user contact way of the server to query the information of the target user.
Therefore, the query request includes information of the target user characteristic and the initiator, where the target user characteristic is information representing the characteristic of the target user, and is generally a name, and of course, may also be a gender, a company, an E-mail (electronic mail) address, an account of an instant messaging tool, an account of a payment application, and the like, which is not limited in this embodiment of the present invention.
For example, if the user of the first mobile terminal wants to contact a user with a first name of "wang super", the user may send the user to the server with the name of key and the name of value of wang super as parameters.
If the user to which the first mobile terminal belongs knows that the company in which the target user is working is the a communication company in addition to the name of the target user being "wang chao", the user may transmit the parameters of the company being key and the a communication company being value, in addition to the parameters of the name being key and the wang chao being value, to the server.
Step 102, obtaining a contact list of the initiator according to the information of the initiator, searching candidate users matched with the characteristics of the target user in a preset contact database, and obtaining the contact list of the candidate users.
In a specific implementation, the terminal may communicate with other terminals through a SIM (Subscriber Identity Module) card, a USIM (Universal Subscriber Identity Module) card, an E-mail box, and the like, and the user usually records contact information with different quantities, such as name, phone number, gender, E-mail (E-mail) address, account number of an instant messenger, payment account number, and the like.
The operating systems of these terminals may include Android (Android), IOS, Windows Phone, Windows, and the like, and are usually configured with an address book, which includes an address book built in the system and an address book of a third-party application, and is used to store contact information and form a contact list.
Further, the contact information of these address lists is generally stored in a contact database of the operating system, and the contact information displayed on the address list is generally obtained by querying the contact database, so that the user can perform operations such as browsing, deleting, and modifying.
Taking the Android system as an example, the contact database may be contacts2.db, and the storage directory thereof is generally data/data/com.
Db generally has tables of raw _ contacts table, contacts table and data table.
The contacts table stores contact lookup (which can be understood as ID-like functionality).
The raw _ contacts table stores the name of the contact, an alphabetical index of the name, and account type information (distinguishing whether it is a local number or a SIM card number).
The data table stores data such as the number, mail, IM and the like of the contact.
In the embodiment of the present invention, the contact list at the initiator may be obtained in the following two ways:
1. and uploading by the terminal.
In this way, the server may obtain the contact list of the initiator from the terminal where the initiator is located according to the information of the initiator.
Further, the terminal of the initiator may upload the contact list stored in the address book together with the target user characteristics in the query request of the target user, or may upload the contact list stored in the address book separately, which is not limited in this embodiment of the present invention.
For example, the terminal of the initiator may upload the target user characteristics in the query request of the target user, and after the server finds the candidate user matched with the target user characteristics in the contact database, the server may return response information to the terminal of the initiator, and the terminal of the initiator uploads the contact list stored in the address list according to the response information; if the server does not find the candidate user matched with the target user characteristic, a message of failed query can be returned to the terminal of the initiator, and the terminal of the initiator does not upload the contact list.
2. And (6) server query.
In this way, the contact information (including phone number, user characteristics, such as name, company, etc.) of the terminal of the initiator is first uploaded to the server as a candidate user contact information and stored in the contact list of the address book, and an association relationship is established and stored in the contact database.
The terminal of the initiator may embed a subscriber identity such as a SIM card or a target phone number of a USIM card of the first mobile terminal in the query request of the target subscriber along with the characteristics of the target subscriber as information of the initiator.
According to the information of the initiator, the contact list of the initiator is obtained from the contact database, that is, the server can search the candidate user contact information corresponding to the user identification in the preset contact database based on the user identification uploaded by the terminal of the initiator, and extract the contact list corresponding to the candidate user contact information.
Of course, the above-mentioned manner of acquiring the contact list of the initiator is only an example, and when implementing the embodiment of the present invention, the manner of acquiring the contact lists of other initiators may be set according to actual situations, which is not limited in the embodiment of the present invention. In addition, besides the above-mentioned method for acquiring the contact list of the initiator, a person skilled in the art may also adopt other methods for acquiring the contact list of the initiator according to actual needs, and the embodiment of the present invention is not limited to this.
By applying the embodiment of the invention, the terminal of the candidate user can upload the contact information and the contact list of the candidate user, establish the association relation and store the association relation in the contact database.
The contact information of the candidate user may be the contact information of the candidate user, that is, the contact information of the user who uploads the contact list.
In particular implementations, the contact details of the candidate user may be stored in the form of candidate user characteristics and candidate phone numbers.
The candidate user characteristic is information representing a characteristic of a user to which the second mobile terminal belongs, and is generally a name, but may also be a gender, a company, an E-mail (electronic mail) address, an account of an instant messaging tool, an account of a payment application, and the like, which is not limited in this embodiment of the present invention.
Therefore, if the server receives the query request sent by the terminal of the initiator, the candidate user characteristics of the target user characteristics in the contact database can be compared.
If the target user characteristic is the same as partial key characteristics (such as names) or all characteristics of the candidate user characteristics, the target user characteristic can be considered to be matched with the candidate user characteristics, and then the contact mode matching of the target user characteristic and the candidate user to which the candidate user characteristics belong is confirmed.
Therefore, when the target user characteristics are matched with the candidate user, the contact list corresponding to the candidate user can be extracted according to the association relation.
Step 103, calculating the matching degree between the contact list of the initiator and the contact list of the candidate user.
In the daily life of a user, the user often needs to communicate with different people on different occasions, the understanding of the relationship among individuals in the social contact of the people can more or less influence the use of contact information, and the contact information is stored on the basis of the implemented social relationship, so that the contact information in the address book expresses the social relationship network of the user to some extent.
If the initiator knows about the candidate user, the social relationship network generally has correlation, for example, the initiator has a common friend, and the contact information of the friend is stored together.
On the contrary, if the initiating and candidate users do not know, the social relationship network generally has no correlation, for example, the initiating and candidate users do not have a common friend and do not store the contact information of the friend together.
In the embodiment of the present invention, the matching degree (i.e. the degree of matching) between the initiated contact list and the contact list of the candidate user can be calculated, and the correlation of the social relationship network between the two users can be reflected.
And step 104, when the matching degree meets a preset condition, returning the contact information of the candidate user to the terminal.
In a specific implementation, if the matching degree meets a certain condition, the candidate user contact information may be returned to the terminal of the initiator and displayed to the initiator.
Therefore, in the embodiment of the invention, the contact way of the candidate user uploaded by the second mobile terminal is matched in the server according to the target user characteristics uploaded by the first mobile terminal, the contact way of the candidate user is returned to the first mobile terminal according to the matching degree between the first contact information stored in the first mobile terminal and the second contact information of the second mobile terminal, the user to be contacted can be inquired through the contact way shared by a plurality of users at the cloud end according to the user characteristics, the condition that the contact way is required to be contacted and the condition that the third party user is inquired are avoided, the operation is simple and convenient, the timeliness and the practicability of inquiry are greatly improved, meanwhile, whether the contact way of the user is fed back or not is determined according to the matching degree between the contact information, and the privacy of the contact way can be ensured.
Second embodiment
Referring to fig. 2, a flowchart illustrating steps of another embodiment of a user contact information query method according to the present invention is shown, which may specifically include the following steps:
step 201, receiving an inquiry request from a terminal where an initiator is located.
Wherein, the query request includes the target user characteristics and the information of the initiator.
Step 202, acquiring the contact list of the initiator according to the information of the initiator.
Step 203, finding a plurality of candidate users matched with the target user characteristics in a preset contact database, and respectively obtaining contact lists of the candidate users.
In the embodiment of the present invention, if there are multiple candidate users matching the target user characteristics, for example, there are multiple candidate users with the same name, multiple candidate lists of the multiple candidate users may be extracted respectively.
And 204, respectively calculating the matching degree between the contact list of the initiator and the contact lists of the candidate users.
If the contact lists of a plurality of candidate users are extracted, the matching degree between the contact list of the initiator and the contact lists of the candidate users can be respectively calculated and verified one by one.
In an embodiment of the present invention, for each calculation of the matching degree between the contact list of the initiator and the contact list of the candidate user, the contact ways of the contacts in the contact list of the initiator and the contact ways of the contacts in the contact list of the candidate user may be matched to obtain the number of contacts with the same contact way.
And taking the number of the contacts and/or the proportion of the number of the contacts in the contact list of the candidate user as the matching degree between the contact list of the initiator and the contact list of the candidate user.
In a specific implementation, if the contact information in the contact list of the initiator is the same as part of the key contact (e.g., phone number) or all of the contact information in the contact list of the candidate user, the first contact information may be considered to be the same as the second contact information.
Taking a telephone number as an example, the server may extract a first telephone number from the contact information in the contact list of the originating party and a second telephone number from the contact information in the contact list of the candidate user.
When the first telephone number matches the second telephone number, it is determined that the two contact ways are the same.
Of course, the above determination method of the same contact way is only an example, and when the embodiment of the present invention is implemented, other determination methods of the same contact way may be set according to actual situations, which is not limited in the embodiment of the present invention. In addition, besides the above judging method of the same contact way, a person skilled in the art may also adopt other judging methods of the same contact way according to actual needs, and the embodiment of the present invention is not limited to this.
In addition, in order to reduce the calculation amount, the number of contacts and/or the proportion of the number of contacts in the contact list of the candidate user can be directly used as the matching degree.
In order to improve the accuracy of the matching degree, the weight may be configured according to communication information (such as communication times, communication duration, and the like) between the terminal of the initiator and the terminal of the candidate user and the contact persons with the same contact way, and the matching degree may be generated based on the contact persons with the same contact way for which the weight is configured.
Of course, the generation manner of the matching degree is only an example, and when the embodiment of the present invention is implemented, other generation manners of the matching degree may be set according to actual situations, which is not limited in the embodiment of the present invention. In addition, besides the above-mentioned generation manner of the matching degree, a person skilled in the art may also adopt other generation manners of the matching degree according to actual needs, and the embodiment of the present invention is not limited to this.
Step 205, according to the matching degree between the contact list of the initiator and the contact list of each candidate user, sorting each candidate user.
In the embodiment of the present invention, the candidate user contact addresses may be sorted sequentially according to the matching degree (e.g., the number of the target user contact addresses), that is, the higher the matching degree (e.g., the greater the number of the target user contact addresses), the higher the sorting is, and conversely, the lower the matching degree (e.g., the fewer the number of the target user contact addresses), the lower the sorting is.
And step 206, returning the contact information of the candidate users with the top ranking in the preset number to the terminal.
In the embodiment of the present invention, since the target user is generally one, the contact information of the top N (N is a positive integer, e.g. 5) most likely candidate users can be returned to the terminal of the initiator for display, so that on one hand, the user can be prevented from being disturbed by excessive information, and on the other hand, the excessive user information can be prevented from being revealed.
And step 207, when the matching degree meets a preset condition, returning the geographical position information of the terminal corresponding to the candidate user and/or the attribution information of the telephone number of the candidate user to the terminal where the initiator is located.
In the embodiment of the invention, in order to improve the accuracy of identifying the target user, besides the contact information of the candidate user, other information of the candidate user can be returned to assist the initiator in judging whether the candidate user is the target user.
In a specific implementation, when the candidate user uses the terminal, the candidate user may perform Positioning and upload to the server through a GPS (Global Positioning System), Wi-Fi (wireless fidelity), or the like at a preset time point (e.g., 9 hours, 17 hours, 21 hours, or the like), and then the server may query the geographic location information uploaded by the candidate user's terminal, so as to form an activity area of the candidate user.
For example, the Wang-Dong Shenzhen goes to work in Meilin and lives in the pond, and the active region of the Wang-Dong Shenzhen is displayed in the range of a region at the city level according to the record of the geographic position information, namely the "Futian region of Guangdong Shenzhen and the" New Longhua region of Guangdong Shenzhen ".
In addition, the server can extract the telephone number from the contact information of the candidate user and inquire the attribution information of the telephone number.
And finally, the server returns the geographical position information and/or the attribution information to the terminal of the initiator and displays the information to the initiator for judgment.
Third embodiment
Referring to fig. 3, a flowchart illustrating steps of another embodiment of a method for querying a user contact address according to the present invention is shown, which may specifically include the following steps:
step 301, receiving a contact list uploaded by a candidate user terminal.
In the embodiment of the invention, the terminal of the candidate user can upload the contact list stored in the address list to the cloud (server) and jointly maintain the contact database when certain conditions are met, such as reaching the preset time, the number of updated contact information exceeds the preset threshold value and the like.
Certainly, in order to ensure the privacy and the right of awareness of the user, whether the candidate user joins the designated plan or not may be checked first, if so, it is determined that the candidate user authorizes the contact list of the server acquisition candidate user, the terminal of the candidate user may continue to execute the sending process of the contact list, and if the candidate user does not join the execution plan, it is determined that the candidate user does not authorize the server acquisition contact list, and the terminal of the candidate user terminates the execution of the sending process of the contact list.
Wherein the specified plan may include, but is not limited to, a server-initiated user experience plan, and the like.
Step 302, determining the contact information of the candidate user.
In a specific implementation, if the terminal of the candidate user stores the contact information of the candidate user in the contact list, the contact information of the candidate user can be directly stored.
In contrast, the server may receive the contact information uploaded by the terminal of the candidate user.
If the terminal of the candidate user stores the contact information of the candidate user in the address list, the candidate phone numbers of communication cards such as SIM cards and USIM cards can be uploaded.
In contrast, the server may receive candidate phone numbers uploaded by the terminals of the candidate users.
Since other users may store the contact information of the candidate user in the address book as the contact information, the server may query the contact information to which the candidate phone number belongs in the contact database as the contact information of the candidate user.
Of course, the determination method of the contact addresses of the candidate users is only an example, and when the embodiment of the present invention is implemented, the determination method of the contact addresses of other candidate users may be set according to an actual situation, which is not limited in this embodiment of the present invention. In addition, besides the determination method of the contact address of the candidate user, a person skilled in the art may also adopt the determination method of the contact address of another candidate user according to actual needs, and the embodiment of the present invention is not limited to this.
Step 303, establishing an association relationship between the contact information of the candidate user and the contact list, and storing the association relationship in a contact database.
If the cloud (server) receives the contact information and the contact list of the candidate user, an association relation can be established between the contact information and the contact list of the candidate user and stored in the contact database.
In practical application, if a certain user has a terminal and stores a contact list, the contact ways of the candidate users and the contact list are in one-to-one correspondence; if a user has multiple terminals and stores multiple contact lists, the server may establish an association relationship between the contact ways of the candidate users and each contact list, or may merge the multiple contact lists into one contact list and establish an association relationship between the contact ways of the candidate users, which is not limited in the embodiment of the present invention.
In the embodiment of the invention, the contact information stored in the contact database comprises the contact information and the contact list of the candidate user.
If the contact addresses of the candidate users, the contact information in the contact list, and part of the key information (such as telephone numbers) or all of the information of the contact information in the contact database are the same, the contact addresses of the candidate users, the contact information in the contact list, and the contact information in the contact database may be considered to be matched.
Taking a phone number as an example, the server may extract a candidate phone number from the contact addresses of the candidate users, and extract a phone number from the contact information in the contact list.
And when the candidate telephone number and/or the telephone number is the same as the telephone number of the contact person information in the contact person database, determining that the contact way of the candidate user and/or the contact person information in the contact person list is matched with the contact person information in the contact person database.
At this point, the contact addresses of the candidate users and/or the contact information in the contact list are considered to belong to the same user, but the information stored for the user may be different for different users.
For example, a user may have a name of king, some users may store their name as king, and some users may store their name as queen.
As another example, for company names, some users may simplify storage.
Thus, to normalize the stored data, the server may normalize the contact addresses of the candidate users and/or the contact information in the contact list to the contact information in the contact database.
For personal information such as names, the information with the largest amount of storage can be used as normalized information; for public information such as companies, the corresponding knowledge base or the server of the relevant government organization can be called for verification.
For example, if the name of a certain user is "king" and the number of partial users who store "king" is 5 and the number of partial users who store "queen" is 1, the same name may be stored as "king".
In particular implementations, multiple user stores of the same contact information (including contact details of candidate users and/or contact information in a contact list) may be available, which may be numbered in order to reduce the number of stores, with the contact information (including contact details of candidate users and/or contact information in a contact list) itself being stored in a separate database, and the numbers being stored in a contact database.
Therefore, if the comparison with the contact information (the contact information of the candidate user and/or the contact information in the contact list) is required, the corresponding contact information (the contact information of the candidate user and/or the contact information in the contact list) can be searched according to the code of the comparison, and then the comparison is performed.
Of course, if the storage space is sufficient, the contact information (the contact information in the contact list and/or the contact information of the candidate user) itself may also be directly stored in the contact database, which is not limited in this embodiment of the present invention.
Step 304, receiving the query request from the terminal where the initiator is located.
Wherein, the query request includes the target user characteristics and the information of the initiator.
Step 305, obtaining a contact list of the initiator according to the information of the initiator, searching a candidate user matched with the characteristics of the target user in a preset contact database, and obtaining the contact list of the candidate user.
Step 306, calculating the matching degree between the contact list of the initiator and the contact list of the candidate user.
And 307, when the matching degree meets a preset condition, returning the contact information of the candidate user to the terminal.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Fourth embodiment
Referring to fig. 4, a block diagram of a server according to the present invention is shown, where the server 400 may specifically include the following modules:
a query request receiving module 401, configured to receive a query request from a terminal where an initiator is located, where the query request includes target user characteristics and information of the initiator;
a contact information obtaining module 402, configured to obtain a contact list of the initiator according to the information of the initiator, search a candidate user matching the target user characteristics in a preset contact database, and obtain a contact list of the candidate user;
a matching degree calculation module 403, configured to calculate a matching degree between the contact list of the initiator and the contact list of the candidate user;
a contact information returning module 404, configured to return the contact information of the candidate user to the terminal when the matching degree meets a preset condition.
In an embodiment of the present invention, referring to the block diagram of the contact information obtaining module shown in fig. 5, the contact information obtaining module 402 may further include the following sub-modules:
the database obtaining sub-module 4021 is configured to obtain a contact list of the initiator from the contact database according to the information of the initiator;
alternatively, the first and second electrodes may be,
the terminal obtaining sub-module 4022 is configured to obtain the contact list of the initiator from the terminal where the initiator is located according to the information of the initiator.
In an embodiment of the present invention, referring to the block diagram of the matching degree calculating module shown in fig. 6, the matching degree calculating module 403 may further include the following sub-modules:
a contact matching sub-module 4031, configured to match the contact information of each contact in the contact list of the initiator with the contact information of each contact in the contact list of the candidate user, and obtain the number of contacts with the same contact information;
the same contact calculation sub-module 4032 is configured to use the number of contacts and/or a ratio of the number of contacts in the contact list of the candidate user as a matching degree between the contact list of the initiator and the contact list of the candidate user.
In an embodiment of the present invention, referring to the block diagram of the contact information obtaining module shown in fig. 7, the contact information obtaining module 402 further includes the following sub-modules:
the multi-contact list obtaining sub-module 4021 is configured to find multiple candidate users matched with the target user characteristics in a preset contact database, and obtain contact lists of the multiple candidate users respectively.
In an embodiment of the present invention, referring to the block diagram of the matching degree calculating module shown in fig. 8, the matching degree calculating module 403 may further include the following sub-modules:
a multiple matching degree calculation module 4033, configured to calculate matching degrees between the contact list of the initiator and the contact lists of the candidate users, respectively.
On the basis of fig. 4, optionally, the server 400 may further comprise a candidate user ranking module 405, see fig. 9.
And a candidate user sorting module 405, configured to sort each candidate user according to a matching degree between the contact list of the initiator and the contact lists of each candidate user.
In an embodiment of the present invention, referring to the block diagram of the contact address returning module shown in fig. 10, the contact address returning module 404 may further include the following sub-modules:
the sorting returning sub-module 4041 is configured to return the contact information of the candidate users with the top sorting preset number to the terminal.
On the basis of fig. 4, optionally, the server 400 may further include a related information returning module 406, see fig. 11.
And a relevant information returning module 406, configured to return, when the matching degree meets a preset condition, the geographic location information of the terminal corresponding to the candidate user and/or the attribution information of the telephone number of the candidate user to the terminal where the initiator is located.
The server 400 can implement each process implemented by the server in the method embodiments of fig. 1 to fig. 3, and is not described herein again to avoid repetition.
Thus, in the embodiment of the invention, the contact list of the initiator is obtained according to the information of the initiator, searching candidate users matched with the characteristics of the target user in a preset contact database, acquiring a contact list of the candidate users, by calculating the degree of match between the contact list of the originating user and the contact list of the candidate user, when the matching degree meets the preset condition, the contact information of the candidate user is returned to the terminal, the contact information can be shared by a plurality of users at the cloud end in the early stage, and the user to be contacted can be inquired in the later stage based on the user characteristics, so that the contact information is avoided in the current stage and the third-party user is inquired, the operation is simple and convenient, the timeliness and the practicability of the inquiry are greatly improved, meanwhile, whether the contact information of the user is fed back is determined through the matching degree of the contact information, and the privacy of the contact information can be guaranteed.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for querying a user contact information is characterized by comprising the following steps:
receiving a query request from a terminal where an initiator is located, wherein the query request comprises target user characteristics and information of the initiator;
acquiring a contact list of the initiator according to the information of the initiator, searching candidate users matched with the characteristics of the target user in a preset contact database, and acquiring the contact list of the candidate users;
calculating the matching degree between the contact list of the initiator and the contact list of the candidate user;
when the matching degree meets a preset condition, returning the contact information of the candidate user to the terminal;
before the step of receiving the query request from the terminal where the initiator is located, the method further includes:
establishing an incidence relation between the contact information of the candidate user and the contact list, normalizing the contact information of the candidate user and/or the contact information in the contact list and the contact information in the contact database, and storing the normalized contact information in the contact database;
the matching degree comprises a matching degree generated by contacts with the same contact way based on weight configuration, the weight is configured according to communication information between the terminal of the initiator and the contacts with the same contact way and between the terminal of the candidate user and the contacts with the same contact way, and the communication information comprises one or more of the following items:
communication times and communication duration.
2. The method of claim 1, wherein obtaining the contact list of the initiator according to the information of the initiator comprises:
acquiring a contact list of the initiator from the contact database according to the information of the initiator;
alternatively, the first and second electrodes may be,
and acquiring a contact list of the initiator from the terminal of the initiator according to the information of the initiator.
3. The method of claim 1 or 2, wherein the step of calculating the degree of match between the contact list of the initiator and the contact list of the candidate user comprises:
matching the contact way of each contact in the contact list of the initiator with the contact way of each contact in the contact list of the candidate user to obtain the number of contacts with the same contact way;
and taking the number of the contacts and/or the proportion of the number of the contacts in the contact list of the candidate user as the matching degree between the contact list of the initiator and the contact list of the candidate user.
4. The method of claim 1, wherein the searching for a candidate user matching the target user feature in a preset contact database to obtain a contact list of the candidate user comprises:
searching a plurality of candidate users matched with the target user characteristics in a preset contact database, and respectively acquiring contact lists of the candidate users;
the calculating the matching degree between the contact list of the initiator and the contact list of the candidate user comprises:
respectively calculating the matching degree between the contact list of the initiator and the contact lists of the candidate users;
after the calculating the matching degree between the contact list of the initiator and the contact list of the candidate user, the method further includes:
sorting each candidate user according to the matching degree between the contact list of the initiator and the contact list of each candidate user;
when the matching degree meets a preset condition, returning the contact information of the candidate user to the terminal, wherein the step of returning the contact information of the candidate user to the terminal comprises the following steps:
and returning the contact ways of the candidate users with the top ranking preset number to the terminal.
5. The method of claim 1, wherein after calculating the degree of match between the contact list of the initiator and the contact list of the candidate user, further comprising:
and when the matching degree meets a preset condition, returning the geographical position information of the terminal corresponding to the candidate user and/or the attribution information of the telephone number of the candidate user to the terminal where the initiator is located.
6. A server, comprising:
the system comprises a query request receiving module, a query request sending module and a query request receiving module, wherein the query request receiving module is used for receiving a query request from a terminal where an initiator is located, and the query request comprises target user characteristics and information of the initiator;
a contact information obtaining module, configured to obtain a contact list of the initiator according to the information of the initiator, search a candidate user matching the target user characteristics in a preset contact database, and obtain a contact list of the candidate user;
the matching degree calculation module is used for calculating the matching degree between the contact list of the initiator and the contact list of the candidate user;
the contact way returning module is used for returning the contact way of the candidate user to the terminal when the matching degree meets a preset condition;
the server is further used for establishing an association relation between the contact information of the candidate user and the contact list, normalizing the contact information of the candidate user and/or the contact information in the contact list and the contact information in the contact database, and storing the normalized contact information in the contact database;
the matching degree comprises a matching degree generated by contacts with the same contact way based on weight configuration, the weight is configured according to communication information between the terminal of the initiator and the contacts with the same contact way and between the terminal of the candidate user and the contacts with the same contact way, and the communication information comprises one or more of the following items:
communication times and communication duration.
7. The server according to claim 6, wherein the contact information obtaining module comprises:
a database obtaining sub-module, configured to obtain a contact list of the initiator from the contact database according to the information of the initiator;
alternatively, the first and second electrodes may be,
and the terminal acquisition submodule is used for acquiring the contact list of the initiator from the terminal of the initiator according to the information of the initiator.
8. The server according to claim 6 or 7, wherein the matching degree calculation module comprises:
a contact matching sub-module, configured to match the contact of each contact in the contact list of the initiator with the contact of each contact in the contact list of the candidate user, and obtain the number of contacts with the same contact;
and the same contact person calculation sub-module is used for taking the number of the contact persons and/or the proportion of the number of the contact persons in the contact person list of the candidate user as the matching degree between the contact person list of the initiator and the contact person list of the candidate user.
9. The server according to claim 6, wherein the contact information obtaining module comprises:
the multi-contact list acquisition sub-module is used for searching a plurality of candidate users matched with the characteristics of the target user in a preset contact database and respectively acquiring contact lists of the candidate users;
the matching degree calculation module includes:
the multi-matching degree calculation module is used for calculating the matching degree between the contact person list of the initiator and the contact person lists of the candidate users respectively;
the server further comprises:
the candidate user sorting module is used for sorting each candidate user according to the matching degree between the contact list of the initiator and the contact list of each candidate user;
the contact information returning module comprises:
and the sorting return submodule is used for returning the contact information of the candidate users with the highest sorting preset number to the terminal.
10. The server of claim 6, further comprising:
and the related information returning module is used for returning the geographical position information of the terminal corresponding to the candidate user and/or the attribution information of the telephone number of the candidate user to the terminal where the initiator is located when the matching degree meets a preset condition.
CN201611027557.XA 2016-11-17 2016-11-17 User contact information query method and server Active CN106790738B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611027557.XA CN106790738B (en) 2016-11-17 2016-11-17 User contact information query method and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611027557.XA CN106790738B (en) 2016-11-17 2016-11-17 User contact information query method and server

Publications (2)

Publication Number Publication Date
CN106790738A CN106790738A (en) 2017-05-31
CN106790738B true CN106790738B (en) 2020-08-25

Family

ID=58970792

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611027557.XA Active CN106790738B (en) 2016-11-17 2016-11-17 User contact information query method and server

Country Status (1)

Country Link
CN (1) CN106790738B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109427017A (en) * 2017-08-24 2019-03-05 中兴通讯股份有限公司 A kind of reminding method and device
CN109597698A (en) * 2018-10-26 2019-04-09 平安科技(深圳)有限公司 Message prompt method, device, electronic equipment and computer readable storage medium
CN110209704B (en) * 2019-04-24 2023-02-07 上海任意门科技有限公司 User matching method and device
CN110933198A (en) * 2019-11-28 2020-03-27 中国银行股份有限公司 Contact person information processing method and device
CN113326730A (en) * 2021-04-20 2021-08-31 深圳市莱尚科技有限公司 Indoor elderly safety monitoring method and system, electronic equipment and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102333299A (en) * 2011-05-30 2012-01-25 上海合合信息科技发展有限公司 Method for providing information of contact
CN105376279A (en) * 2014-08-27 2016-03-02 小米科技有限责任公司 Contact recommending method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102333299A (en) * 2011-05-30 2012-01-25 上海合合信息科技发展有限公司 Method for providing information of contact
CN105376279A (en) * 2014-08-27 2016-03-02 小米科技有限责任公司 Contact recommending method and device

Also Published As

Publication number Publication date
CN106790738A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106790738B (en) User contact information query method and server
EP2661108B1 (en) Method, terminal and server for adding user association relationship
US7099862B2 (en) Programmatic discovery of common contacts
CN102082881B (en) For the method and system of real-time caller position, brief introduction and trusting relationship
CN105338480B (en) LBS-based user matching method, message client, server and system
CN103501374B (en) Telephone directory sequencing method and device, terminal
CN105847288B (en) A kind of identifying code treating method and apparatus
CN102368746A (en) Picture information promotion method and apparatus thereof
US20120089691A1 (en) Unidentified recipients message exchange service providing method
CN104184898A (en) Incoming call information display processing method and device
CN104935496B (en) Instant communicating method, system, device and instant communication terminal
US20150379471A1 (en) Management system for transmission of electronic business card based on telephone number linkage and method therefor
CN103987022A (en) Position information checking method and system based on mobile terminal and mobile terminal
CN104540114A (en) Methods, terminal, server and system used for recognizing opposite terminal identity
US10713386B2 (en) Method and system for protecting user privacy
TW201804778A (en) Call-interface content display method, apparatus, system, and smart communications device
US20080263040A1 (en) System and method for making a face call
CN106161575B (en) User matching method and device
CN103679934A (en) Method and device for processing bank card information
CN104951533A (en) Information name card querying method and system
CN106454781B (en) Method and device for identifying source of communication message
CN104168395A (en) Conversation data processing method and device
CN113163331A (en) Service response method, device, equipment and storage medium
CN103999493A (en) Mobile terminal, server, schedule pushing method, and schedule acquiring method
KR101989174B1 (en) Personal Information Sharing Device and Method

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
GR01 Patent grant
GR01 Patent grant