CN107317935A - Telephone number query, display methods and device, cloud server and terminal device - Google Patents
Telephone number query, display methods and device, cloud server and terminal device Download PDFInfo
- Publication number
- CN107317935A CN107317935A CN201710549250.4A CN201710549250A CN107317935A CN 107317935 A CN107317935 A CN 107317935A CN 201710549250 A CN201710549250 A CN 201710549250A CN 107317935 A CN107317935 A CN 107317935A
- Authority
- CN
- China
- Prior art keywords
- phone number
- telephone number
- query
- category
- tag
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4552—Lookup mechanisms between a plurality of directories; Synchronisation of directories, e.g. metadirectories
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Telephonic Communication Services (AREA)
Abstract
本发明公开了一种电话号码查询方法及装置、显示方法及装置、云端服务器及终端设备,该电话号码查询方法,应用于服务器,包括:接收电话号码查询请求,获取所述查询请求中携带的电话号码;根据所述电话号码确定对应的电话号码关联信息;返回电话号码查询响应。本发明中,根据接收到的电话号码查询请求携带的电话号码来确定对应的电话号码关联信息,并将查询到的电话号码关联信息发送出去,实现了该电话号码的电话号码关联信息查询,以使用户能够及时获取到该电话号码的相关信息,确认该电话号码是否为危险电话,从而为用户的终端使用安全性提供了前提保障。
The invention discloses a telephone number query method and device, a display method and device, a cloud server and a terminal device. The telephone number query method is applied to the server, and includes: receiving a telephone number query request, and obtaining the information carried in the query request A phone number; determine the corresponding phone number associated information according to the phone number; return a phone number query response. In the present invention, the corresponding telephone number associated information is determined according to the telephone number carried in the received telephone number query request, and the queried telephone number associated information is sent out, realizing the telephone number associated information query of the telephone number, with The user can obtain relevant information of the phone number in time, and confirm whether the phone number is a dangerous call, thereby providing a premise guarantee for the user's terminal use security.
Description
技术领域technical field
本发明涉及通讯技术领域,特别是涉及一种电话号码查询方法及装置、显示方法及装置、云端服务器及终端设备。The present invention relates to the technical field of communications, in particular to a telephone number query method and device, a display method and device, a cloud server and a terminal device.
背景技术Background technique
随着社会的高速发展以及人类的进步,人们之间的沟通交流也变得更加方便、顺畅。手机已经成为了人们生活中不可或缺的部分,在现有技术中,手机的不可或缺,虽然给人们带来了便利,相应的也给不法分子带来了传播危险信息、危害公共安全、影响人们正常生活的渠道。用户在使用手机过程中,无论是接到还是拨打过陌生电话,对于陌生号码希望提前能够知道其是否是危险电话,尤其无法及时掌握该陌生号码的相关信息,可能会因为拨打该陌生号码而影响正常的生活、对自身造成财产损失,甚至构成人身安全威胁。With the rapid development of society and the progress of human beings, the communication between people has become more convenient and smooth. Mobile phones have become an indispensable part of people's lives. In the existing technology, mobile phones are indispensable. Although they bring convenience to people, they also bring danger to lawbreakers, such as spreading dangerous information, endangering public safety, Channels that affect people's normal life. In the process of using the mobile phone, whether the user has received or made a strange call, he hopes to know whether the strange number is a dangerous call in advance, especially if he cannot grasp the relevant information of the strange number in time, it may affect the Normal life, causing property damage to oneself, and even posing a threat to personal safety.
因此,在面对一个陌生号码,如何及时掌握该陌生号码的相关信息成为了当前社会亟待解决的问题。Therefore, in the face of an unfamiliar number, how to grasp the relevant information of the unfamiliar number in time has become a problem to be solved urgently in the current society.
发明内容Contents of the invention
本发明提供一种电话号码查询方法及装置、显示方法及装置、云端服务器及终端设备,以实现用户能够及时获取到该电话号码的相关信息,确认该电话号码是否为危险电话,从而为用户的终端使用安全性提供了前提保障。The present invention provides a phone number query method and device, a display method and device, a cloud server and a terminal device, so that the user can obtain relevant information of the phone number in time, and confirm whether the phone number is a dangerous phone number, so as to provide users with Terminal use security provides a prerequisite guarantee.
一种电话号码查询方法,应用于服务器,所述方法包括:A telephone number query method applied to a server, the method comprising:
接收电话号码查询请求,获取所述查询请求中携带的电话号码;receiving a phone number query request, and obtaining the phone number carried in the query request;
根据所述电话号码确定对应的电话号码关联信息;determining corresponding phone number associated information according to the phone number;
返回电话号码查询响应。Returns a phone number query response.
优选地,所述电话号码关联信息包括号码归属信息和/或标记信息,所述根据所述电话号码确定对应的电话号码关联信息,包括:Preferably, the phone number associated information includes number attribution information and/or tag information, and determining the corresponding phone number associated information according to the phone number includes:
根据所述电话号码查询数据库,确定所述电话号码对应的号码归属信息和/或标记信息。Querying the database according to the telephone number to determine the number attribution information and/or tag information corresponding to the telephone number.
优选地,所述号码归属信息包括号码归属地和/或号码归属运营商,所述根据所述电话号码查询数据库,确定所述电话号码对应的号码归属信息,具体包括:Preferably, the number attribution information includes the number attribution and/or the number attribution operator, and the querying database according to the phone number to determine the number attribution information corresponding to the phone number specifically includes:
根据所述电话号码查询所述数据库,确定所述电话号码对应的号码归属地和/或号码归属运营商。The database is queried according to the phone number, and the number attribution and/or the number attribution operator corresponding to the phone number are determined.
优选地,所述号码归属地信息具体包括号码具体归属地,所述根据所述电话号码查询所述数据库,确定所述电话号码对应的号码归属地,包括:Preferably, the number attribution information specifically includes the specific attribution of the number, and the querying the database according to the phone number to determine the number attribution corresponding to the phone number includes:
根据所述电话号码查询所述数据库,确定所述电话号码对应的号码具体归属地。The database is queried according to the telephone number, and the specific attribution of the number corresponding to the telephone number is determined.
优选地,所述标记信息具体包括文字类别标记、图形类别标记和类别标记原因中的至少一种,所述根据所述电话号码查询数据库,确定所述电话号码对应的标记信息,具体包括:Preferably, the label information specifically includes at least one of a text category label, a graphic category label, and a category label reason, and the querying the database according to the phone number to determine the label information corresponding to the phone number specifically includes:
根据所述电话号码查询所述数据库,确定所述数据库中是否存储有与所述电话号码对应的文字类别标记;Querying the database according to the telephone number, and determining whether a character category mark corresponding to the telephone number is stored in the database;
若存储有,选取所述文字类别标记;If stored, select the text category mark;
根据所述文字类别标记选取其对应的图形类别标记和/或类别标记原因。Select the corresponding graphic category mark and/or the reason for the category mark according to the text category mark.
优选地,所述标记信息具体包括文字类别标记、图形类别标记和类别标记原因中的至少一种,所述根据所述电话号码查询数据库,确定所述电话号码对应的标记信息,具体包括:Preferably, the label information specifically includes at least one of a text category label, a graphic category label, and a category label reason, and the querying the database according to the phone number to determine the label information corresponding to the phone number specifically includes:
根据所述电话号码查询所述数据库,确定所述数据库中是否存储有与所述电话号码对应的图形类别标记;Querying the database according to the telephone number to determine whether there is a graphic category mark corresponding to the telephone number stored in the database;
若存储有,选取所述图形类别标记;If stored, select the graphic category mark;
根据所述图形类别标记选取其对应的文字类别标记和/或类别标记原因。Select the corresponding text category mark and/or the reason for the category mark according to the graphic category mark.
优选地,所述标记信息具体包括文字类别标记、图形类别标记和类别标记原因中的至少一种,所述根据所述电话号码查询数据库,确定所述电话号码对应的标记信息,具体包括:Preferably, the label information specifically includes at least one of a text category label, a graphic category label, and a category label reason, and the querying the database according to the phone number to determine the label information corresponding to the phone number specifically includes:
根据所述电话号码查询所述数据库,确定所述数据库中是否存储有与所述电话号码对应的类别标记原因;Querying the database according to the telephone number, and determining whether the cause of the category mark corresponding to the telephone number is stored in the database;
若存储有,选取所述类别标记原因;If stored, select the reason for the category mark;
根据所述类别标记原因选取其对应的文字类别标记和/或图形类别标记。Select the corresponding text category mark and/or graphic category mark according to the reason for the category mark.
优选地,在选取所述文字类别标记之后,还包括:Preferably, after selecting the text category mark, it also includes:
确定所选取的文字类别标记对应的安全等级;Determine the security level corresponding to the selected text category mark;
且若选取了图形类别标记时,根据所述文字类别标记对应的安全等级选取所述图形类别标记对应的背景色。And if a graphic category mark is selected, the background color corresponding to the graphic category mark is selected according to the security level corresponding to the text category mark.
优选地,所述根据所述电话号码确定对应的电话号码关联信息,还包括::Preferably, the determining the corresponding phone number associated information according to the phone number further includes:
根据所述电话号码确定电话号码位数;determining the digits of the telephone number according to the telephone number;
根据所述电话号码位数查询数据库,确定所述电话号码位数是否达到预设阈值;Querying the database according to the digits of the telephone number to determine whether the digits of the telephone number reach a preset threshold;
若达到,确定对应的电话号码关联信息;否则,无法确定所述电话号码对应的电话号码关联信息。If so, determine the corresponding phone number associated information; otherwise, the phone number associated information corresponding to the phone number cannot be determined.
优选地,所述返回电话号码查询响应,具体包括:Preferably, the returned phone number query response specifically includes:
当确定所述电话号码对应的电话号码关联信息后,返回的电话号码查询响应中携带有所述电话号码对应的电话号码关联信息;After determining the telephone number associated information corresponding to the telephone number, the returned telephone number query response carries the telephone number associated information corresponding to the telephone number;
当无法确定所述电话号码对应的电话号码关联信息时,返回的电话号码查询响应中携带有所述无法确定所述电话号码对应的电话号码关联信息。When the phone number associated information corresponding to the phone number cannot be determined, the returned phone number query response carries the phone number associated information that cannot be determined corresponding to the phone number.
本发明还提供了一种电话号码显示方法,应用于移动终端,所述方法包括:The present invention also provides a method for displaying a telephone number, which is applied to a mobile terminal, and the method includes:
接收用户输入的电话号码;Receive the phone number entered by the user;
发送电话号码查询请求,所述查询请求中携带有用户输入的电话号码;sending a phone number query request, the query request carrying the phone number input by the user;
接收电话号码查询响应;Receive a phone number query response;
获取所述电话号码查询响应中携带的所述电话号码对应的电话号码关联信息;Acquiring phone number associated information corresponding to the phone number carried in the phone number query response;
显示所述电话号码及其对应的电话号码关联信息。The phone number and its corresponding phone number associated information are displayed.
优选地,所述电话号码关联信息包括号码归属信息和/或标记信息,所述显示所述电话号码及其对应的电话号码关联信息,包括:Preferably, the phone number associated information includes number attribution information and/or tag information, and the displaying the phone number and its corresponding phone number associated information includes:
显示所述电话号码及其对应的标记信息和/或号码归属信息。Displaying the phone number and its corresponding tag information and/or number attribution information.
优选地,所述号码归属信息包括号码归属地和/或号码归属运营商,所述显示所述电话号码及其对应的号码归属信息,具体包括:Preferably, the number attribution information includes the number attribution location and/or the number attribution operator, and the displaying the phone number and its corresponding number attribution information specifically includes:
显示所述电话号码及其对应的号码归属地和/或号码归属运营商。The phone number and its corresponding number attribution and/or number attribution operator are displayed.
优选地,所述标记信息具体包括文字类别标记、图形类别标记和类别标记原因中的至少一种,所述显示所述电话号码及其对应的标记信息,具体包括:Preferably, the tag information specifically includes at least one of text category tags, graphic category tags, and category tag reasons, and the displaying the phone number and its corresponding tag information specifically includes:
显示所述电话号码对应的文字类别标记和/或图形类别标记和/或类别标记原因;displaying the text category mark and/or graphic category mark and/or the reason for the category mark corresponding to the telephone number;
其中,所述图形类别标记具有对应安全等级的背景色;Wherein, the graphic category mark has a background color corresponding to the security level;
并,根据所述图形类别标记对应的背景色显示具有相同背景色的电话号码。And, display the phone numbers with the same background color according to the background color corresponding to the graphic category mark.
本发明还提供了一种电话号码查询装置,应用于服务器,所述装置包括::The present invention also provides a phone number query device, which is applied to a server, and the device includes:
第一处理模块,用于接收电话号码查询请求,获取所述查询请求中携带的电话号码;A first processing module, configured to receive a phone number query request, and obtain the phone number carried in the query request;
第二处理模块,用于根据所述电话号码确定对应的电话号码关联信息;A second processing module, configured to determine corresponding phone number associated information according to the phone number;
发送模块,用于返回电话号码查询响应。The sending module is used to return the phone number query response.
优选地,所述电话号码关联信息包括号码归属信息和/或标记信息,Preferably, the phone number associated information includes number attribution information and/or tag information,
所述第二处理模块,用于根据所述电话号码查询数据库,确定所述电话号码对应的号码归属信息和/或标记信息。The second processing module is configured to query the database according to the telephone number, and determine the number attribution information and/or tag information corresponding to the telephone number.
优选地,所述号码归属信息包括号码归属地和/或号码归属运营商,Preferably, the number attribution information includes the number attribution and/or the number attribution operator,
所述第二处理模块,具体用于根据所述电话号码查询所述数据库,确定所述电话号码对应的号码归属地和/或号码归属运营商。The second processing module is specifically configured to query the database according to the phone number, and determine the number attribution and/or the number attribution operator corresponding to the phone number.
优选地,所述号码归属地信息具体包括号码具体归属地,Preferably, the number attribution information specifically includes the specific attribution of the number,
所述第二处理模块,还具体用于根据所述电话号码查询所述数据库,确定所述电话号码对应的号码具体归属地。The second processing module is further specifically configured to query the database according to the telephone number, and determine the specific attribution of the number corresponding to the telephone number.
优选地,所述标记信息具体包括文字类别标记、图形类别标记和类别标记原因中的至少一种,Preferably, the tag information specifically includes at least one of a text category tag, a graphic category tag, and a reason for the category tag,
所述第二处理模块,还具体用于根据所述电话号码查询所述数据库,确定所述数据库中是否存储有与所述电话号码对应的文字类别标记;若存储有,选取所述文字类别标记;根据所述文字类别标记选取其记对应的图形类别标记和/或类别标记原因。The second processing module is also specifically configured to query the database according to the phone number, and determine whether a text category mark corresponding to the phone number is stored in the database; if it is stored, select the text category mark ; Select the corresponding graphic category mark and/or the reason for the category mark according to the text category mark.
优选地,所述标记信息具体包括文字类别标记、图形类别标记和类别标记原因中的至少一种,Preferably, the tag information specifically includes at least one of a text category tag, a graphic category tag, and a reason for the category tag,
所述第二处理模块,还具体用于根据所述电话号码查询所述数据库,确定所述数据库中是否存储有与所述电话号码对应的图形类别标记;若存储有,选取所述图形类别标记;根据所述图形类别标记选取其对应的文字类别标记和/或类别标记原因。The second processing module is further specifically configured to query the database according to the telephone number, and determine whether a graphic category mark corresponding to the telephone number is stored in the database; if it is stored, select the graphic category mark ; Select the corresponding text category mark and/or the reason for the category mark according to the graphic category mark.
优选地,所述标记信息具体包括文字类别标记、图形类别标记和类别标记原因中的至少一种,Preferably, the tag information specifically includes at least one of a text category tag, a graphic category tag, and a reason for the category tag,
所述第二处理模块,还具体用于根据所述电话号码查询所述数据库,确定所述数据库中是否存储有与所述电话号码对应的类别标记原因;若存储有,选取所述类别标记原因;根据所述类别标记原因选取其对应的文字类别标记和/或图形类别标记。The second processing module is further specifically configured to query the database according to the telephone number, and determine whether the category marking reason corresponding to the telephone number is stored in the database; if it is stored, select the category marking reason ; Select the corresponding text category mark and/or graphic category mark according to the reason for the category mark.
优选地,所述查询装置还包括:Preferably, the query device also includes:
第三处理模块,用于确定所选取的文字类别标记对应的安全等级;且若所述第二处理模块选取了图形类别标记时,根据对应的安全等级选取所述图形类别标记对应的背景色。The third processing module is configured to determine the security level corresponding to the selected text category mark; and if the second processing module selects a graphic category mark, select the background color corresponding to the graphic category mark according to the corresponding security level.
优选地,所述第二处理模块,还用于根据所述电话号码确定电话号码位数;根据所述电话号码位数查询数据库,确定所述电话号码位数是否达到预设阈值;若达到,确定对应的电话号码关联信息;否则,无法确定所述电话号码对应的电话号码关联信息。Preferably, the second processing module is further configured to determine the digits of the telephone number according to the telephone number; query the database according to the digits of the telephone number to determine whether the digits of the telephone number reach a preset threshold; if so, Determine the corresponding phone number associated information; otherwise, the phone number associated information corresponding to the phone number cannot be determined.
优选地,Preferably,
当所述第二处理模块确定所述电话号码对应的电话号码关联信息后,所述发送模块返回的电话号码查询响应中携带有所述电话号码对应的电话号码关联信息;After the second processing module determines the phone number associated information corresponding to the phone number, the phone number query response returned by the sending module carries the phone number associated information corresponding to the phone number;
当所述第二处理模块无法确定所述电话号码对应的电话号码关联信息时,所述发送模块返回的电话号码查询响应中携带有所述无法确定所述电话号码对应的电话号码关联信息。When the second processing module cannot determine the phone number associated information corresponding to the phone number, the phone number query response returned by the sending module carries the phone number associated information that cannot be determined corresponding to the phone number.
本发明提供了一种电话号码显示装置,所述装置包括:The present invention provides a telephone number display device, said device comprising:
接收单元,用于接收用户输入的电话号码;a receiving unit, configured to receive a phone number input by a user;
发送单元,用于发送电话号码查询请求,所述查询请求中携带有用户输入的电话号码;a sending unit, configured to send a phone number query request, the query request carrying the phone number input by the user;
所述接收单元,还用于接收电话号码查询响应;The receiving unit is also used to receive a telephone number query response;
获取单元,用于获取所述电话号码查询响应中携带的所述电话号码对应的电话号码关联信息;an acquiring unit, configured to acquire telephone number associated information corresponding to the telephone number carried in the telephone number query response;
显示单元,用于显示所述电话号码及其对应的电话号码关联信息。A display unit, configured to display the phone number and its corresponding phone number associated information.
优选地,所述电话号码关联信息包括号码归属信息和/或标记信息,Preferably, the phone number associated information includes number attribution information and/or tag information,
所述显示单元,用于显示所述电话号码及其对应的标记信息和/或号码归属信息。The display unit is configured to display the telephone number and its corresponding tag information and/or number attribution information.
优选地,所述号码归属信息包括号码归属地和/或号码归属运营商,Preferably, the number attribution information includes the number attribution and/or the number attribution operator,
所述显示单元,具体用于显示所述电话号码及其对应的号码归属地和/或号码归属运营商。The display unit is specifically configured to display the phone number and its corresponding number attribution and/or number attribution operator.
优选地,所述标记信息具体包括文字类别标记、图形类别标记和类别标记原因中的至少一种,Preferably, the tag information specifically includes at least one of a text category tag, a graphic category tag, and a reason for the category tag,
所述显示单元,具体用于显示所述电话号码对应的文字类别标记和/或图形类别标记和/或类别标记原因;The display unit is specifically used to display the text category mark and/or the graphic category mark and/or the reason for the category mark corresponding to the phone number;
其中,所述图形类别标记具有对应安全等级的背景色;Wherein, the graphic category mark has a background color corresponding to the security level;
所述显示单元,还具体用于根据所述图形类别标记对应的背景色显示具有相同背景色的电话号码。The display unit is further specifically configured to display phone numbers with the same background color according to the background color corresponding to the graphic category mark.
本发明提供了一种云端服务器,包括存储器以及处理器,所述存储器用于存储计算机程序,该计算机程序被处理器执行时实现电话号码查询方法的步骤。The invention provides a cloud server, which includes a memory and a processor, the memory is used to store a computer program, and when the computer program is executed by the processor, the steps of the telephone number query method are realized.
本发明提供了一种终端设备,包括存储器以及处理器,所述存储器用于存储计算机程序,该计算机程序被处理器执行时实现电话号码显示方法的步骤。The present invention provides a terminal device, including a memory and a processor, the memory is used to store a computer program, and when the computer program is executed by the processor, the steps of the telephone number display method are realized.
与现有技术相比,本发明至少具有以下优点:Compared with the prior art, the present invention has at least the following advantages:
本发明中,根据接收到的电话号码查询请求携带的电话号码来确定对应的电话号码关联信息,并将查询到的电话号码关联信息发送出去,实现了该电话号码的电话号码关联信息查询,以使用户能够及时获取到该电话号码的相关信息,确认该电话号码是否为危险电话,为用户的财产及人身安全提供了前提保障。In the present invention, the corresponding telephone number associated information is determined according to the telephone number carried in the received telephone number query request, and the queried telephone number associated information is sent out, realizing the telephone number associated information query of the telephone number, with The user can obtain relevant information of the phone number in time, confirm whether the phone number is a dangerous call, and provide a premise guarantee for the user's property and personal safety.
附图说明Description of drawings
图1是本发明提供的应用于服务器的电话号码查询方法的流程示意图;Fig. 1 is the schematic flow chart of the telephone number query method applied to the server provided by the present invention;
图2是本发明提供的标记信息的排列示意图;Fig. 2 is a schematic diagram of arrangement of marking information provided by the present invention;
图3是本发明提供的应用于移动终端的电话号码显示方法的流程示意图;FIG. 3 is a schematic flowchart of a method for displaying a phone number applied to a mobile terminal provided by the present invention;
图4是本发明提供的应用于服务器的电话号码查询装置的结构示意图;Fig. 4 is a schematic structural diagram of a telephone number query device applied to a server provided by the present invention;
图5是本发明提供的应用于移动终端的电话号码显示装置的结构示意图。Fig. 5 is a schematic structural diagram of a phone number display device applied to a mobile terminal provided by the present invention.
具体实施方式detailed description
本发明提出一种电话号码查询方法及装置、显示方法及装置、云端服务器及终端设备,下面结合附图,对本发明具体实施方式进行详细说明。The present invention proposes a telephone number query method and device, a display method and device, a cloud server and a terminal device. The specific embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能解释为对本发明的限制。Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention.
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本发明的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。应该理解,当我们称元件被“连接”或“耦接”到另一元件时,它可以直接连接或耦接到其他元件,或者也可以存在中间元件。此外,这里使用的“连接”或“耦接”可以包括无线连接或无线耦接。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任一单元和全部组合。Those skilled in the art will understand that unless otherwise stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the word "comprising" used in the description of the present invention refers to the presence of said features, integers, steps, operations, elements and/or components, but does not exclude the presence or addition of one or more other features, Integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Additionally, "connected" or "coupled" as used herein may include wireless connection or wireless coupling. The expression "and/or" used herein includes all or any elements and all combinations of one or more associated listed items.
本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本发明所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非像这里一样被特定定义,否则不会用理想化或过于正式的含义来解释。Those skilled in the art can understand that, unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art to which this invention belongs. It should also be understood that terms, such as those defined in commonly used dictionaries, should be understood to have meanings consistent with their meaning in the context of the prior art, and unless specifically defined as herein, are not intended to be idealized or overly Formal meaning to explain.
如图1所示,本发明提供了一种电话号码查询方法,应用于服务器,所述方法包括:As shown in Fig. 1, the present invention provides a kind of telephone number inquiry method, is applied to server, and described method comprises:
步骤101,接收电话号码查询请求,获取所述查询请求中携带的电话号码。Step 101, receiving a phone number query request, and obtaining the phone number carried in the query request.
其中,该电话号码查询请求可以是用户在未接打电话时的主动查询,也可以是用户在主动拨打电话时输入电话号码的过程中;该电话号码可以是各大通信运营商的电话号码,也可以是固话,或者400开头的电话,以及所属国家的特殊电话号码如110、120…,还可以是“9”开头的非民用电话以及800开头的电话号码等。Wherein, the phone number query request may be an active query when the user misses a call, or it may be during the process of inputting a phone number when the user actively makes a call; the phone number may be a phone number of a major communication operator, It can also be a fixed line, or a phone number starting with 400, and a special phone number of the country such as 110, 120..., or a non-civilian phone number starting with "9" and a phone number starting with 800.
对于接收到的电话号码可以随着输入随时查询,而并不需要用户完全输入后才进行查询;且在电话号码查询时,对于输入的电话号码自动识别,尤其当输入电话号码为固话时,不用输入区号也可以识别显示出电话号码的归属信息;如查询010-8530XXXX,在输入8530时,即可识别出其归属信息,省去了输入010,提高了查询效率;所以该自动识别电话号码归属信息的前提是,每一台使用该电话号码查询方法的移动终端均是基于实时联网的查询。The received telephone number can be queried at any time along with the input, and does not need to be queried after the user has completely input; and when the telephone number is queried, the input telephone number is automatically recognized, especially when the input telephone number is a fixed line, It can also identify and display the attribution information of the phone number without entering the area code; for example, when querying 010-8530XXXX, when entering 8530, the attribution information can be identified, eliminating the need to input 010 and improving the query efficiency; so the automatic identification of the phone number The premise of the attribution information is that each mobile terminal using the telephone number inquiry method is based on real-time network inquiry.
步骤102,根据所述电话号码确定对应的电话号码关联信息。Step 102, determine corresponding phone number associated information according to the phone number.
其中,所述电话号码关联信息包括号码归属信息和/或标记信息,所述根据所述电话号码确定对应的电话号码关联信息,包括:Wherein, the phone number associated information includes number attribution information and/or tag information, and determining the corresponding phone number associated information according to the phone number includes:
根据所述电话号码查询数据库,确定所述电话号码对应的号码归属信息和/或标记信息。Querying the database according to the telephone number to determine the number attribution information and/or tag information corresponding to the telephone number.
进一步地,所述号码归属信息包括号码归属地和号码归属运营商,所述根据所述电话号码查询数据库,确定所述电话号码对应的号码归属信息,具体包括:Further, the number attribution information includes the number attribution location and the number attribution operator, and the querying database according to the phone number to determine the number attribution information corresponding to the phone number specifically includes:
根据所述电话号码查询所述数据库,确定所述电话号码对应的号码归属地和/或号码归属运营商。The database is queried according to the phone number, and the number attribution and/or the number attribution operator corresponding to the phone number are determined.
所述号码归属信息还包括号码具体归属地,所述根据所述电话号码查询所述数据库,确定所述电话号码对应的号码归属地,包括:The number attribution information also includes the specific attribution of the number, and the querying the database according to the phone number to determine the number attribution corresponding to the phone number includes:
根据所述电话号码查询所述数据库,确定所述电话号码对应的号码具体归属地。The database is queried according to the telephone number, and the specific attribution of the number corresponding to the telephone number is determined.
其中,在查询电话号码的相关归属信息和标记信息时,可以根据用户输入的电话号码进行查询,下面以手机号码来做说明,随着用户的电话号码输入实时查询,即用户每输入1位电话号码即刻进行实时查询;如当用户输入1位电话号码时即时查询,当用户输入2位电话号码时即时查询,用户输入3位电话号码时即时查询…输入6位电话号码时即时查询显示…直至输入全部位数的电话号码。Among them, when querying the relevant attribution information and tag information of the phone number, the query can be performed according to the phone number input by the user. The following uses the mobile phone number as an illustration. As the user's phone number is input for real-time query, that is, every time the user enters a phone number The number is immediately checked in real time; for example, when the user enters a 1-digit phone number, it is instantly queried, when the user enters a 2-digit phone number, it is instantly queried, when the user enters a 3-digit phone number, it is instantly queried...When the user enters a 6-digit phone number, the real-time query is displayed...until Enter all digits of the phone number.
针对上述提到的实时查询,在查询过程中,可能会出现根据用户当前输入的预设位数电话号码无法查询到的情况,如用户输入了1位电话号码时是无法查询到的,只有当输入的电话号码位数达到预设阈值时,才能在数据库中查询到该电话号码关联信息,下面以一个具体实施例做详细阐述。For the real-time query mentioned above, during the query process, there may be situations where the phone number cannot be queried based on the preset digits currently entered by the user. For example, when the user enters a 1-digit phone number, it cannot be queried. Only when Only when the number of digits of the input phone number reaches the preset threshold value can the associated information of the phone number be queried in the database. A specific embodiment will be used to describe in detail below.
具体实施例一Specific embodiment one
在该具体实施例一中,以手机号码举例,要输入的电话号码为1869988xxxx,在输入前2位时无法在数据库中查询到对应的电话号码关联信息,在输入前3位“186”时可以查询显示的归属信息“中国联通”(号码归属地+号码归属运营商),当输入到前7位“1869988”时查询显示的归属信息“新疆喀什·联通”(号码具体归属地+号码归属运营商)。In this specific embodiment one, taking the mobile phone number as an example, the phone number to be input is 1869988xxxx, and the corresponding phone number related information cannot be found in the database when the first 2 digits are input, but can be entered when the first 3 digits "186" are entered. Query the displayed attribution information "China Unicom" (the number belongs to + the number belongs to the operator), and when the first 7 digits "1869988" are entered, the displayed attribution information "Xinjiang Kashgar Unicom" (the number belongs to + the number belongs to the operator) business).
当然,上述具体实施例一中所记载的根据预设位数电话号码的查询仅是本发明中一种针对手机号码的优选实施方式,但针对其他类型的电话号码并不仅局限于此。Of course, the query based on the preset digit phone number described in the first specific embodiment is only a preferred implementation mode for mobile phone numbers in the present invention, but it is not limited to other types of phone numbers.
进一步地,根据所述电话号码确定对应的电话号码关联信息,还包括:Further, determining corresponding phone number associated information according to the phone number also includes:
根据所述电话号码确定电话号码位数;determining the digits of the telephone number according to the telephone number;
根据所述电话号码位数查询数据库,确定所述电话号码位数是否达到预设阈值;Querying the database according to the digits of the telephone number to determine whether the digits of the telephone number reach a preset threshold;
若达到,确定对应的电话号码关联信息;否则,无法确定所述电话号码对应的电话号码关联信息。If so, determine the corresponding phone number associated information; otherwise, the phone number associated information corresponding to the phone number cannot be determined.
由于根据所述电话号码查询数据库可以确定所述电话号码对应的标记信息。故对于存储在云端服务器中每一个电话号码的标记信息而言,其标记过程包括:The tag information corresponding to the phone number can be determined by querying the database according to the phone number. Therefore, for the marking information of each phone number stored in the cloud server, the marking process includes:
对于任意一个电话号码,当有很多人对其进行信息标记后,云端服务器将所有对该电话号码的标记信息进行汇总,并结合该电话号码的使用行为(接打电话的次数、频率等)进行分析,从而确定出该电话号码的标记信息;举例,一个电话号码M,云端服务器接收到关于该电话号码M的标记信息有30条,该30条中涵盖了20条“外卖”的标记信息,6条“保险推销”的标记信息,以及4条“诈骗”的标记信息,并且云端服务器通过分析该电话号码M的行为发现,其在午饭时间、晚饭时间拨打电话频率很高,基于此,确定该电话号码M的标记信息为“外卖”。For any phone number, when many people mark it, the cloud server will summarize all the tagged information of the phone number, and combine the usage behavior of the phone number (number of times, frequency, etc.) analysis, thereby determining the tag information of the phone number; for example, a phone number M, the cloud server receives 30 tag information about the phone number M, and the 30 items cover 20 "takeaway" tag information, 6 pieces of marked information of "insurance sales" and 4 pieces of marked information of "fraud", and the cloud server analyzed the behavior of the phone number M and found that its calling frequency is very high during lunch time and dinner time. Based on this, it is determined The tag information of the phone number M is "takeaway".
更进一步地,所述标记信息具体包括文字类别标记、图形类别标记和类别标记原因中的至少一种,所述根据所述电话号码查询数据库,确定所述电话号码对应的标记信息,具体包括:Furthermore, the label information specifically includes at least one of a text category label, a graphic category label, and a category label reason, and the querying the database according to the phone number to determine the label information corresponding to the phone number specifically includes:
根据所述电话号码查询所述数据库,确定所述数据库中是否存储有与所述电话号码对应的文字类别标记;Querying the database according to the telephone number, and determining whether a character category mark corresponding to the telephone number is stored in the database;
若存储有,选取所述文字类别标记;If stored, select the text category mark;
根据所述文字类别标记选取其对应的图形类别标记和/或类别标记原因。Select the corresponding graphic category mark and/or the reason for the category mark according to the text category mark.
或,or,
所述根据所述电话号码查询数据库,确定所述电话号码对应的标记信息,具体包括:The querying the database according to the phone number to determine the tag information corresponding to the phone number specifically includes:
根据所述电话号码查询所述数据库,确定所述数据库中是否存储有与所述电话号码对应的图形类别标记;Querying the database according to the telephone number to determine whether there is a graphic category mark corresponding to the telephone number stored in the database;
若存储有,选取所述图形类别标记;If stored, select the graphic category mark;
根据所述图形类别标记选取其对应的文字类别标记和/或类别标记原因。Select the corresponding text category mark and/or the reason for the category mark according to the graphic category mark.
或,or,
所述根据所述电话号码查询数据库,确定所述电话号码对应的标记信息,具体包括:The querying the database according to the phone number to determine the tag information corresponding to the phone number specifically includes:
根据所述电话号码查询所述数据库,确定所述数据库中是否存储有与所述电话号码对应的类别标记原因;Querying the database according to the telephone number, and determining whether the cause of the category mark corresponding to the telephone number is stored in the database;
若存储有,选取所述类别标记原因;If stored, select the reason for the category mark;
根据所述类别标记原因选取其对应的文字类别标记和/或图形类别标记。Select the corresponding text category mark and/or graphic category mark according to the reason for the category mark.
在选取所述文字类别标记之后,还包括:After selecting said text category tag, also include:
确定所选取的文字类别标记对应的安全等级;Determine the security level corresponding to the selected text category mark;
且若选取了图形类别标记时,根据所述文字类别标记对应的安全等级选取所述图形类别标记对应的背景色。And if a graphic category mark is selected, the background color corresponding to the graphic category mark is selected according to the security level corresponding to the text category mark.
针对上述提到的根据电话号码查询数据库确定所述电话号码对应的标记信息的相关内容,下面以一个具体实施例做详细阐述。Regarding the above-mentioned related content of determining the tag information corresponding to the phone number according to the query database of the phone number, a specific embodiment will be used to describe in detail below.
具体实施例二Specific embodiment two
在该具体实施例二中,同样以手机号码举例。要输入的电话号码为1869988xxxx,在输入该手机号码11位“1869988xxxx”时查询显示的标记信息中,文字类别标记为“出租车”,对应匹配的图形类别标记为“出租车”的图形,且其背景色为绿色,类别标记原因为“疑似某打车平台软件”。In this specific embodiment 2, a mobile phone number is also used as an example. The phone number to be input is 1869988xxxx. In the marked information displayed when the 11-digit "1869988xxxx" of the mobile phone number is entered, the text category is marked as "taxi", and the corresponding matching graphic category is marked as "taxi", and Its background color is green, and the reason for the category mark is "suspected to be a taxi-hailing platform software".
当然,上述具体实施例二中所记载的电话号码标记信息的选取仅是本发明中一种针对手机号码的优选实施方式,但针对其他类型的电话号码并不仅局限于此。Of course, the selection of the phone number marking information described in the above-mentioned specific embodiment 2 is only a preferred implementation mode for mobile phone numbers in the present invention, but it is not limited to this for other types of phone numbers.
其中,标记信息中所包括的文字类别标记具体可以是出租车/外卖/可疑号码/正常号码/保险推销/诈骗/快递/发票/中介/救援等;类别标记原因可以是疑似通过某打车软件叫车/近期多人提到过/通话行为正常等);图形类别标记即为与具体的文字类别标记所匹配的图形。当然,无论是文字类别标记还是类别标记原因并不仅限于上述举例中的几个。Among them, the text category mark included in the mark information can specifically be taxi/takeaway/suspicious number/normal number/insurance promotion/fraud/express delivery/invoice/intermediary/rescue, etc.; car/recently mentioned by many people/normal call behavior, etc.); the graphic category mark is the graphic that matches the specific text category mark. Of course, whether it is a text category mark or a category mark reason is not limited to a few of the above examples.
对于文字类别标记而言,根据其具体的文字类别标记进行了安全等级划分,且各图形类别标记会根据其所对应的文字类别标记的安全等级不同具有不同的背景色。如“正常号码”的文字类别标记为安全级别,其对应的图形类别标记的背景色是绿色;“可疑号码”的文字类别标记为疑似危险级别,其对应的图形类别标记的背景色是黄色;“诈骗”的文字类别标记为危险级别,其对应的图形类别标记的背景色是红色。当然,上述安全级别的划分以及背景色的选取并不仅局限于此,任意进行安全级别划分的(如一级、二级、三级等)、安全级别数量、其他背景色选取的均在本发明的保护范围之内。For the text category mark, the security level is divided according to its specific text category mark, and each graphic category mark will have different background colors according to the security level of its corresponding text category mark. For example, the text category of "normal number" is marked as a safety level, and the background color of the corresponding graphic category label is green; the text category of "suspicious number" is marked as a suspected dangerous level, and the background color of the corresponding graphic category label is yellow; The text category of "fraud" is marked as a dangerous level, and the background color of the corresponding graphic category label is red. Of course, the division of the above-mentioned security levels and the selection of the background color are not limited to this, any security level division (such as level one, level two, level three, etc.), the number of security levels, and the selection of other background colors are all within the scope of the present invention. within the scope of protection.
其中,在文字类别标记和图形类别标记共存时,各标记信息中的文字类别标记和图形类别标记可以以组合形式排列显示,如图2所示,按照安全级别由上到下排列,如从安全到危险,但排列顺序并不仅限于此。Among them, when the text category mark and the graphic category mark coexist, the text category mark and the graphic category mark in each mark information can be arranged and displayed in a combined form, as shown in Figure 2, arranged from top to bottom according to the security level, such as from security Dangerous, but the order is not limited to this.
针对上述本发明中提到的数据库,其在本发明实施例中指的是同时存储电话号码相关归属信息和相关标记信息的数据库;当然,该数据库也可以分成两个数据库,即云端服务器中存储电话号码相关归属信息的第一数据库和云端服务器中存储相关标记信息的第二数据库;或,云端服务器中存储相关标记信息的第一数据库和云端服务器中存储电话号码相关归属信息的第二数据库。For the database mentioned in the above-mentioned present invention, it refers to a database that simultaneously stores phone number-related attribution information and related tag information in the embodiment of the present invention; The first database for number-related attribution information and the second database for storing related label information in the cloud server; or, the first database for storing related label information in the cloud server and the second database for storing phone number-related attribution information in the cloud server.
步骤103,返回电话号码查询响应。Step 103, returning a phone number query response.
该返回的电话号码查询响应中具体包括:The returned phone number query response specifically includes:
当确定所述电话号码对应的电话号码关联信息后,返回的电话号码查询响应中携带有所述电话号码对应的电话号码关联信息;After determining the telephone number associated information corresponding to the telephone number, the returned telephone number query response carries the telephone number associated information corresponding to the telephone number;
当无法确定所述电话号码对应的电话号码关联信息时,返回的电话号码查询响应中携带有所述无法确定所述电话号码对应的电话号码关联信息。When the phone number associated information corresponding to the phone number cannot be determined, the returned phone number query response carries the phone number associated information that cannot be determined corresponding to the phone number.
基于上述本发明所提供的应用于服务器的电话号码查询方法,本发明还提供了一种电话号码显示方法,应用于移动终端,如图3所示,所述方法包括:Based on the telephone number query method applied to the server provided by the present invention, the present invention also provides a telephone number display method applied to a mobile terminal, as shown in FIG. 3 , the method includes:
步骤301,接收用户输入的电话号码。Step 301, receiving a phone number input by a user.
步骤302,发送电话号码查询请求。Step 302, sending a phone number query request.
该查询请求中携带有用户输入的电话号码。The query request carries the phone number input by the user.
如前所述,该查询请求中电话号码的位数并不做限制,随着用户的输入实时进行查询。As mentioned above, the number of digits of the phone number in the query request is not limited, and the query is performed in real time as the user inputs.
步骤303,接收电话号码查询响应。Step 303, receiving a phone number query response.
在接收到该电话号码查询响应后,获取所述电话号码查询响应中携带的所述电话号码对应的电话号码关联信息。After receiving the telephone number inquiry response, acquire the telephone number associated information corresponding to the telephone number carried in the telephone number inquiry response.
步骤304,显示所述电话号码及其对应的电话号码关联信息。Step 304, displaying the phone number and its corresponding phone number associated information.
所述电话号码关联信息包括标记信息和/或号码归属信息,所述显示所述电话号码及其对应的电话号码关联信息,包括:The phone number associated information includes tag information and/or number attribution information, and the displaying the phone number and its corresponding phone number associated information includes:
显示所述电话号码及其对应的标记信息和/或号码归属信息。Displaying the phone number and its corresponding tag information and/or number attribution information.
进一步地,所述号码归属信息包括号码归属地和/或号码归属运营商,所述显示所述电话号码及其对应的号码归属信息,具体包括:Further, the number attribution information includes the number attribution location and/or the number attribution operator, and the displaying the phone number and its corresponding number attribution information specifically includes:
显示所述电话号码及其对应的号码归属地和/或号码归属运营商。The phone number and its corresponding number attribution and/or number attribution operator are displayed.
进一步地,所述标记信息具体包括文字类别标记、图形类别标记和类别标记原因中的至少一种,所述显示所述电话号码及其对应的标记信息,具体包括:Further, the label information specifically includes at least one of a text category label, a graphic category label, and a category label reason, and the displaying the phone number and its corresponding label information specifically includes:
显示所述电话号码对应的文字类别标记和/或图形类别标记和/或类别标记原因;displaying the text category mark and/or graphic category mark and/or the reason for the category mark corresponding to the telephone number;
其中,所述图形类别标记具有对应安全等级的背景色;Wherein, the graphic category mark has a background color corresponding to the security level;
并,根据所述图形类别标记对应的背景色显示具有相同背景色的电话号码。And, display the phone numbers with the same background color according to the background color corresponding to the graphic category mark.
其中,用户输入的电话号码的背景色是随着图形类别标记的背景色变化而变化,与该图形类别标记的背景色保持一致。Wherein, the background color of the phone number input by the user changes with the background color of the graphic category mark, and is consistent with the background color of the graphic category mark.
基于上述本发明所提供的电话号码查询方法,本发明还提供了一种电话号码查询装置,应用于服务器,如图4所示,所述装置包括:Based on the telephone number query method provided by the present invention, the present invention also provides a telephone number query device applied to a server, as shown in Figure 4, the device includes:
第一处理模块41,用于接收电话号码查询请求,获取所述查询请求中携带的电话号码;The first processing module 41 is configured to receive a phone number query request, and obtain the phone number carried in the query request;
第二处理模块42,用于根据所述电话号码确定对应的电话号码关联信息;The second processing module 42 is configured to determine corresponding phone number associated information according to the phone number;
发送模块43,用于返回电话号码查询响应,所述电话号码查询响应中携带有所述电话号码对应的电话号码关联信息。The sending module 43 is configured to return a phone number query response, where the phone number query response carries phone number associated information corresponding to the phone number.
优选地,所述电话号码关联信息包括号码归属信息和/或标记信息,Preferably, the phone number associated information includes number attribution information and/or tag information,
所述第二处理模块42,用于根据所述电话号码查询数据库,确定所述电话号码对应的号码归属信息和/或标记信息。The second processing module 42 is configured to query the database according to the telephone number, and determine the number attribution information and/or tag information corresponding to the telephone number.
优选地,所述号码归属信息包括号码归属地和号码归属运营商,Preferably, the number attribution information includes the number attribution location and the number attribution operator,
所述第二处理模块42,具体用于根据所述电话号码查询所述数据库,确定所述电话号码对应的号码归属地和/或号码归属运营商。The second processing module 42 is specifically configured to query the database according to the phone number, and determine the number attribution and/or the number attribution operator corresponding to the phone number.
优选地,所述号码归属地信息具体包括号码具体归属地,Preferably, the number attribution information specifically includes the specific attribution of the number,
所述第二处理模块42,还具体用于根据所述电话号码查询所述数据库,确定所述电话号码对应的号码具体归属地。The second processing module 42 is also specifically configured to query the database according to the phone number, and determine the specific attribution of the number corresponding to the phone number.
优选地,所述标记信息具体包括文字类别标记、图形类别标记和类别标记原因中的至少一种,,Preferably, the tag information specifically includes at least one of a text category tag, a graphic category tag, and a reason for the category tag,
所述第二处理模块42,还具体用于根据所述电话号码查询所述数据库,确定所述数据库中是否存储有与所述电话号码对应的文字类别标记;若存储有,选取所述文字类别标记;根据所述文字类别标记选取其记对应的图形类别标记和/或类别标记原因。The second processing module 42 is also specifically configured to query the database according to the telephone number, determine whether there is a character category mark corresponding to the telephone number stored in the database; if it is stored, select the character category mark; select the corresponding graphic category mark and/or the reason for the category mark according to the text category mark.
或,or,
所述第二处理模块,还具体用于根据所述电话号码查询所述数据库,确定所述数据库中是否存储有与所述电话号码对应的图形类别标记;若存储有,选取所述图形类别标记;根据所述图形类别标记选取其对应的文字类别标记和/或类别标记原因。The second processing module is further specifically configured to query the database according to the telephone number, and determine whether a graphic category mark corresponding to the telephone number is stored in the database; if it is stored, select the graphic category mark ; Select the corresponding text category mark and/or the reason for the category mark according to the graphic category mark.
或,or,
所述第二处理模块,还具体用于根据所述电话号码查询所述数据库,确定所述数据库中是否存储有与所述电话号码对应的类别标记原因;若存储有,选取所述类别标记原因;根据所述类别标记原因选取其对应的文字类别标记和/或图形类别标记。The second processing module is further specifically configured to query the database according to the telephone number, and determine whether the category marking reason corresponding to the telephone number is stored in the database; if it is stored, select the category marking reason ; Select the corresponding text category mark and/or graphic category mark according to the reason for the category mark.
优选地,所述查询装置还包括:Preferably, the query device also includes:
第三处理模块44,用于确定所选取的文字类别标记对应的安全等级;且若所述第二处理模块42选取了图形类别标记时,根据对应的安全等级选取所述图形类别标记对应的背景色。The third processing module 44 is used to determine the security level corresponding to the selected text category mark; and if the second processing module 42 selects a graphic category mark, select the background corresponding to the graphic category mark according to the corresponding security level color.
所述第二处理模块42,还用于根据所述电话号码确定电话号码位数;根据所述电话号码位数查询数据库,确定所述电话号码位数是否达到预设阈值;若达到,确定对应的电话号码关联信息;否则,无法确定所述电话号码对应的电话号码关联信息。The second processing module 42 is also used to determine the digits of the telephone number according to the telephone number; query the database according to the digits of the telephone number to determine whether the digits of the telephone number reach a preset threshold; if so, determine the corresponding The phone number associated information; otherwise, the phone number associated information corresponding to the phone number cannot be determined.
当所述第二处理模块42确定所述电话号码对应的电话号码关联信息后,所述发送模块43返回的电话号码查询响应中携带有所述电话号码对应的电话号码关联信息;After the second processing module 42 determines the phone number associated information corresponding to the phone number, the phone number query response returned by the sending module 43 carries the phone number associated information corresponding to the phone number;
当所述第二处理模块42无法确定所述电话号码对应的电话号码关联信息时,所述发送模块43返回的电话号码查询响应中携带有所述无法确定所述电话号码对应的电话号码关联信息。When the second processing module 42 cannot determine the phone number associated information corresponding to the phone number, the phone number query response returned by the sending module 43 carries the phone number associated information that cannot be determined corresponding to the phone number .
基于上述本发明所提供的电话号码显示方法,本发明还提供了一种电话号码显示装置,如图5所示,所述装置包括:Based on the telephone number display method provided by the present invention, the present invention also provides a telephone number display device, as shown in Figure 5, the device includes:
接收单元51,用于接收用户输入的电话号码;a receiving unit 51, configured to receive a phone number input by the user;
发送单元52,用于发送电话号码查询请求,所述查询请求中携带有用户输入的电话号码;A sending unit 52, configured to send a phone number query request, the phone number input by the user is carried in the query request;
所述接收单元51,还用于接收电话号码查询响应;The receiving unit 51 is also configured to receive a telephone number query response;
获取单元53,用于获取所述电话号码查询响应中携带的所述电话号码对应的电话号码关联信息;An acquiring unit 53, configured to acquire telephone number associated information corresponding to the telephone number carried in the telephone number query response;
显示单元54,用于显示所述电话号码及其对应的电话号码关联信息。The display unit 54 is configured to display the phone number and its corresponding phone number associated information.
优选地,所述电话号码关联信息包括标记信息和/或号码归属信息,Preferably, the phone number association information includes tag information and/or number attribution information,
所述显示单元54,用于显示所述电话号码及其对应的标记信息和/或号码归属信息。The display unit 54 is configured to display the telephone number and its corresponding label information and/or number attribution information.
优选地,所述号码归属信息包括号码归属地和/或号码归属运营商,Preferably, the number attribution information includes the number attribution and/or the number attribution operator,
所述显示单元54,具体用于显示所述电话号码及其对应的号码归属地和/或号码归属运营商。The display unit 54 is specifically configured to display the telephone number and its corresponding number attribution and/or number attribution operator.
优选地,所述标记信息具体包括文字类别标记、图形类别标记和类别标记原因中的至少一种,Preferably, the tag information specifically includes at least one of a text category tag, a graphic category tag, and a reason for the category tag,
所述显示单元54,具体用于显示所述电话号码对应的文字类别标记和/或图形类别标记和/或类别标记原因;The display unit 54 is specifically configured to display the text category mark and/or the graphic category mark and/or the reason for the category mark corresponding to the phone number;
其中,所述图形类别标记具有对应安全等级的背景色;Wherein, the graphic category mark has a background color corresponding to the security level;
所述显示单元,还具体用于根据所述图形类别标记对应的背景色显示具有相同背景色的电话号码。The display unit is further specifically configured to display phone numbers with the same background color according to the background color corresponding to the graphic category mark.
本发明提供了一种云端服务器,包括存储器以及处理器,所述存储器用于存储计算机程序,该计算机程序被处理器执行时实现上述电话号码查询方法的步骤。The present invention provides a cloud server, including a memory and a processor, the memory is used to store a computer program, and when the computer program is executed by the processor, the steps of the above telephone number query method are realized.
本发明提供了一种终端设备,包括存储器以及处理器,所述存储器用于存储计算机程序,该计算机程序被处理器执行时实现上述电话号码显示方法的步骤。The present invention provides a terminal device, including a memory and a processor, the memory is used to store a computer program, and when the computer program is executed by the processor, the steps of the above method for displaying a telephone number are realized.
本发明中,根据接收到的电话号码查询请求携带的电话号码来确定对应的电话号码关联信息,并将查询到的电话号码关联信息发送出去,实现了该电话号码的电话号码关联信息查询,以使用户能够及时获取到该电话号码的相关信息,确认该电话号码是否为危险电话,从而提高了用户的安全性。In the present invention, the corresponding telephone number associated information is determined according to the telephone number carried in the received telephone number query request, and the queried telephone number associated information is sent out, realizing the telephone number associated information query of the telephone number, with The user can obtain relevant information of the phone number in time, and confirm whether the phone number is a dangerous phone number, thereby improving the safety of the user.
本技术领域技术人员可以理解,可以用计算机程序指令来实现这些结构图和/或框图和/或流图中的每个框以及这些结构图和/或框图和/或流图中的框的组合。本技术领域技术人员可以理解,可以将这些计算机程序指令提供给通用计算机、专业计算机或其他可编程数据处理方法的处理器来实现,从而通过计算机或其他可编程数据处理方法的处理器来执行本发明公开的结构图和/或框图和/或流图的框或多个框中指定的方案。Those skilled in the art will understand that computer program instructions can be used to implement each block in these structural diagrams and/or block diagrams and/or flow diagrams and combinations of blocks in these structural diagrams and/or block diagrams and/or flow diagrams . Those skilled in the art can understand that these computer program instructions can be provided to general-purpose computers, professional computers, or processors of other programmable data processing methods for implementation, so that the computer or processors of other programmable data processing methods can execute the present invention. A scheme specified in a block or blocks of a structure diagram and/or a block diagram and/or a flow diagram of the invention disclosure.
其中,本发明装置的各个模块可以集成于一体,也可以分离部署。上述模块可以合并为一个模块,也可以进一步拆分成多个子模块。Wherein, each module of the device of the present invention can be integrated into one body, or can be deployed separately. The above modules can be combined into one module, or can be further split into multiple sub-modules.
本领域技术人员可以理解附图只是一个优选实施例的示意图,附图中的模块或流程并不一定是实施本发明所必须的。Those skilled in the art can understand that the drawing is only a schematic diagram of a preferred embodiment, and the modules or processes in the drawing are not necessarily necessary for implementing the present invention.
本领域技术人员可以理解实施例中的装置中的模块可以按照实施例描述进行分布于实施例的装置中,也可以进行相应变化位于不同于本实施例的一个或多个装置中。上述实施例的模块可以合并为一个模块,也可以进一步拆分成多个子模块。Those skilled in the art can understand that the modules in the device in the embodiment can be distributed in the device in the embodiment according to the description in the embodiment, or can be located in one or more devices different from the embodiment according to corresponding changes. The modules in the above embodiments can be combined into one module, and can also be further divided into multiple sub-modules.
上述本发明序号仅仅为了描述,不代表实施例的优劣。The above serial numbers of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments.
以上公开的仅为本发明的几个具体实施例,但是,本发明并非局限于此,任何本领域的技术人员能思之的变化都应落入本发明的保护范围。The above disclosures are only a few specific embodiments of the present invention, however, the present invention is not limited thereto, and any changes conceivable by those skilled in the art shall fall within the protection scope of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710549250.4A CN107317935A (en) | 2017-07-07 | 2017-07-07 | Telephone number query, display methods and device, cloud server and terminal device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710549250.4A CN107317935A (en) | 2017-07-07 | 2017-07-07 | Telephone number query, display methods and device, cloud server and terminal device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN107317935A true CN107317935A (en) | 2017-11-03 |
Family
ID=60177679
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710549250.4A Pending CN107317935A (en) | 2017-07-07 | 2017-07-07 | Telephone number query, display methods and device, cloud server and terminal device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107317935A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109714254A (en) * | 2019-01-24 | 2019-05-03 | 深圳云号科技有限公司 | A kind of number discrimination method and device |
| WO2023122917A1 (en) * | 2021-12-27 | 2023-07-06 | 北京小米移动软件有限公司 | Information processing method and apparatus, communication device, and storage medium |
Citations (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101409878A (en) * | 2008-11-21 | 2009-04-15 | 闻泰集团有限公司 | Information block for telephone number dependency name and method for querying dependency of incoming call |
| CN103020060A (en) * | 2011-09-20 | 2013-04-03 | 佳都新太科技股份有限公司 | Number segment matching algorithm based on tree structure and realization method of number segment matching algorithm |
| CN103220391A (en) * | 2013-04-08 | 2013-07-24 | 北京小米科技有限责任公司 | Cloud address book-based device, server and calling method |
| CN104023141A (en) * | 2014-06-19 | 2014-09-03 | 北京奇虎科技有限公司 | Communication contact information display method, client side and electronic equipment |
| CN104113626A (en) * | 2014-06-26 | 2014-10-22 | 北京奇虎科技有限公司 | Communication processing method and system |
| CN104244207A (en) * | 2014-09-29 | 2014-12-24 | 小米科技有限责任公司 | Method and device for processing numbers in messages |
| CN104270521A (en) * | 2014-09-26 | 2015-01-07 | 北京奇虎科技有限公司 | Method and mobile terminal for processing incoming call number |
| CN104320525A (en) * | 2014-09-19 | 2015-01-28 | 小米科技有限责任公司 | Method and device for identifying telephone number |
| CN104506731A (en) * | 2014-12-26 | 2015-04-08 | 北京奇虎科技有限公司 | Unfamiliar call reminding method and unfamiliar call reminding device |
| CN105611513A (en) * | 2016-02-29 | 2016-05-25 | 宇龙计算机通信科技(深圳)有限公司 | Short message display method and system for mobile terminal |
| CN105791605A (en) * | 2014-12-25 | 2016-07-20 | 北京奇虎科技有限公司 | Method and device for querying number information |
| US20160294998A1 (en) * | 2015-03-31 | 2016-10-06 | Xiaomi Inc. | Methods and devices for labeling a number |
| CN106385483A (en) * | 2016-09-05 | 2017-02-08 | 北京奇虎科技有限公司 | Phone number processing method and mobile terminal and cloud server thereof |
| CN106534464A (en) * | 2016-11-30 | 2017-03-22 | 依偎科技(南昌)有限公司 | Call processing method and terminal |
| CN106534463A (en) * | 2015-09-15 | 2017-03-22 | 中国移动通信集团公司 | Strange incoming call processing method, device, terminal and server |
-
2017
- 2017-07-07 CN CN201710549250.4A patent/CN107317935A/en active Pending
Patent Citations (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101409878A (en) * | 2008-11-21 | 2009-04-15 | 闻泰集团有限公司 | Information block for telephone number dependency name and method for querying dependency of incoming call |
| CN103020060A (en) * | 2011-09-20 | 2013-04-03 | 佳都新太科技股份有限公司 | Number segment matching algorithm based on tree structure and realization method of number segment matching algorithm |
| CN103220391A (en) * | 2013-04-08 | 2013-07-24 | 北京小米科技有限责任公司 | Cloud address book-based device, server and calling method |
| CN104023141A (en) * | 2014-06-19 | 2014-09-03 | 北京奇虎科技有限公司 | Communication contact information display method, client side and electronic equipment |
| CN104113626A (en) * | 2014-06-26 | 2014-10-22 | 北京奇虎科技有限公司 | Communication processing method and system |
| CN104320525A (en) * | 2014-09-19 | 2015-01-28 | 小米科技有限责任公司 | Method and device for identifying telephone number |
| CN104270521A (en) * | 2014-09-26 | 2015-01-07 | 北京奇虎科技有限公司 | Method and mobile terminal for processing incoming call number |
| CN104244207A (en) * | 2014-09-29 | 2014-12-24 | 小米科技有限责任公司 | Method and device for processing numbers in messages |
| CN105791605A (en) * | 2014-12-25 | 2016-07-20 | 北京奇虎科技有限公司 | Method and device for querying number information |
| CN104506731A (en) * | 2014-12-26 | 2015-04-08 | 北京奇虎科技有限公司 | Unfamiliar call reminding method and unfamiliar call reminding device |
| US20160294998A1 (en) * | 2015-03-31 | 2016-10-06 | Xiaomi Inc. | Methods and devices for labeling a number |
| CN106534463A (en) * | 2015-09-15 | 2017-03-22 | 中国移动通信集团公司 | Strange incoming call processing method, device, terminal and server |
| CN105611513A (en) * | 2016-02-29 | 2016-05-25 | 宇龙计算机通信科技(深圳)有限公司 | Short message display method and system for mobile terminal |
| CN106385483A (en) * | 2016-09-05 | 2017-02-08 | 北京奇虎科技有限公司 | Phone number processing method and mobile terminal and cloud server thereof |
| CN106534464A (en) * | 2016-11-30 | 2017-03-22 | 依偎科技(南昌)有限公司 | Call processing method and terminal |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109714254A (en) * | 2019-01-24 | 2019-05-03 | 深圳云号科技有限公司 | A kind of number discrimination method and device |
| WO2023122917A1 (en) * | 2021-12-27 | 2023-07-06 | 北京小米移动软件有限公司 | Information processing method and apparatus, communication device, and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TWI658428B (en) | Express delivery system and method | |
| CN104038627B (en) | Method and device for prompting terminal information and terminal | |
| CN105187676B (en) | Method and device for processing a call request | |
| US9277040B2 (en) | Presence based connecting number search | |
| CN104090989B (en) | The search system and method for website based on mobile terminal | |
| CN102663105A (en) | Establishing method and system of number information database | |
| CN105376419A (en) | Method and equipment for performing telephone communication in electronic terminal | |
| CN107180071A (en) | A kind of big data risk identification based on mobile intelligent terminal, early warning and emergent platform | |
| CN105678495A (en) | Real-time logistics monitoring system based on intelligent mobile terminal | |
| CN105956008A (en) | Picture management method and terminal | |
| CN105611040A (en) | Information display method, information display device and terminal | |
| CN107317935A (en) | Telephone number query, display methods and device, cloud server and terminal device | |
| CN106713637A (en) | Method and device for establishing call item | |
| CN109636127A (en) | A kind of network based on positioning puts mutual assistance platform and its application method on someone's head | |
| CN101783835A (en) | Mobile phone short message management method | |
| CN104580638B (en) | A kind of method and device of telephone number mark | |
| CN107332968A (en) | Display methods, device and terminal device based on suspended window | |
| CN104410744B (en) | Method and device based on minor number intelligent dialing | |
| CN104935736A (en) | Method and device for processing missed calls | |
| CN105744525A (en) | Method, device and system for mobile communication terminal to identify harassing communication | |
| WO2018120882A1 (en) | Method for acquiring event information on mobile terminal and mobile terminal | |
| CN107204912A (en) | The voice management method and device of contact person | |
| CN104320547B (en) | System communication record display methods and the system of the calling phone based on minor number | |
| CN116682189A (en) | Method, equipment, terminal and medium for realizing automatic positioning sign-in of group personnel | |
| CN106101156A (en) | A kind of telephone polling method, mobile terminal and server |
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 | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171103 |