CN108718271A - Method, device, storage medium and terminal for processing friend request - Google Patents
Method, device, storage medium and terminal for processing friend request Download PDFInfo
- Publication number
- CN108718271A CN108718271A CN201810362277.7A CN201810362277A CN108718271A CN 108718271 A CN108718271 A CN 108718271A CN 201810362277 A CN201810362277 A CN 201810362277A CN 108718271 A CN108718271 A CN 108718271A
- Authority
- CN
- China
- Prior art keywords
- requesting party
- abnormal
- information
- user
- request
- 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
- 238000000034 method Methods 0.000 title abstract description 40
- 230000002159 abnormal effect Effects 0.000 claims abstract description 173
- 238000003672 processing method Methods 0.000 claims description 16
- 238000004590 computer program Methods 0.000 claims description 8
- 230000006399 behavior Effects 0.000 description 10
- 230000002093 peripheral effect Effects 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000005856 abnormality Effects 0.000 description 3
- 230000000007 visual effect Effects 0.000 description 3
- 230000000903 blocking effect Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 238000010897 surface acoustic wave method Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000000644 propagated effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 230000001755 vocal effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/21—Monitoring or handling of messages
- H04L51/212—Monitoring or handling of messages using filtering or selective blocking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/52—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域technical field
本申请实施例涉及移动终端技术领域,尤其涉及好友请求的处理方法、装置、存储介质及终端。The embodiments of the present application relate to the technical field of mobile terminals, and in particular to a method, device, storage medium and terminal for processing friend requests.
背景技术Background technique
随着移动终端不断发展,越来越多的用户在终端上安装了社交类应用软件。社交类应用软件包括好友添加功能,在添加好友之后可以进行聊天。With the continuous development of mobile terminals, more and more users have installed social application software on the terminals. The social application software includes the function of adding friends, and chatting can be carried out after adding friends.
目前,陌生人可以通过“摇一摇”或“附近的人”等途径搜索到用户,然后向用户发起好友请求。在用户接收了好友请求后,系统会提示用户新的朋友是否存在威胁。但是,在添加了存在威胁的好友后,会影响用户信息安全。At present, strangers can search for users through "shake" or "people nearby", and then initiate friend requests to users. After the user accepts the friend request, the system will prompt the user whether the new friend is a threat. However, after adding a friend who is a threat, it will affect the security of user information.
发明内容Contents of the invention
本申请实施例的目的是提供一种好友请求的处理方法、装置、存储介质及终端,可以提高用户信息安全性。The purpose of the embodiments of the present application is to provide a friend request processing method, device, storage medium and terminal, which can improve user information security.
第一方面,本申请实施例提供了一种好友请求的处理方法,包括:In the first aspect, the embodiment of the present application provides a method for processing a friend request, including:
接收到好友请求时,获取请求方的异常参考信息;When receiving a friend request, obtain the abnormal reference information of the requesting party;
根据所述异常参考信息判断所述请求方是否为异常用户;judging whether the requester is an abnormal user according to the abnormal reference information;
如果所述请求方为异常用户,则屏蔽所述好友请求。If the requesting party is an abnormal user, the friend request is shielded.
第二方面,本申请实施例提供了一种好友请求的处理装置,包括:In the second aspect, the embodiment of the present application provides a device for processing friend requests, including:
获取模块,用于接收到好友请求时,获取请求方的异常参考信息;An acquisition module, configured to acquire abnormal reference information of the requesting party when a friend request is received;
判断模块,用于根据所述获取模块获取的所述异常参考信息判断所述请求方是否为异常用户;A judging module, configured to judge whether the requester is an abnormal user according to the abnormal reference information acquired by the acquiring module;
请求处理模块,用于如果所述请求方为异常用户,则屏蔽所述好友请求。A request processing module, configured to shield the friend request if the requester is an abnormal user.
第三方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如第一方面所示的好友请求的处理方法。In a third aspect, the embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the method for processing a friend request as shown in the first aspect is implemented.
第四方面,本申请实施例提供了一种终端,包括存储器,处理器及存储在存储器上并可在处理器运行的计算机程序,所述处理器执行所述计算机程序时实现如第一方面所示的好友请求的处理方法。In a fourth aspect, an embodiment of the present application provides a terminal, including a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the computer program, the computer program described in the first aspect is implemented. How to handle the displayed friend request.
本申请实施例中提供的好友请求的处理方案,首先接收到好友请求时,获取请求方的异常参考信息;然后,根据所述异常参考信息判断所述请求方是否为异常用户;最后,如果所述请求方为异常用户,则屏蔽所述好友请求,能够提高用户信息安全性。The solution to the friend request provided in the embodiment of the present application firstly obtains the abnormal reference information of the requesting party when receiving the friend request; then, judges whether the requesting party is an abnormal user according to the abnormal reference information; finally, if the If the requesting party is an abnormal user, shielding the friend request can improve user information security.
附图说明Description of drawings
图1为本申请实施例提供的一种好友请求的处理方法的流程示意图;FIG. 1 is a schematic flowchart of a method for processing a friend request provided by an embodiment of the present application;
图2为本申请实施例提供的另一种好友请求的处理方法的流程示意图;FIG. 2 is a schematic flowchart of another method for processing a friend request provided by an embodiment of the present application;
图3为本申请实施例提供的另一种好友请求的处理方法的流程示意图;FIG. 3 is a schematic flowchart of another method for processing a friend request provided by an embodiment of the present application;
图4为本申请实施例提供的另一种好友请求的处理方法的流程示意图;FIG. 4 is a schematic flowchart of another method for processing a friend request provided by an embodiment of the present application;
图5为本申请实施例提供的另一种好友请求的处理方法的流程示意图;FIG. 5 is a schematic flowchart of another method for processing a friend request provided by an embodiment of the present application;
图6为本申请实施例提供的另一种好友请求的处理方法的流程示意图;FIG. 6 is a schematic flowchart of another method for processing a friend request provided by an embodiment of the present application;
图7为本申请实施例提供的一种好友请求的处理装置的结构示意图;FIG. 7 is a schematic structural diagram of a device for processing a friend request provided by an embodiment of the present application;
图8为本申请实施例提供的一种移动终端的结构示意图。FIG. 8 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present application.
具体实施方式Detailed ways
下面结合附图并通过具体实施方式来进一步说明本申请的技术方案。可以理解的是,此处所描述的具体实施例仅仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。The technical solution of the present application will be further described below in conjunction with the accompanying drawings and through specific implementation methods. It should be understood that the specific embodiments described here are only used to explain the present application, but not to limit the present application. In addition, it should be noted that, for the convenience of description, only some structures related to the present application are shown in the drawings but not all structures.
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,各步骤的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the steps as sequential processing, many of the steps may be performed in parallel, concurrently, or simultaneously. Additionally, the order of steps may be rearranged. The process may be terminated when its operations are complete, but may also have additional steps not included in the figure. The processing may correspond to a method, function, procedure, subroutine, subroutine, or the like.
随着移动终端不断发展,越来越多的用户在终端上安装了社交类应用软件。社交类应用软件包括好友添加功能,在添加好友之后可以进行聊天。目前,陌生人可以通过“摇一摇”或“附近的人”等途径搜索到用户,然后向用户发起好友请求。在用户接收了好友请求后,系统会提示用户新的朋友是否存在威胁。用户在看到提示信息后,会在心理上产生不安和惶恐。且存在威胁的用户可通过查看用户的朋友圈等功能发布的信息获取用户个人信息,对用户信息安全造成威胁。With the continuous development of mobile terminals, more and more users have installed social application software on the terminals. The social application software includes the function of adding friends, and chatting can be carried out after adding friends. At present, strangers can search for users through "shake" or "people nearby", and then initiate friend requests to users. After the user accepts the friend request, the system will prompt the user whether the new friend is a threat. After seeing the prompt information, the user will feel uneasy and panic psychologically. And users who are threatening can obtain the user's personal information by viewing the information released by functions such as the user's circle of friends, which poses a threat to the user's information security.
本申请实施例提供了一种好友请求的处理方法,能够在好友请求阶段判断请求方是否为异常用户,如果为异常用户则屏蔽好友请求,进而避免用户在添加好友之后再将具有威胁的好友拉入黑名单,提高用户信息安全性。具体方案如下所示:The embodiment of the present application provides a friend request processing method, which can judge whether the requester is an abnormal user in the friend request stage, and if it is an abnormal user, block the friend request, thereby preventing the user from adding a friend who is threatening after adding a friend. into the blacklist to improve user information security. The specific plan is as follows:
图1为本申请实施例提供的好友请求的处理方法的流程示意图,该方法用于终端进行好友请求的处理的情况,该方法可以由安装有社交类应用程序的移动终端来执行,该移动终端可以为智能手机、平板电脑、可穿戴设备、笔记本电脑等,其中社交类应用程序包括即时聊天应用(如微信、腾讯QQ或MSN等)和社交应用(如微博或具有社交属性的游戏应用等),该方法具体包括如下步骤:Fig. 1 is a schematic flowchart of a method for processing a friend request provided by an embodiment of the present application. The method is used in the case where a terminal processes a friend request. The method can be executed by a mobile terminal installed with a social application program. The mobile terminal It can be smartphones, tablets, wearable devices, laptops, etc. Social applications include instant chat applications (such as WeChat, Tencent QQ or MSN, etc.) and social applications (such as Weibo or game applications with social attributes, etc.) ), the method specifically includes the following steps:
步骤110、接收到好友请求时,获取请求方的异常参考信息。Step 110, when a friend request is received, obtain abnormal reference information of the requesting party.
请求方可以通过二维码扫描、摇动手机搜索关键字等方式查找到用户,并向用户发起好友请求。好友请求由请求方终端发送至服务器,然后由服务器发送至用户终端。用户终端接收到服务器发送的好友请求时,通过服务器获取请求方的异常参考信息。异常参考信息包括请求方的账号信息、登录位置信息、被投诉信息、被拉黑信息以及诈骗信息中的一个或多个。可以由独立的信息存储服务器存储每个用户的异常参考信息,用户终端接收到好友请求时,获取请求方标识,使用请求方标识从信息存储服务器获取异常参考信息。The requester can find the user by scanning the QR code, shaking the mobile phone to search keywords, etc., and initiate a friend request to the user. The friend request is sent from the requesting terminal to the server, and then sent to the user terminal by the server. When the user terminal receives the friend request sent by the server, it obtains the abnormal reference information of the requesting party through the server. The abnormal reference information includes one or more of the requester's account information, login location information, complaint information, blacklisted information, and fraud information. The abnormal reference information of each user may be stored by an independent information storage server. When the user terminal receives a friend request, it obtains the requester ID, and uses the requester ID to obtain the abnormal reference information from the information storage server.
步骤120、根据异常参考信息判断请求方是否为异常用户。Step 120, judging whether the requester is an abnormal user according to the abnormal reference information.
对获取到的异常参考信息进行分析,判断接收方是否为异常用户。Analyze the obtained abnormal reference information to determine whether the recipient is an abnormal user.
步骤130、如果请求方为异常用户,则屏蔽好友请求。Step 130, if the requesting party is an abnormal user, block the friend request.
屏蔽好友请求时,取消在前台界面中显示好友请求。同时,向请求方发送反馈信息。反馈信息可以包括屏蔽原因。When blocking friend requests, cancel the display of friend requests in the foreground interface. At the same time, send feedback information to the requesting party. Feedback information may include reasons for blocking.
步骤140、如果请求方为非异常用户,则输出好友请求。Step 140, if the requesting party is a non-abnormal user, output a friend request.
如果请求方为非异常用户,则在社交类应用程序的用户界面中,增加好友请求标识。If the requesting party is a non-abnormal user, a friend request identifier is added in the user interface of the social application program.
本申请实施例中提供的好友请求的处理方法,首先接收到好友请求时,获取请求方的异常参考信息;然后,根据异常参考信息判断请求方是否为异常用户;最后,如果请求方为异常用户,则屏蔽好友请求。相对于在添加好友之后,在进行好友异常提示,本申请实施例能够在好友请求阶段,判断请求方是否为异常用户,如果为异常用户则屏蔽好友请求,或者提示用户请求方存在账号异常。如果为非异常用户,则向用户输出好友请求,进而避免添加好友后再提示,提高用户信息安全性。The method for processing a friend request provided in the embodiment of this application firstly obtains the abnormal reference information of the requesting party when a friend request is received; then, judges whether the requesting party is an abnormal user according to the abnormal reference information; finally, if the requesting party is an abnormal user , block friend requests. Compared with prompting the friend abnormality after adding a friend, the embodiment of the present application can judge whether the requesting party is an abnormal user during the friend request stage, and if it is an abnormal user, block the friend request, or prompt the user that the requesting party has an abnormal account. If it is a non-abnormal user, output a friend request to the user, so as to avoid prompting after adding a friend, and improve user information security.
图2为本申请实施例提供的一种好友请求的处理方法的流程示意图,作为对上述实施例的进一步说明,包括:FIG. 2 is a schematic flowchart of a method for processing a friend request provided by an embodiment of the present application. As a further description of the above embodiment, it includes:
步骤210、接收到好友请求时,获取请求方的账号信息。Step 210, when a friend request is received, acquire the account information of the requesting party.
账号信息包括请求方的账号名称、电话卡号以及实名制信息等。账号信息可以在请求方发送好友请求时,将账号信息添加到好友请求中。用户终端接收到好友请求后,解析好友请求得到账号信息。The account information includes the requester's account name, phone card number, and real-name registration information. Account Information The account information can be added to the friend request when the requester sends the friend request. After receiving the friend request, the user terminal parses the friend request to obtain account information.
步骤220、判断请求方的账号信息是否完整。Step 220, judging whether the account information of the requesting party is complete.
可选的,判断账号信息是否缺少电话卡号。当用户通过IP电话等虚拟电话进行拨打电话时,或者用户设置了隐藏来电号码时,账号信息中将缺少电话卡号。示例性的,用户终端的手机系统检测账号信息中是否具有有效电话卡号(移动、联通、电信运营商中有无留底资料)。如果没有,即是异常。如果有,则为非异常。Optionally, it is determined whether the account information lacks a phone card number. When the user makes a call through a virtual phone such as an IP phone, or the user sets a hidden caller number, the calling card number will be missing in the account information. Exemplarily, the mobile phone system of the user terminal detects whether there is a valid phone card number in the account information (whether there is any reserved information in China Mobile, China Unicom, or telecom operators). If not, it is abnormal. If present, it is non-exceptional.
可选的,判断账号信息是否缺少实名制认证信息。实名制信息可以为是否完成实名制认证的消息。如果完成实名制认证则标识为1,如果未完成实名制认证则标识0。或者,实名制信息还可以为请求方的用户姓名和身份证。用户终端接收到请求方的用户姓名和身份证后,通过实名制认证服务器确定请求方的实名制信息是否正确。Optionally, it is determined whether the account information lacks real-name authentication information. The real-name system information may be information about whether the real-name system authentication is completed. If the real-name authentication is completed, it will be marked as 1, and if the real-name authentication has not been completed, it will be marked as 0. Alternatively, the real-name information may also be the user name and ID card of the requesting party. After receiving the requester's user name and ID card, the user terminal determines whether the requester's real-name information is correct through the real-name authentication server.
可选的,示例性的,用户终端的手机系统检测账号信息中是否进行了实名认证。例如,是否有进行身份证、驾照或护照的认证。如果没有,即是异常。如果有,则为非异常。Optionally, for example, the mobile phone system of the user terminal detects whether real-name authentication is performed in the account information. For example, whether there is authentication of ID card, driver's license or passport. If not, it is abnormal. If present, it is non-exceptional.
步骤230、如果请求方的账号信息不完整,则判定请求方为异常用户,账号信息不完整包括缺少电话卡号和/或缺少实名制认证信息。Step 230, if the account information of the requesting party is incomplete, it is determined that the requesting party is an abnormal user, and the incomplete account information includes lack of phone card number and/or lack of real-name authentication information.
步骤240、如果请求方为异常用户,则屏蔽好友请求。Step 240, if the requesting party is an abnormal user, block the friend request.
步骤250、如果请求方的账号信息完整,则判定请求方为非异常用户。Step 250, if the account information of the requesting party is complete, it is determined that the requesting party is a non-abnormal user.
步骤260、如果请求方为非异常用户,则输出好友请求。Step 260, if the requesting party is a non-abnormal user, output a friend request.
本申请实施例提供的好友请求的处理方法,能够根据账号信息是否完整确定账号是否异常,在账号信息完整时确定接收方为非异常用户,并输出好友请求,能够避免虚假账号发起的好友请求,提高安全性。The friend request processing method provided by the embodiment of the present application can determine whether the account is abnormal according to whether the account information is complete, and when the account information is complete, determine that the recipient is a non-abnormal user, and output a friend request, which can avoid friend requests initiated by false accounts, Improve security.
图3为本申请实施例提供的一种好友请求的处理方法的流程示意图,作为对上述实施例的进一步说明,包括:FIG. 3 is a schematic flowchart of a method for processing a friend request provided by an embodiment of the present application. As a further description of the above embodiment, it includes:
步骤310、接收到好友请求时,获取请求方的登录位置信息。Step 310, when a friend request is received, obtain the login location information of the requesting party.
登录位置信息可以包括请求方当前登录的位置信息。The login location information may include location information currently logged in by the requester.
步骤320、根据登录位置信息判断请求方是否异地登录。Step 320, judging whether the requesting party has logged in from a different place according to the login location information.
判断请求方的位置信息是否与用户当前的位置信息相同。请求方的位置信息可以从账号登录地服务器中查询得到。可选的,位置信息的精确度可以精确到城市或国家。如果请求方和用户所在的城市或国家相同,则确定非异地登录。否则,如果请求方和用户所在的城市或国家不相同,则确定异地登录。Determine whether the requester's location information is the same as the user's current location information. The location information of the requesting party can be obtained by querying the server where the account is logged in. Optionally, the accuracy of the location information may be as accurate as a city or a country. If the requester and the user are located in the same city or country, then non-off-site login is determined. Otherwise, if the city or country where the requester and the user are located are not the same, an off-site login is determined.
可选的,获取用户预设时间内联系过的联系人所在的位置集合,如果该位置集合包括请求方所在的位置信息,则确定请求方非异地登录。否则,如果该位置集合不包括请求方所在的位置信息,则确定请求方异地登录。其中,预设时间可以为1个月-6个月,可选为3个月。Optionally, a location set of contacts that the user has contacted within a preset time is obtained, and if the location set includes the location information of the requester, it is determined that the requester is not logged in from a different place. Otherwise, if the location set does not include the location information of the requesting party, it is determined that the requesting party logs in remotely. Wherein, the preset time may be 1 month to 6 months, and may be 3 months as an option.
示例性的,判断请求方账号的登录地点是否与用户的登录地点一致。如果用户的最近半年联系人中都没有请求方账号的登录地点,或者请求方为境外匿名登录,则判定为异地登录。Exemplarily, it is determined whether the login location of the account of the requesting party is consistent with the login location of the user. If there is no login location of the requester's account in the user's contacts in the last six months, or the requester is anonymously logged in overseas, it will be determined as a remote login.
步骤330、如果请求方异地登录,则判定请求方为异常用户。Step 330, if the requesting party logs in from a different place, it is determined that the requesting party is an abnormal user.
步骤340、如果请求方为异常用户,则屏蔽好友请求。Step 340, if the requesting party is an abnormal user, block the friend request.
步骤350、如果请求方非异地登录,则判定请求方为非异常用户。Step 350, if the requesting party does not log in from a different place, it is determined that the requesting party is a non-abnormal user.
步骤360、如果请求方为非异常用户,则输出好友请求。Step 360, if the requesting party is a non-abnormal user, output a friend request.
本申请实施例提供的好友请求的处理方法,能够根据请求方的登录位置信息,确定请求方是否异地登录,进而避免陌生地区用户向用户发起请求,提高安全性。The method for processing a friend request provided by the embodiment of the present application can determine whether the requester is logged in from a different place according to the login location information of the requester, thereby preventing users from unfamiliar regions from initiating requests to the user and improving security.
图4为本申请实施例提供的一种好友请求的处理方法的流程示意图,作为对上述实施例的进一步说明,包括:FIG. 4 is a schematic flowchart of a method for processing a friend request provided by an embodiment of the present application. As a further description of the above embodiment, it includes:
步骤410、接收到好友请求时,通过服务器获取请求方的被投诉次数。Step 410, when a friend request is received, obtain the number of complaints of the requesting party through the server.
终端接收到好友请求时,通过好友请求获取请求方标识。使用请求方标识访问服务器获取请求方的历史投诉记录,历史投诉记录包括请求方被投诉的时间和投诉理由。可选的,可以根据被投诉的次数确定是否屏蔽好友请求。还可以在满足预设投诉理由的投诉记录超过预设次数时,屏蔽好友请求。When receiving the friend request, the terminal acquires the requester ID through the friend request. Use the requester ID to access the server to obtain the requester's historical complaint records. The historical complaint records include the time when the requester was complained and the reason for the complaint. Optionally, it may be determined whether to block friend requests according to the number of complaints. It is also possible to block friend requests when the number of complaint records meeting the preset complaint reasons exceeds the preset number of times.
步骤420、判断请求方的被投诉次数是否超过预设投诉阈值。Step 420, judging whether the number of complaints received by the requesting party exceeds a preset complaint threshold.
统计历史投诉记录中请求方被投诉次数。预设投诉阈值大于等于1,可选为1次或3次。Count the number of complaints against the requesting party in the historical complaint records. The preset complaint threshold is greater than or equal to 1, which can be 1 or 3 times.
步骤430、如果请求方的被投诉次数超过预设投诉阈值,则判定请求方为异常用户。Step 430, if the number of complaints against the requesting party exceeds the preset complaint threshold, it is determined that the requesting party is an abnormal user.
步骤440、如果请求方为异常用户,则屏蔽好友请求。Step 440, if the requesting party is an abnormal user, block the friend request.
步骤450、如果请求方的被投诉次数小于预设投诉阈值,则判定请求方为非异常用户。Step 450, if the number of complaints received by the requesting party is less than the preset complaint threshold, it is determined that the requesting party is a non-abnormal user.
步骤460、如果请求方为非异常用户,则输出好友请求。Step 460, if the requesting party is a non-abnormal user, output a friend request.
本申请实施例提供的好友请求的处理方法,手机系统在接收到好友请求后,向服务器发出申请,申请下发请求方账号的历史投诉记录。如果该账户被用户投诉过,则判定为异常,进而屏蔽被投诉过一次或多次的威胁用户,提高安全性。According to the friend request processing method provided by the embodiment of the present application, after receiving the friend request, the mobile phone system sends an application to the server for issuing the historical complaint records of the account of the requesting party. If the account has been complained by the user, it will be judged as abnormal, and then the threatening user who has been complained once or more times will be blocked to improve security.
图5为本申请实施例提供的一种好友请求的处理方法的流程示意图,作为对上述实施例的进一步说明,包括:FIG. 5 is a schematic flowchart of a method for processing a friend request provided by an embodiment of the present application. As a further description of the above embodiment, it includes:
步骤510、接收到好友请求时,判断请求方是否被其他用户拉入黑名单。Step 510, when a friend request is received, determine whether the requesting party is blacklisted by other users.
终端接收到好友请求时,通过好友请求获取请求方标识。使用请求方标识访问服务器获取请求方获取将请求方拉入黑名单的用户列表。When receiving the friend request, the terminal acquires the requester ID through the friend request. Access the server with the supplicant ID to get the supplicant to get the list of users that blacklisted the supplicant.
步骤520、如果请求方被其他用户拉入黑名单,则获取拉入黑名单前请求方与其他用户的聊天记录数量。Step 520, if the requesting party is blacklisted by other users, obtain the number of chat records between the requesting party and other users before being blacklisted.
根据用户列表分别获取请求方与用户的聊天记录数量。Obtain the number of chat records of the requester and the user respectively according to the user list.
步骤530、判断聊天记录数量是否超过预设聊天数量阈值。Step 530, judging whether the number of chat records exceeds a preset chat number threshold.
其中,预设聊天数量阈值小于20条,可选为10条。将聊天记录数量与预设聊天数量阈值进行比较,统计聊天记录数量超过预设聊天数量阈值的用户数量。如果用户数量大于等于预设用户数量,则确定请求方为异常用户。否者,如果用户数量小于预设用户数量,则确定请求方为非异常用户。其中,预设用户数量为1个或2个。Wherein, the preset chat number threshold is less than 20, and may be 10. The number of chat records is compared with the preset chat number threshold, and the number of users whose chat records exceed the preset chat number threshold is counted. If the number of users is greater than or equal to the preset number of users, it is determined that the requester is an abnormal user. Otherwise, if the number of users is less than the preset number of users, it is determined that the requester is a non-abnormal user. Wherein, the preset number of users is 1 or 2.
步骤540、如果聊天记录数量超过预设聊天数量阈值,则判定请求方为异常用户。Step 540, if the number of chat records exceeds the preset chat number threshold, it is determined that the requester is an abnormal user.
步骤550、如果请求方为异常用户,则屏蔽好友请求。Step 550, if the requesting party is an abnormal user, block the friend request.
步骤560、如果聊天记录数量小于预设聊天数量阈值,则判定请求方为非异常用户。Step 560, if the number of chat records is less than the preset chat number threshold, it is determined that the requesting party is a non-abnormal user.
步骤570、如果请求方为非异常用户,则输出好友请求。Step 570, if the requesting party is a non-abnormal user, output a friend request.
本申请实施例提供的好友请求的处理方法,能够在接收到好友请求时,判断请求方是否在预设聊天数量阈值的聊天后被其他用户拉入黑名单,进而判断请求方是否为异常客户,提高安全性。The friend request processing method provided by the embodiment of the present application can judge whether the requesting party is blacklisted by other users after chatting with the preset chat quantity threshold when receiving the friend request, and then judge whether the requesting party is an abnormal customer, Improve security.
图6为本申请实施例提供的一种好友请求的处理方法的流程示意图,作为对上述实施例的进一步说明,包括:FIG. 6 is a schematic flowchart of a method for processing a friend request provided by an embodiment of the present application. As a further description of the above embodiment, it includes:
步骤610、接收到好友请求时,获取请求方与其他用户的聊天记录。Step 610, when a friend request is received, obtain chat records between the requesting party and other users.
终端接收到好友请求时,通过好友请求获取请求方标识。使用请求方标识访问服务器获取请求方获取将请求方与其他用户的聊天记录。其他用户为请求方近期通信过的用户。近期为1天至30天。或者,其他用户为将请求方拉黑或者投诉请求方用户的用户。When receiving the friend request, the terminal acquires the requester ID through the friend request. Use the requester ID to access the server to get the requester to get the chat records of the requester and other users. Other users are users that the requesting party has communicated with recently. The near term is 1 day to 30 days. Alternatively, the other users are users who blocked the requesting party or complained about the requesting party user.
步骤620、根据聊天记录判断请求方是否存在诈骗行为。Step 620, judging whether the requesting party has fraudulent behavior according to the chat records.
对聊天记录进行分析,通过关键词查找确定是否存在诈骗行为。Analyze the chat records, and determine whether there is fraud through keyword search.
示例性的,用户终端的手机系统检测请求方的历史聊天信息,重点检测交易和钱财往来的相关记录,当发现该账号有言语唆使以骗取用户付款信息的行为,则判定为异常。Exemplarily, the mobile phone system of the user terminal detects the historical chat information of the requesting party, focusing on the relevant records of transactions and money exchanges. When it finds that the account has verbal instigation to defraud the user's payment information, it is determined to be abnormal.
步骤630、如果请求方存在诈骗行为,则判定请求方为异常用户。Step 630, if the requesting party has fraudulent behavior, it is determined that the requesting party is an abnormal user.
步骤640、如果请求方为异常用户,则屏蔽好友请求。Step 640, if the requesting party is an abnormal user, block the friend request.
步骤650、如果请求方不存在诈骗行为,则判定请求方为非异常用户。Step 650, if there is no fraudulent behavior by the requesting party, it is determined that the requesting party is a non-abnormal user.
步骤660、如果请求方为非异常用户,则输出好友请求。Step 660, if the requesting party is a non-abnormal user, output a friend request.
本申请实施例提供的好友请求的处理方法,能够通过对聊天记录进行分析确定是否存在诈骗行为,进而确定请求方是否为异常用户,提高安全性。The friend request processing method provided by the embodiment of the present application can analyze the chat records to determine whether there is a fraudulent behavior, and then determine whether the requesting party is an abnormal user, thereby improving security.
可选的,上述实施例提供的好友请求的处理方法还可以由服务器执行。服务器接收到好友请求时,获取请求方的异常参考信息。根据异常参考信息判断请求方是否为异常用户。如果请求方为异常用户,则屏蔽好友请求。如果请求方为非异常用户,则向接收方发送好友请求。Optionally, the method for processing a friend request provided in the foregoing embodiments may also be executed by a server. When the server receives the friend request, it obtains the abnormal reference information of the requesting party. Determine whether the requester is an abnormal user according to the abnormal reference information. If the requesting party is an abnormal user, the friend request is blocked. If the requesting party is a non-abnormal user, a friend request is sent to the receiving party.
图7为本申请实施例提供的一种好友请求的处理装置的结构示意图。如图7所示,该装置包括:获取模块710,判断模块720,请求处理模块730。FIG. 7 is a schematic structural diagram of an apparatus for processing a friend request provided by an embodiment of the present application. As shown in FIG. 7 , the device includes: an acquisition module 710 , a judgment module 720 , and a request processing module 730 .
获取模块710,用于接收到好友请求时,获取请求方的异常参考信息;An acquisition module 710, configured to acquire abnormal reference information of the requesting party when a friend request is received;
判断模块720,用于根据所述获取模块710获取的所述异常参考信息判断所述请求方是否为异常用户;A judging module 720, configured to judge whether the requester is an abnormal user according to the abnormal reference information obtained by the obtaining module 710;
请求处理模块730,用于如果所述请求方为异常用户,则屏蔽所述好友请求。The request processing module 730 is configured to block the friend request if the requester is an abnormal user.
进一步的,获取模块710用于,获取请求方的账号信息;Further, the acquiring module 710 is configured to acquire account information of the requesting party;
相应的,判断模块720用于,判断所述请求方的账号信息是否完整;Correspondingly, the judging module 720 is configured to judge whether the account information of the requesting party is complete;
如果所述请求方的账号信息不完整,则判定所述请求方为异常用户,所述账号信息不完整包括缺少电话卡号和/或缺少实名制认证信息。If the account information of the requesting party is incomplete, it is determined that the requesting party is an abnormal user, and the incomplete account information includes lack of phone card number and/or lack of real-name authentication information.
进一步的,获取模块710用于,获取请求方的登录位置信息;Further, the obtaining module 710 is configured to obtain the login location information of the requesting party;
相应的,判断模块720用于,根据所述登录位置信息判断所述请求方是否异地登录;Correspondingly, the judging module 720 is configured to judge whether the requester logs in from another place according to the log-in location information;
如果请求方异地登录,则判定所述请求方为异常用户。If the requester logs in from a different place, it is determined that the requester is an abnormal user.
进一步的,获取模块710用于,通过服务器获取所述请求方的被投诉次数;Further, the obtaining module 710 is used to obtain the number of complaints of the requesting party through the server;
相应的,判断模块720用于,判断所述请求方的被投诉次数是否超过预设投诉阈值;Correspondingly, the judging module 720 is configured to judge whether the number of times the requester is complained exceeds a preset complaint threshold;
如果所述请求方的被投诉次数超过预设投诉阈值,则判定所述请求方为异常用户。If the number of times the requester is complained exceeds the preset complaint threshold, it is determined that the requester is an abnormal user.
进一步的,获取模块710用于,判断请求方是否被其他用户拉入黑名单;Further, the obtaining module 710 is used to determine whether the requesting party is blacklisted by other users;
如果所述请求方被其他用户拉入黑名单,则获取拉入黑名单前所述请求方与所述其他用户的聊天记录数量;If the requesting party is pulled into the blacklist by other users, the number of chat records between the requesting party and the other users before being pulled into the blacklist is obtained;
相应的,判断模块720用于,判断所述聊天记录数量是否超过预设聊天数量阈值;Correspondingly, the judging module 720 is used to judge whether the number of chat records exceeds a preset chat number threshold;
如果所述聊天记录数量超过预设聊天数量阈值,则判定所述请求方为异常用户。If the number of chat records exceeds the preset chat number threshold, it is determined that the requester is an abnormal user.
进一步的,获取模块710用于,获取请求方与其他用户的聊天记录;Further, the obtaining module 710 is used to obtain chat records between the requesting party and other users;
相应的,判断模块720用于,根据所述聊天记录判断所述请求方是否存在诈骗行为;Correspondingly, the judging module 720 is configured to judge whether the requesting party has fraudulent behavior according to the chat records;
如果请求方存在诈骗行为,则判定所述请求方为异常用户。If the requesting party has fraudulent behavior, it is determined that the requesting party is an abnormal user.
进一步的,请求处理模块730用于,如果所述请求方为非异常用户,则输出所述好友请求。Further, the request processing module 730 is configured to output the friend request if the requester is a non-abnormal user.
本申请实施例中提供的好友请求的处理装置,首先获取模块710接收到好友请求时,获取请求方的异常参考信息;然后,判断模块720根据异常参考信息判断请求方是否为异常用户;最后,如果请求方为异常用户,则请求处理模块730屏蔽好友请求。相对于在添加好友之后,在进行好友异常提示,本申请实施例能够在好友请求阶段,判断请求方是否为异常用户,如果为异常用户则屏蔽好友请求,或者提示用户请求方存在账号异常。如果为非异常用户,则向用户输出好友请求,进而避免添加好友后再提示,提高用户信息安全性。In the device for processing a friend request provided in the embodiment of the present application, first, when the acquisition module 710 receives a friend request, it obtains the abnormal reference information of the requesting party; then, the judging module 720 judges whether the requesting party is an abnormal user according to the abnormal reference information; finally, If the requesting party is an abnormal user, the request processing module 730 blocks the friend request. Compared with prompting the friend abnormality after adding a friend, the embodiment of the present application can judge whether the requesting party is an abnormal user during the friend request stage, and if it is an abnormal user, block the friend request, or prompt the user that the requesting party has an account abnormality. If it is a non-abnormal user, output a friend request to the user, so as to avoid prompting after adding a friend, and improve user information security.
上述装置可执行本申请前述所有实施例所提供的方法,具备执行上述方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本申请前述所有实施例所提供的方法。The above-mentioned device can execute the methods provided by all the foregoing embodiments of the present application, and has corresponding functional modules and beneficial effects for executing the above-mentioned methods. For technical details not exhaustively described in this embodiment, reference may be made to the methods provided in all the foregoing embodiments of the present application.
图8是本申请实施例提供的另一种终端设备的结构示意图。如图8所示,该终端可以包括:壳体(图中未示出)、存储器801、中央处理器(Central Processing Unit,CPU)802(又称处理器,以下简称CPU)、存储在存储器801上并可在处理器802上运行的计算机程序、电路板(图中未示出)和电源电路(图中未示出)。所述电路板安置在所述壳体围成的空间内部;所述CPU802和所述存储器801设置在所述电路板上;所述电源电路,用于为所述终端的各个电路或器件供电;所述存储器801,用于存储可执行程序代码;所述CPU802通过读取所述存储器801中存储的可执行程序代码来运行与所述可执行程序代码对应的程序。FIG. 8 is a schematic structural diagram of another terminal device provided by an embodiment of the present application. As shown in FIG. 8 , the terminal may include: a housing (not shown in the figure), a memory 801, a central processing unit (Central Processing Unit, CPU) 802 (also known as a processor, hereinafter referred to as CPU), and stored in the memory 801. Computer programs running on the processor 802, a circuit board (not shown in the figure) and a power supply circuit (not shown in the figure). The circuit board is placed inside the space surrounded by the housing; the CPU 802 and the memory 801 are arranged on the circuit board; the power supply circuit is used to supply power to each circuit or device of the terminal; The memory 801 is used to store executable program codes; the CPU 802 runs programs corresponding to the executable program codes by reading the executable program codes stored in the memory 801 .
所述终端还包括:外设接口803、RF(Radio Frequency,射频)电路805、音频电路806、扬声器811、电源管理芯片808、输入/输出(I/O)子系统809、触摸屏812、其他输入/控制设备810以及外部端口804,这些部件通过一个或多个通信总线或信号线807来通信。The terminal also includes: peripheral interface 803, RF (Radio Frequency, radio frequency) circuit 805, audio circuit 806, speaker 811, power management chip 808, input/output (I/O) subsystem 809, touch screen 812, other input /control device 810 and external port 804 , these components communicate via one or more communication buses or signal lines 807 .
应该理解的是,图示终端设备800仅仅是终端的一个范例,并且终端设备800可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the illustrated terminal device 800 is only an example of a terminal, and that the terminal device 800 may have more or fewer components than shown in the figure, two or more components may be combined, or Different component configurations are possible. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
下面就本实施例提供的用于一种终端设备进行详细的描述,该终端设备以智能手机为例。The following describes a terminal device provided in this embodiment in detail, and the terminal device takes a smart phone as an example.
存储器801,所述存储器801可以被CPU802、外设接口803等访问,所述存储器801可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Memory 801, the memory 801 can be accessed by the CPU 802, the peripheral interface 803, etc., the memory 801 can include a high-speed random access memory, and can also include a non-volatile memory, such as one or more disk storage devices, flash memory devices , or other volatile solid-state storage devices.
外设接口803,所述外设接口803可以将设备的输入和输出外设连接到CPU802和存储器801。Peripheral interface 803 , which can connect the input and output peripherals of the device to CPU 802 and memory 801 .
I/O子系统809,所述I/O子系统809可以将设备上的输入输出外设,例如触摸屏812和其他输入/控制设备810,连接到外设接口803。I/O子系统809可以包括显示控制器8091和用于控制其他输入/控制设备810的一个或多个输入控制器8092。其中,一个或多个输入控制器8092从其他输入/控制设备810接收电信号或者向其他输入/控制设备810发送电信号,其他输入/控制设备810可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器8092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。The I/O subsystem 809 , the I/O subsystem 809 can connect input and output peripherals on the device, such as a touch screen 812 and other input/control devices 810 , to the peripheral interface 803 . I/O subsystem 809 may include a display controller 8091 and one or more input controllers 8092 for controlling other input/control devices 810 . Among them, one or more input controllers 8092 receive electrical signals from or send electrical signals to other input/control devices 810, which may include physical buttons (push buttons, rocker buttons, etc.) ), dials, slide switches, joysticks, click wheels. It is worth noting that the input controller 8092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
其中,按照触摸屏的工作原理和传输信息的介质分类,触摸屏812可以为电阻式、电容感应式、红外线式或表面声波式。按照安装方式分类,触摸屏812可以为:外挂式、内置式或整体式。按照技术原理分类,触摸屏812可以为:矢量压力传感技术触摸屏、电阻技术触摸屏、电容技术触摸屏、红外线技术触摸屏或表面声波技术触摸屏。Wherein, according to the working principle of the touch screen and the classification of the medium for transmitting information, the touch screen 812 can be a resistive type, a capacitive sensing type, an infrared type or a surface acoustic wave type. Classified according to the installation method, the touch screen 812 can be: plug-in type, built-in type or integral type. Classified according to technical principles, the touch screen 812 can be: a touch screen with vector pressure sensing technology, a touch screen with resistive technology, a touch screen with capacitive technology, a touch screen with infrared technology or a touch screen with surface acoustic wave technology.
触摸屏812,所述触摸屏812是用户终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。可选的,触摸屏812将用户在触屏幕上触发的电信号(如接触面的电信号),发送给处理器802。A touch screen 812. The touch screen 812 is an input interface and an output interface between the user terminal and the user, and displays visual output to the user. The visual output may include graphics, text, icons, videos, and the like. Optionally, the touch screen 812 sends an electrical signal triggered by the user on the touch screen (such as an electrical signal on the contact surface) to the processor 802 .
I/O子系统809中的显示控制器8091从触摸屏812接收电信号或者向触摸屏812发送电信号。触摸屏812检测触摸屏上的接触,显示控制器8091将检测到的接触转换为与显示在触摸屏812上的用户界面对象的交互,即实现人机交互,显示在触摸屏812上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。The display controller 8091 in the I/O subsystem 809 receives electrical signals from the touch screen 812 or sends electrical signals to the touch screen 812 . The touch screen 812 detects the contact on the touch screen, and the display controller 8091 converts the detected contact into an interaction with the user interface object displayed on the touch screen 812, that is, realizes human-computer interaction, and the user interface object displayed on the touch screen 812 can be a running Icons for games, icons for networking to appropriate networks, etc. It is worth noting that the device may also include an optical mouse, which is a touch-sensitive surface that does not display visual output, or that is an extension of a touch-sensitive surface formed by a touch screen.
RF电路805,主要用于建立智能音箱与无线网络(即网络侧)的通信,实现智能音箱与无线网络的数据接收和发送。例如收发短信息、电子邮件等。The RF circuit 805 is mainly used to establish communication between the smart speaker and the wireless network (that is, the network side), and realize data reception and transmission between the smart speaker and the wireless network. Such as sending and receiving short messages, e-mails, etc.
音频电路806,主要用于从外设接口803接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器811。The audio circuit 806 is mainly used to receive audio data from the peripheral interface 803 , convert the audio data into electrical signals, and send the electrical signals to the speaker 811 .
扬声器811,用于将智能音箱通过RF电路805从无线网络接收的语音信号,还原为声音并向用户播放该声音。The speaker 811 is used to restore the voice signal received by the smart speaker from the wireless network through the RF circuit 805 into sound and play the sound to the user.
电源管理芯片808,用于为CPU802、I/O子系统及外设接口所连接的硬件进行供电及电源管理。The power management chip 808 is used for power supply and power management for the hardware connected to the CPU 802 , the I/O subsystem and the peripheral interface.
在本实施例中,中央处理器802用于:In this embodiment, the central processing unit 802 is used for:
接收到好友请求时,获取请求方的异常参考信息;When receiving a friend request, obtain the abnormal reference information of the requesting party;
根据所述异常参考信息判断所述请求方是否为异常用户;judging whether the requester is an abnormal user according to the abnormal reference information;
如果所述请求方为异常用户,则屏蔽所述好友请求。If the requesting party is an abnormal user, the friend request is shielded.
进一步的,所述获取请求方的异常参考信息,包括:Further, the acquisition of abnormal reference information of the requesting party includes:
获取请求方的账号信息;Obtain the account information of the requesting party;
相应的,所述根据所述异常参考信息判断所述请求方是否为异常用户,包括:Correspondingly, the judging whether the requester is an abnormal user according to the abnormal reference information includes:
判断所述请求方的账号信息是否完整;Judging whether the account information of the requesting party is complete;
如果所述请求方的账号信息不完整,则判定所述请求方为异常用户,所述账号信息不完整包括缺少电话卡号和/或缺少实名制认证信息。If the account information of the requesting party is incomplete, it is determined that the requesting party is an abnormal user, and the incomplete account information includes lack of phone card number and/or lack of real-name authentication information.
进一步的,所述获取请求方的异常参考信息,包括:Further, the acquisition of abnormal reference information of the requesting party includes:
获取请求方的登录位置信息;Obtain the login location information of the requesting party;
相应的,所述根据所述异常参考信息判断所述请求方是否为异常用户,包括:Correspondingly, the judging whether the requester is an abnormal user according to the abnormal reference information includes:
根据所述登录位置信息判断所述请求方是否异地登录;judging whether the requesting party logs in from another place according to the login location information;
如果请求方异地登录,则判定所述请求方为异常用户。If the requester logs in from a different place, it is determined that the requester is an abnormal user.
进一步的,所述获取请求方的异常参考信息,包括:Further, the acquisition of abnormal reference information of the requesting party includes:
通过服务器获取所述请求方的被投诉次数;Obtain the number of complaints against the requesting party through the server;
相应的,所述根据所述异常参考信息判断所述请求方是否为异常用户,包括:Correspondingly, the judging whether the requester is an abnormal user according to the abnormal reference information includes:
判断所述请求方的被投诉次数是否超过预设投诉阈值;Judging whether the number of complaints against the requesting party exceeds a preset complaint threshold;
如果所述请求方的被投诉次数超过预设投诉阈值,则判定所述请求方为异常用户。If the number of times the requester is complained exceeds the preset complaint threshold, it is determined that the requester is an abnormal user.
进一步的,所述获取请求方的异常参考信息,包括:Further, the acquisition of abnormal reference information of the requesting party includes:
判断请求方是否被其他用户拉入黑名单;Determine whether the requesting party is blacklisted by other users;
如果所述请求方被其他用户拉入黑名单,则获取拉入黑名单前所述请求方与所述其他用户的聊天记录数量;If the requesting party is pulled into the blacklist by other users, the number of chat records between the requesting party and the other users before being pulled into the blacklist is obtained;
相应的,所述根据所述异常参考信息判断所述请求方是否为异常用户,包括:Correspondingly, the judging whether the requester is an abnormal user according to the abnormal reference information includes:
判断所述聊天记录数量是否超过预设聊天数量阈值;Judging whether the number of chat records exceeds a preset chat number threshold;
如果所述聊天记录数量超过预设聊天数量阈值,则判定所述请求方为异常用户。If the number of chat records exceeds the preset chat number threshold, it is determined that the requester is an abnormal user.
进一步的,所述获取请求方的异常参考信息,包括:Further, the acquisition of abnormal reference information of the requesting party includes:
获取请求方与其他用户的聊天记录;Obtain the chat history between the requesting party and other users;
相应的,所述根据所述异常参考信息判断所述请求方是否为异常用户,包括:Correspondingly, the judging whether the requester is an abnormal user according to the abnormal reference information includes:
根据所述聊天记录判断所述请求方是否存在诈骗行为;judging whether the requesting party has fraudulent behavior according to the chat records;
如果请求方存在诈骗行为,则判定所述请求方为异常用户。If the requesting party has fraudulent behavior, it is determined that the requesting party is an abnormal user.
进一步的,在根据所述异常参考信息判断所述请求方是否为异常用户之后,还包括:Further, after judging whether the requester is an abnormal user according to the abnormal reference information, the method further includes:
如果所述请求方为非异常用户,则输出所述好友请求。If the requesting party is a non-abnormal user, output the friend request.
本申请实施例还提供一种包含终端设备可执行指令的存储介质,所述终端设备可执行指令在由终端设备处理器执行时用于执行一种好友请求的处理方法,该方法包括:The embodiment of the present application also provides a storage medium containing executable instructions of the terminal device, the executable instructions of the terminal device are used to execute a friend request processing method when executed by a processor of the terminal device, the method includes:
接收到好友请求时,获取请求方的异常参考信息;When receiving a friend request, obtain the abnormal reference information of the requesting party;
根据所述异常参考信息判断所述请求方是否为异常用户;judging whether the requester is an abnormal user according to the abnormal reference information;
如果所述请求方为异常用户,则屏蔽所述好友请求。If the requesting party is an abnormal user, the friend request is shielded.
进一步的,所述获取请求方的异常参考信息,包括:Further, the acquisition of abnormal reference information of the requesting party includes:
获取请求方的账号信息;Obtain the account information of the requesting party;
相应的,所述根据所述异常参考信息判断所述请求方是否为异常用户,包括:Correspondingly, the judging whether the requester is an abnormal user according to the abnormal reference information includes:
判断所述请求方的账号信息是否完整;Judging whether the account information of the requesting party is complete;
如果所述请求方的账号信息不完整,则判定所述请求方为异常用户,所述账号信息不完整包括缺少电话卡号和/或缺少实名制认证信息。If the account information of the requesting party is incomplete, it is determined that the requesting party is an abnormal user, and the incomplete account information includes lack of phone card number and/or lack of real-name authentication information.
进一步的,所述获取请求方的异常参考信息,包括:Further, the acquisition of abnormal reference information of the requesting party includes:
获取请求方的登录位置信息;Obtain the login location information of the requesting party;
相应的,所述根据所述异常参考信息判断所述请求方是否为异常用户,包括:Correspondingly, the judging whether the requester is an abnormal user according to the abnormal reference information includes:
根据所述登录位置信息判断所述请求方是否异地登录;judging whether the requesting party logs in from another place according to the login location information;
如果请求方异地登录,则判定所述请求方为异常用户。If the requester logs in from a different place, it is determined that the requester is an abnormal user.
进一步的,所述获取请求方的异常参考信息,包括:Further, the acquisition of abnormal reference information of the requesting party includes:
通过服务器获取所述请求方的被投诉次数;Obtain the number of complaints against the requesting party through the server;
相应的,所述根据所述异常参考信息判断所述请求方是否为异常用户,包括:Correspondingly, the judging whether the requester is an abnormal user according to the abnormal reference information includes:
判断所述请求方的被投诉次数是否超过预设投诉阈值;Judging whether the number of complaints against the requesting party exceeds a preset complaint threshold;
如果所述请求方的被投诉次数超过预设投诉阈值,则判定所述请求方为异常用户。If the number of times the requester is complained exceeds the preset complaint threshold, it is determined that the requester is an abnormal user.
进一步的,所述获取请求方的异常参考信息,包括:Further, the acquisition of abnormal reference information of the requesting party includes:
判断请求方是否被其他用户拉入黑名单;Determine whether the requesting party is blacklisted by other users;
如果所述请求方被其他用户拉入黑名单,则获取拉入黑名单前所述请求方与所述其他用户的聊天记录数量;If the requesting party is pulled into the blacklist by other users, the number of chat records between the requesting party and the other users before being pulled into the blacklist is obtained;
相应的,所述根据所述异常参考信息判断所述请求方是否为异常用户,包括:Correspondingly, the judging whether the requester is an abnormal user according to the abnormal reference information includes:
判断所述聊天记录数量是否超过预设聊天数量阈值;Judging whether the number of chat records exceeds a preset chat number threshold;
如果所述聊天记录数量超过预设聊天数量阈值,则判定所述请求方为异常用户。If the number of chat records exceeds the preset chat number threshold, it is determined that the requester is an abnormal user.
进一步的,所述获取请求方的异常参考信息,包括:Further, the acquisition of abnormal reference information of the requesting party includes:
获取请求方与其他用户的聊天记录;Obtain the chat history between the requesting party and other users;
相应的,所述根据所述异常参考信息判断所述请求方是否为异常用户,包括:Correspondingly, the judging whether the requester is an abnormal user according to the abnormal reference information includes:
根据所述聊天记录判断所述请求方是否存在诈骗行为;judging whether the requesting party has fraudulent behavior according to the chat records;
如果请求方存在诈骗行为,则判定所述请求方为异常用户。If the requesting party has fraudulent behavior, it is determined that the requesting party is an abnormal user.
进一步的,在根据所述异常参考信息判断所述请求方是否为异常用户之后,还包括:Further, after judging whether the requester is an abnormal user according to the abnormal reference information, the method further includes:
如果所述请求方为非异常用户,则输出所述好友请求。If the requesting party is a non-abnormal user, output the friend request.
本申请实施例的计算机存储介质,可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The computer storage medium in the embodiments of the present application may use any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (non-exhaustive list) of computer readable storage media include: electrical connections with one or more leads, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), Erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer readable signal medium may include a data signal carrying computer readable program code in baseband or as part of a carrier wave. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. .
计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括——但不限于无线、电线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including - but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言或其组合来编写用于执行本申请操作的计算机程序代码,程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如”C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing the operations of the present application may be written in one or more programming languages or combinations thereof, including object-oriented programming languages—such as Java, Smalltalk, C++, and conventional procedural Programming language - such as "C" or a similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through an Internet service provider). Internet connection).
当然,本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的应用推荐操作,还可以执行本申请任意实施例所提供的应用推荐方法中的相关操作。Of course, in the storage medium containing computer-executable instructions provided in the embodiments of the present application, the computer-executable instructions are not limited to the above-mentioned application recommendation operations, and can also execute the application recommendation method provided in any embodiment of the application. related operations.
注意,上述仅为本申请的较佳实施例及所运用技术原理。本领域技术人员会理解,本申请不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本申请的保护范围。因此,虽然通过以上实施例对本申请进行了较为详细的说明,但是本申请不仅仅限于以上实施例,在不脱离本申请构思的情况下,还可以包括更多其他等效实施例,而本申请的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments and technical principles used in this application. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present application. Therefore, although the present application has been described in detail through the above embodiments, the present application is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present application, and the present application The scope is determined by the scope of the appended claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810362277.7A CN108718271A (en) | 2018-04-20 | 2018-04-20 | Method, device, storage medium and terminal for processing friend request |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810362277.7A CN108718271A (en) | 2018-04-20 | 2018-04-20 | Method, device, storage medium and terminal for processing friend request |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108718271A true CN108718271A (en) | 2018-10-30 |
Family
ID=63899251
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810362277.7A Pending CN108718271A (en) | 2018-04-20 | 2018-04-20 | Method, device, storage medium and terminal for processing friend request |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108718271A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109495378A (en) * | 2018-12-28 | 2019-03-19 | 广州华多网络科技有限公司 | Detect method, apparatus, server and the storage medium of abnormal account number |
CN109636656A (en) * | 2018-10-31 | 2019-04-16 | 张建强 | A kind of dating system |
CN111726789A (en) * | 2019-03-21 | 2020-09-29 | 上海博泰悦臻电子设备制造有限公司 | First mobile terminal, friend adding method and system |
CN112686767A (en) * | 2020-12-31 | 2021-04-20 | 上海掌门科技有限公司 | User management method, device and storage medium |
CN115884167A (en) * | 2022-03-25 | 2023-03-31 | 北京字跳网络技术有限公司 | Data processing method, device, equipment and storage medium |
CN117896184A (en) * | 2024-03-14 | 2024-04-16 | 山西金冠同力信息技术有限公司 | Network security monitoring method, device and equipment based on big data |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103795612A (en) * | 2014-01-15 | 2014-05-14 | 五八同城信息技术有限公司 | Method for detecting junk and illegal messages in instant messaging |
CN104010064A (en) * | 2014-05-14 | 2014-08-27 | 北京奇虎科技有限公司 | Method and device for online search number |
CN104156447A (en) * | 2014-08-14 | 2014-11-19 | 天格科技(杭州)有限公司 | Intelligent social platform advertisement early warning and handling method |
CN104636453A (en) * | 2015-01-29 | 2015-05-20 | 小米科技有限责任公司 | Illegal user data identification method and device |
CN105323144A (en) * | 2014-07-16 | 2016-02-10 | 腾讯科技(深圳)有限公司 | Method and system for prompting message abnormity in instant messenger |
US20160127282A1 (en) * | 2014-10-31 | 2016-05-05 | Avaya Inc. | System and method of adding an anonymous participant to a chat session |
CN105635048A (en) * | 2014-10-28 | 2016-06-01 | 腾讯科技(深圳)有限公司 | Service request processing method and service request processing device |
CN106358220A (en) * | 2015-07-17 | 2017-01-25 | 腾讯科技(深圳)有限公司 | Detection method of abnormal contact person information, device and system |
-
2018
- 2018-04-20 CN CN201810362277.7A patent/CN108718271A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103795612A (en) * | 2014-01-15 | 2014-05-14 | 五八同城信息技术有限公司 | Method for detecting junk and illegal messages in instant messaging |
CN104010064A (en) * | 2014-05-14 | 2014-08-27 | 北京奇虎科技有限公司 | Method and device for online search number |
CN105323144A (en) * | 2014-07-16 | 2016-02-10 | 腾讯科技(深圳)有限公司 | Method and system for prompting message abnormity in instant messenger |
CN104156447A (en) * | 2014-08-14 | 2014-11-19 | 天格科技(杭州)有限公司 | Intelligent social platform advertisement early warning and handling method |
CN105635048A (en) * | 2014-10-28 | 2016-06-01 | 腾讯科技(深圳)有限公司 | Service request processing method and service request processing device |
US20160127282A1 (en) * | 2014-10-31 | 2016-05-05 | Avaya Inc. | System and method of adding an anonymous participant to a chat session |
CN104636453A (en) * | 2015-01-29 | 2015-05-20 | 小米科技有限责任公司 | Illegal user data identification method and device |
CN106358220A (en) * | 2015-07-17 | 2017-01-25 | 腾讯科技(深圳)有限公司 | Detection method of abnormal contact person information, device and system |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109636656A (en) * | 2018-10-31 | 2019-04-16 | 张建强 | A kind of dating system |
CN109495378A (en) * | 2018-12-28 | 2019-03-19 | 广州华多网络科技有限公司 | Detect method, apparatus, server and the storage medium of abnormal account number |
CN111726789A (en) * | 2019-03-21 | 2020-09-29 | 上海博泰悦臻电子设备制造有限公司 | First mobile terminal, friend adding method and system |
CN112686767A (en) * | 2020-12-31 | 2021-04-20 | 上海掌门科技有限公司 | User management method, device and storage medium |
CN115884167A (en) * | 2022-03-25 | 2023-03-31 | 北京字跳网络技术有限公司 | Data processing method, device, equipment and storage medium |
CN115884167B (en) * | 2022-03-25 | 2023-08-22 | 北京字跳网络技术有限公司 | Data processing method, device, equipment and storage medium |
CN117896184A (en) * | 2024-03-14 | 2024-04-16 | 山西金冠同力信息技术有限公司 | Network security monitoring method, device and equipment based on big data |
CN117896184B (en) * | 2024-03-14 | 2024-05-28 | 山西金冠同力信息技术有限公司 | Network security monitoring method, device and equipment based on big data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108718271A (en) | Method, device, storage medium and terminal for processing friend request | |
CN104915835B (en) | Credit accounts creating device, system and method | |
US20140207679A1 (en) | Online money transfer service in connection with instant messenger | |
CN112385191A (en) | Middle layer messaging system | |
US20100251336A1 (en) | Frequency based age determination | |
CN109155750B (en) | Communication method and device | |
US11658963B2 (en) | Cooperative communication validation | |
US20220115012A1 (en) | Method and apparatus for processing voices, device and computer storage medium | |
CN105407086B (en) | Temporary authorization method, client and server | |
CN105701414A (en) | Method and device for multiplexing electronic equipment based on multiple accounts and electronic equipment | |
CN108960839B (en) | Payment method and device | |
CN104917796A (en) | Credit account creating method, system and method | |
CN104333530A (en) | Information credibility verifying method and apparatus | |
CN107493378A (en) | Application program login method and device, computer equipment and readable storage medium | |
WO2015121453A1 (en) | Instant messaging with non subscriber users | |
CN110474864A (en) | A kind of method and electronic equipment registered, log in mobile applications | |
CN115174161B (en) | Account login method and device, electronic equipment and storage medium | |
CN109525652A (en) | Information sharing method, device, equipment and storage medium | |
JP2022503458A (en) | Speech processing methods, devices, devices, programs and computer storage media | |
CN114374560A (en) | Data processing method, device and storage medium | |
WO2018121536A1 (en) | Information security verification method and terminal | |
CN111970298B (en) | Application access method and device, storage medium and computer equipment | |
KR101409790B1 (en) | Remote control method between mobile telephone using program in mobile telephone | |
CN106385415B (en) | An information security control method, device and terminal | |
CN106101361B (en) | Display methods, device and the mobile phone of cell phone address book |
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 |
Application publication date: 20181030 |
|
RJ01 | Rejection of invention patent application after publication |