Friend adding method and device, computer readable storage medium and electronic equipment
By receiving friend applications and determining group relationships in enterprise-level instant messaging applications, the problem of multiple employees connecting with the same customers is solved, and efficient use of resources and smooth communication of information is achieved.
Patent Information
- Application Number
- CN202311433240.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-27
- Publication Date
- 2025-04-29
AI Technical Summary
When an enterprise uses enterprise-level instant messaging applications, the same customer is added as friends by multiple different employees, resulting in waste of resources and vicious competition.
By receiving the user's friend application request, determine the applicant's group in the enterprise-level instant messaging application. If there is no associated user in the applicant group that is a friend of the target user, the applicant will be added as a friend of the target user; if there is an associated user, the target user is prompted that he has been a friend of the associated user.
It effectively avoids multiple different employees in the same enterprise group connecting with the same customers, reduces resource waste and vicious competition, and improves the efficiency of information exchange within the enterprise.
Smart Images

Figure CN119906690A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a friend adding method, device, computer-readable storage medium and electronic device. Background Art
[0002] With the continuous development of mobile technology, instant messaging has become a very important means of communication. Moreover, with more and more functions integrated into instant messaging applications, instant messaging applications can not only be used for daily communication between friends in life, but also play an important role in communication in enterprises.
[0003] Currently, employees of an enterprise can use enterprise-level instant messaging applications (such as WeChat for Enterprise) to add external personnel (such as customers) of the enterprise as friends to improve the efficiency of information exchange between employees and customers. However, when enterprises use enterprise-level instant messaging applications, it is often encountered that the same customer adds multiple employees of the enterprise as friends, which results in multiple employees of the enterprise connecting with the same customer, resulting in a waste of enterprise resources. Summary of the invention
[0004] The embodiments of the present application provide a method, device, computer-readable storage medium and electronic device for adding enterprise friends, so as to reduce the waste of resources caused to the enterprise due to multiple different employees of the same enterprise connecting with the same customer during the process of the enterprise using enterprise-level instant messaging applications.
[0005] The present application embodiment provides a friend adding method, including:
[0006] Receiving a friend application request from a first user for a second user of a first preset application;
[0007] Determine, according to the friend application request, a target group to which the second user belongs in the first preset application;
[0008] In response to the target group not having an associated user who is a friend of the first user, adding the first user as a friend of the second user in the first preset application;
[0009] In response to the existence of an associated user in the target group who is a friend of the first user, it is prompted that the first user and the associated user are already friends.
[0010] The embodiment of the present application also provides a device for adding friends, including:
[0011] A receiving module, configured to receive a friend application request from a first user for a second user of a first preset application;
[0012] A first determination module, configured to determine a target group to which the second user belongs in the first preset application according to the friend application request;
[0013] an adding module, configured to, in response to the absence of an associated user in the target group who is a friend of the first user, add the first user as a friend of the second user in the first preset application;
[0014] The prompt module is used for prompting the first user that the associated user has established a friend relationship with the first user in response to the associated user being present in the target group.
[0015] Among them, the friend adding device also includes:
[0016] A second determination module, configured to determine at least one target subgroup from the target group, each target subgroup including the second user;
[0017] Add modules specifically for:
[0018] In response to the fact that there are no associated users in each target subgroup who are friends with the first user, adding the first user as a friend of the second user in the first preset application;
[0019] The prompt module is specifically used for:
[0020] In response to the presence of an associated user who is a friend of the first user in any target subgroup, it is prompted that the first user and the associated user are already friends.
[0021] Among them, the friend adding device also includes:
[0022] A second determination module, configured to determine at least one target subgroup from the target group, each target subgroup including the second user;
[0023] Add modules specifically for:
[0024] In response to the absence of an associated user who is a friend of the first user in any target subgroup, adding the first user as a friend of the second user in the first preset application;
[0025] The prompt module is specifically used for:
[0026] In response to the fact that there are associated users who are friends with the first user in each target subgroup, it is prompted that the first user and the associated users are friends.
[0027] Among them, the friend adding device also includes:
[0028] An acquisition module is used to obtain configuration information corresponding to the target group;
[0029] The second determination module is specifically used for:
[0030] At least one target subgroup is determined from the target group according to the configuration information.
[0031] The target group includes the user who is an administrator, and the friend adding device also includes:
[0032] A third determination module is used to respond to the administrator's configuration operation on the target group in the first preset application, and determine configuration information corresponding to the target group according to the configuration operation, wherein the configuration information includes a target user level;
[0033] The second determination module is specifically used for:
[0034] When the user level of the second user in the first preset application is lower than the target user level, determining at least one target management rule to which the second user belongs in the first preset application;
[0035] The users in the target group who belong to the same target management rule and whose user level is lower than the target user level are grouped together to obtain at least one target subgroup.
[0036] The receiving module is specifically used for:
[0037] A friend application request is received from a first user by scanning a personal business card of a second user in a first preset application.
[0038] The step of adding the first user as a friend of the second user in the first preset application specifically includes:
[0039] Sending a friend adding interface of the second user in the first preset application to the first user;
[0040] Receiving a friend adding request sent by the first user through the friend adding interface;
[0041] According to the friend adding request, the first user is added as a friend of the second user in the first preset application.
[0042] The prompting that the first user and the associated user are already friends includes:
[0043] The user information of the associated user is sent to the first user.
[0044] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. The computer program is suitable for being loaded by a processor to execute any of the above-mentioned friend adding methods.
[0045] An embodiment of the present application also provides an electronic device, which includes a memory and a processor, wherein a computer program is stored in the memory, and the processor executes any of the above-mentioned friend adding methods by calling the computer program stored in the memory.
[0046] The friend adding method, device, computer-readable storage medium and electronic device provided in the present application receive a friend application request for a second user of a first preset application sent by a first user, and determine a target group to which the second user belongs in the first preset application based on the friend application request, and then, in response to the absence of an associated user with whom the first user is a friend in the target group, add the first user as a friend of the second user in the first preset application, and in response to the presence of a user with whom the first user is an associated friend in the target group, prompt the first user that the associated user is already a friend, so that in the process of an enterprise using an enterprise-level instant messaging application, multiple different employees in the same enterprise group can be prevented from adding the same customer as a friend, thereby reducing the waste of resources caused to the enterprise due to multiple different employees of the enterprise connecting with the same customer. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The technical solution and other beneficial effects of the present application will be made apparent by describing in detail the specific implementation methods of the present application in conjunction with the accompanying drawings.
[0048] Figure 1 A schematic diagram of a scenario of a friend adding system provided in an embodiment of the present application;
[0049] Figure 2 A schematic diagram of another scenario of the friend adding system provided in an embodiment of the present application;
[0050] Figure 3 A flowchart of a friend adding method provided in an embodiment of the present application;
[0051] Figure 4 Another flowchart of the friend adding method provided in an embodiment of the present application;
[0052] Figure 5 A schematic diagram of the structure of the target group provided in the embodiment of the present application;
[0053] Figure 6 Another flowchart of the friend adding method provided in an embodiment of the present application;
[0054] Figure 7 Another flowchart of the friend adding method provided in an embodiment of the present application;
[0055] Figure 8 A schematic diagram of management rules for target groups provided in an embodiment of the present application;
[0056] Fig. 9 A schematic diagram of the structure of a device for adding friends provided in an embodiment of the present application;
[0057] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0058] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0059] In the following description, the specific embodiments of the present application will be described with reference to the steps and symbols performed by one or more computers, unless otherwise specified. Therefore, these steps and operations will be mentioned several times as being performed by a computer, and the computer execution referred to herein includes the operation of a computer processing unit by an electronic signal representing data in a structured form. This operation converts the data or maintains it at a location in the memory system of the computer, which can be reconfigured or otherwise change the operation of the computer in a manner familiar to testers in the field. The data structure maintained by the data is a physical location in the memory, which has specific characteristics defined by the data format. However, the principles of the present application are described in the above text, which does not represent a limitation, and testers in the field will understand that the various steps and operations described below can also be implemented in hardware.
[0060] The terms "module" or "unit" used herein may be considered as software objects executed on the computing system. The different components, modules, engines and services described herein may be considered as implementation objects on the computing system. The devices and methods described herein are preferably implemented in software, but may also be implemented in hardware, all within the scope of protection of this application.
[0061] In the following description of the present application, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it can be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0062] In the following description of the present application, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0063] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0064] The following is a detailed description with reference to specific embodiments. It should be noted that the serial numbers of the following embodiments are not intended to limit the preferred order of the embodiments.
[0065] Embodiments of the present application provide a friend adding method, device, computer-readable storage medium, and electronic device.
[0066] See also Figure 1 and Figure 2 , Figure 1 and Figure 2 A scenario diagram of a friend adding system provided in an embodiment of the present application. The friend adding system may include any friend adding device provided in an embodiment of the present application. The friend adding device may be specifically integrated in an electronic device such as a terminal or a server, wherein the terminal may be a smart phone, a tablet computer, a laptop computer, or a personal computer (PC) and the server may be specifically an independent physical server, or a server cluster or a distributed system composed of multiple physical servers.
[0067] The electronic device can receive a friend application request from a first user for a second user of a first preset application; determine a target group to which the second user belongs in the first preset application based on the friend application request; in response to the absence of an associated user who is a friend of the first user in the target group, add the first user as a friend of the second user in the first preset application; in response to the presence of an associated user who is a friend of the first user in the target group, prompt the first user that the associated user is already a friend.
[0068] Among them, the first preset application can be an instant messaging application applied to the enterprise, such as enterprise-level instant messaging applications such as WeChat for Business and DingTalk. The second user can be an employee of the target enterprise using the first preset application. The first user can be an external person (such as a customer) of the target enterprise. In some examples, the first user can be an employee of other enterprises using the first preset application. In other examples, the first user can also be a user of the second preset application, wherein the second preset application and the first preset application can be different instant messaging applications, for example, they can be WeChat and WeChat for Business, respectively.
[0069] The target group may be a group corresponding to the enterprise where the second user is located (ie, the target enterprise) in the first preset application. The target group may include multiple users, and each user in the target group may correspond to an employee of the target enterprise.
[0070] In a possible application scenario, such as Figure 1 As shown, the first user may be a user of the second preset application, and the friend adding system may include a server 11 of the first preset application, a second client used by the second user, a server 21 of the second preset application, and a first client used by the first user. The first client may be connected to the server 21 of the second preset application through a network, the second client may be connected to the server 11 of the first preset application through a network, and the server 11 of the first preset application and the server 21 of the second preset application may be connected through a preset data interface to perform data interaction.
[0071] Specifically, when a user of the second preset application (i.e., the first user) wants to add a user of the first preset application (i.e., the second user) as a friend, the first user can use the first client used by the first user to scan the personal business card (e.g., QR code image) of the second user in the first preset application to trigger the server 21 of the second preset application to send a friend application request for the second user to the server 11 of the first preset application through the preset data interface. Then, the server 11 of the first preset application can receive the friend application request and determine the target group to which the second user belongs in the first preset application according to the friend application request. Then, the server 11 of the first preset application can detect whether there are users in the target group who are friends with the first user. If it is detected that there are no users in the target group who are friends with the first user, the first user can be added as a friend of the second user in the first preset application, so that the second user and the first user can exchange information. If it is detected that there are users in the target group who are friends with the first user, relevant information of users in the target group who are friends with the first user (that is, the associated users) can be sent to the first user through the server 21 of the second preset application, so that the first user can immediately know that he or she is already friends with the users in the target group without having to add the second user as a friend.
[0072] In another possible application scenario, Figure 2As shown, the first user may be a user of a first preset application, and the first user and the second user belong to different groups in the first preset application, and the friend adding system may include a server 11 of the first preset application, a first client used by the first user, and a second client used by the second user, wherein the first client may be connected to the server 11 of the first preset application via a network, and the second client may be connected to the server 11 of the first preset application via a network.
[0073] Specifically, when a user in a group in the first preset application (i.e., the first user) wants to add a user in another group in the first preset application (i.e., the second user) as a friend, the user can use the first client used by the user to scan the personal business card (e.g., QR code image) of the second user in the first preset application to trigger the first client to send a friend application request for the second user to the server 11 of the first preset application. Then, the server 11 of the first preset application can receive the friend application information and determine, based on the friend application request, that the group to which the second user belongs in the first preset application is the target group. Afterwards, the server 11 of the first preset application can detect whether there are users in the target group who are friends with the above-mentioned first user. If it is detected that there are no users in the target group who are friends with the above-mentioned first user, the above-mentioned first user can be added as a friend of the above-mentioned second user in the first preset application, so that the second user and the first user can exchange information. If it is detected that there are users in the target group who are friends with the above-mentioned first user, relevant information of users in the target group who are friends with the above-mentioned first user (that is, the above-mentioned associated users) can be sent to the above-mentioned first user through the first client, so that the above-mentioned first user can immediately know that he or she is already friends with the users in the target group without having to add the above-mentioned second user as a friend.
[0074] like Figure 3 As shown, Figure 3 : is a flowchart of a friend adding method provided in an embodiment of the present application. The specific process of the friend adding method may be as follows:
[0075] S101. Receive a friend application request from a first user for a second user of a first preset application.
[0076] Among them, the first preset application can be an instant messaging application applied to the enterprise, such as enterprise-level instant messaging applications such as WeChat for Business and DingTalk. The second user can be an employee of the target enterprise using the first preset application. The first user can be an external person (such as a customer) of the target enterprise. In some examples, the first user can be an employee of other enterprises using the first preset application. In other examples, the first user can also be a user of the second preset application, wherein the second preset application and the first preset application can be different instant messaging applications, for example, they can be WeChat and WeChat for Business, respectively.
[0077] Specifically, the above-mentioned friend application request may include the user identifier of the second user in the first preset application, and the user identifier can distinguish the second user from other users of the above-mentioned first preset application, so that the background (i.e., the server) of the above-mentioned first preset application can obtain the user information of the second user from the database of the first preset application according to the user identifier.
[0078] In some embodiments, the above S101 may specifically include: receiving a friend application request sent by the first user by scanning a personal business card of the second user in the first preset application. The personal business card may be in the form of a QR code, barcode or other image, which can be used to find user information of the corresponding user in the first preset application.
[0079] Specifically, when the first user wants to establish a friend relationship with the second user of the first preset application, the first client used by the first user can scan the personal business card (for example, a QR code image) of the second user in the first preset application to trigger the first client to send a friend application request for the second user to the server of the first preset application. Afterwards, the server of the first preset application can receive the friend application request and determine whether to add the first user as a friend of the second user in the first preset application based on the friend application request.
[0080] The first client may include physical devices such as smart phones, desktop computers, tablet computers, laptops, digital assistants, smart wearable devices, etc., and may also include software running in physical devices, such as web pages provided by service providers to users, and may also include applications provided by these service providers to users. Specifically, when the first user is a user of the first preset application, the first preset application may be running in the first client. When the second user is a user of the second preset application, the second preset application may be running in the first client.
[0081] S102. Determine, according to the friend application request, a target group to which the second user belongs in the first preset application.
[0082] Specifically, the first preset application may be an instant messaging application used for an enterprise, and the first preset application may have one or more groups, each of which may correspond to an enterprise using the first preset application. The target group may be a group corresponding to the enterprise where the second user is located (i.e., the target enterprise) in the first preset application, and the target group may include multiple users, and each user in the target group may correspond to an employee of the target enterprise.
[0083] In some embodiments, after receiving a friend application request from the first user for a second user of the first preset application, the server of the first preset application can search for user information of the second user corresponding to the user identifier of the second user carried in the friend application request. The user information may include the target group corresponding to the target enterprise of the second user in the first preset application.
[0084] S103. In response to the fact that there is no associated user in the target group who is a friend of the first user, add the first user as a friend of the second user in the first preset application.
[0085] S104. In response to the existence of an associated user in the target group who is a friend of the first user, prompt the first user that the associated user is a friend of the first user.
[0086] In some embodiments, after determining the target group to which the second user belongs in the first preset application, the server of the first preset application can respectively detect whether each user in the target group is a friend of the first user, and when each user in the target group is not a friend of the first user, it can be determined that there is no user in the target group who is a friend of the first user (that is, the associated user), and when any user in the target group is a friend of the first user, it can be determined that there is an associated user in the target group who is a friend of the first user.
[0087] Moreover, in the present embodiment, when each user in the target group is not a friend of the first user, that is, when all employees in the target enterprise where the second user is located have not established a friend relationship with the first user in the first preset application, the first user is added as a friend of the second user in the first preset application, so that the second user can use the first preset application to exchange information with the first user, thereby enabling instant online communication between employees in the target enterprise and external personnel (e.g., customers) of the target enterprise to reduce customer churn.
[0088] In this embodiment, when there is an associated user in the target group who is a friend of the first user, that is, when an employee in the target enterprise where the second user is located has established a friend relationship with the first user in the first preset application, the first user is only prompted that they are friends with the users in the target group, and the first user is not added as a friend of the second user in the first preset application. This can prevent external personnel (for example, customers) of the target enterprise from establishing friend relationships with multiple different employees of the target enterprise in the first preset application. Therefore, it can not only reduce the waste of human resources for the enterprise caused by multiple employees connecting with the same customer, but also reduce the damage to the company's interests caused by vicious competition among employees for customers.
[0089] In some other embodiments, after determining the target group to which the second user belongs in the first preset application, Figure 4 As shown, the above friend adding method may further include:
[0090] S105. Determine at least one target subgroup from the target group, each target subgroup including the second user.
[0091] Specifically, the target group may include multiple users, the target group may include at least one subgroup, and each subgroup may include at least one user in the target group. Users in the same subgroup may have the same user classification, and users in different subgroups may have different user classifications. Furthermore, each user may have one or more user classifications, and accordingly, each user may be in one or more subgroups. The target subgroup may be the subgroup to which the second user belongs in the target group.
[0092] In some examples, such as Figure 5 As shown, when the target group corresponds to the target enterprise, each subgroup 1 / 2 / 3 may correspond to a department 1 / 2 / 3 in the target enterprise. Each user A / B / C / D / E in the target group may be in one or more subgroups 1 / 2 / 3, which may correspond to each employee A / B / C / D / E in the target enterprise being in one or more departments 1 / 2 / 3. For example, employee A of the target enterprise may be in both department 1 and department 3 of the target enterprise, and employee B of the target enterprise may be only in department 1 of the target enterprise.
[0093] In some specific embodiments, Figure 4 As shown, the above S103 may specifically include:
[0094] S1031. In response to the fact that there are no associated users in each target subgroup who are friends with the first user, add the first user as a friend of the second user in the first preset application.
[0095] Furthermore, the above S104 may specifically include:
[0096] S1041. In response to the presence of an associated user who is a friend of the first user in any target subgroup, prompt the first user that the associated user is a friend of the first user.
[0097] Specifically, after obtaining the at least one target subgroup, the server of the first preset application may respectively detect whether there is a user who is a friend of the first user in each target subgroup.
[0098] Furthermore, when there are no users who are friends with the first user in each target subgroup, the server of the first preset application may add the first user as a friend of the second user in the first preset application. When there are users who are friends with the first user in any target subgroup, the server of the first preset application may prompt the first user that they are friends with the users in the target group.
[0099] In other words, once it is detected that there is a user in a target subgroup who is a friend of the first user, the first user will not be added as a friend of the second user in the first preset application. Thus, it is possible to prevent users in different target subgroups from adding the first user as a friend. When the target group corresponds to a target enterprise, it is possible to prevent users in multiple different departments of the enterprise from adding the same external person (e.g., a customer) as a friend, thereby reducing the waste of human resources of the enterprise.
[0100] In some alternative embodiments, such as Figure 6 As shown, the above S1031 and the above S1041 can be replaced by S1032 and S1042 respectively, wherein:
[0101] S1032. In response to the fact that there is no associated user who is a friend of the first user in any target subgroup, the first user is added as a friend of the second user in the first preset application.
[0102] S1042. In response to the fact that there are associated users who are friends with the first user in each target subgroup, prompt the first user that the associated users are friends.
[0103] Specifically, after obtaining the at least one target subgroup, the server of the first preset application may respectively detect whether there is a user who is a friend of the first user (ie, the associated user) in each target subgroup.
[0104] Furthermore, when there is no user who is a friend of the first user in any target subgroup, the server of the first preset application can add the first user as a friend of the second user in the first preset application. When there is a user who is a friend of the first user in each target subgroup, it is prompted that the first user is already a friend of the users in the target group.
[0105] In other words, once it is detected that there is no user in a target subgroup who is a friend of the first user, the first user will be added as a friend of the second user in the first preset application. Thus, it can not only ensure that at most one user in each target subgroup adds the first user as a friend, but also ensure that users in different target subgroups can add the first user as a friend. Therefore, when the target group corresponds to a target enterprise, it can not only prevent multiple users in the same department of the enterprise from adding the same customer as a friend, thereby reducing the waste of human resources of the enterprise, but also ensure that users in different departments of the enterprise can add the same customer as a friend, thereby reducing the loss of customers of the enterprise.
[0106] In some specific embodiments, after determining the target group to which the second user belongs in the first preset application, Figure 7 As shown, the above friend adding method may further include:
[0107] S106. Obtain configuration information corresponding to the target group.
[0108] Accordingly, the above S105 may specifically include: determining at least one target subgroup from the target group according to the configuration information.
[0109] Specifically, after determining the target group to which the second user belongs in the first preset application according to the friend application request, the server of the first preset application may obtain the configuration information corresponding to the target group from the database of the first preset application.
[0110] The database of the first preset application may pre-store configuration information corresponding to each group in the first preset application, and the configuration information corresponding to each group may be pre-input by an administrator of each group.
[0111] In some examples, the configuration information may include a guest lockout strategy, and the guest lockout strategy may be a first guest lockout strategy or a second guest lockout strategy.
[0112] In some specific examples, when the customer locking strategy corresponding to the target group is the first customer locking strategy, S105 may specifically include: according to the first customer locking strategy, the target group is used as a target subgroup. Thus, when the target group corresponds to the target enterprise, when all employees in the target enterprise where the second user is located have not established a friend relationship with the first user in the first preset application, the first user can be added as a friend of the second user in the first preset application, and when employees in the target enterprise where the second user is located have established a friend relationship with the first user in the first preset application, it is only prompted that the first user and the users in the target group are already friends, and the first user is not added as a friend of the second user in the first preset application, thereby preventing external personnel (for example, customers) of the target enterprise from establishing friend relationships with multiple different employees of the target enterprise in the first preset application, so as to reduce the waste of human resources caused by multiple employees connecting with the same customer.
[0113] In some other specific examples, when the customer locking strategy corresponding to the target group is the second customer locking strategy, the above S105 may specifically include: determining at least one target subgroup from the target group according to the second customer locking strategy. In addition, during specific implementation, the above second customer locking strategy may include a target user level, and accordingly, the above S105 may specifically include:
[0114] S1051. When the user level of the second user in the first preset application is lower than the target user level, determine at least one target management rule to which the second user belongs in the first preset application.
[0115] S1052. Group the users in the target group who belong to the same target management rule and whose user level is lower than the target user level into one group to obtain at least one target subgroup.
[0116] Specifically, after obtaining the configuration information including the target user level corresponding to the above-mentioned target group, the server of the above-mentioned first preset application can detect whether the user level of the above-mentioned second user in the first preset application is lower than the above-mentioned target user level. If so, it can determine at least one target management rule to which the second user belongs in the first preset application, and group the users in the target group who belong to the same target management rule and whose user level is lower than the target user level together to obtain at least one target sub-group.
[0117] Furthermore, if the user level of the second user in the first preset application is not lower than the target user level, the server of the first preset application may add the first user as a friend of the second user in the first preset application.
[0118] In other words, multiple different users in the target group whose user level is not lower than the target user level can all establish a friend relationship with the first user. However, among the users in the target group whose user level is lower than the target user level and belong to the same management rule, at most only one user is allowed to establish a friend relationship with the first user.
[0119] Specifically, the target group may include at least one subgroup, and each subgroup may include at least one user in the target group. Furthermore, each subgroup may correspond to a management rule, and different subgroups may correspond to different management rules. Accordingly, the target management rule may be the management rule corresponding to the subgroup to which the second user belongs in the target group. Each target subgroup may be composed of users whose user level is lower than the target user level in each subgroup to which the second user belongs.
[0120] In some examples, such as Figure 8 As shown, the management rules of the target group can be a tree structure, and each management rule (e.g., management rule 1, management rule 2, management rule 3, management rule 4, management rule 5, management rule 6, management rule 7, etc.) can have a user level (e.g., level 1, level 2, level 3, etc.). The management rule as the root node (e.g., management rule 1) can correspond to the highest user level (i.e., level 1). The management rule can have its own child nodes, and the user level corresponding to its child nodes is one level lower, for example, Figure 8 As shown, management rule 2 and management rule 3 may be child nodes of management rule 1, management rule 4 may be child nodes of management rule 2, and management rule 5, management rule 6, and management rule 7 may be child nodes of management rule 3. Moreover, for each management rule, the users in the target group who belong to the child nodes of the management rule also belong to the management rule.
[0121] Specifically, for each subgroup in the above-mentioned target group, the subgroup can be composed of users in the above-mentioned target group who belong to the management rule corresponding to the subgroup and whose user level is lower than the user level of the management rule corresponding to the subgroup. For example, when the subgroup corresponds to management rule 3, the user level corresponding to management rule 3 is level 2, and the subgroup can be composed of users in the above-mentioned target group who belong to management rule 3 and whose user level is lower than level 2. That is, the subgroup can include users belonging to management rule 3, users belonging to management rule 5, users belonging to management rule 6, and users belonging to management rule 7.
[0122] In the above embodiment where the configuration information includes the target user level, the above target group may include a user who is an administrator, and the above friend adding method may further include:
[0123] S107. In response to the administrator's configuration operation on the target group in the first preset application, configuration information corresponding to the target group is determined according to the configuration operation, where the configuration information includes a target user level.
[0124] Specifically, the above configuration operation may include selecting a user level from a plurality of user levels (eg, level 1, level 2, level 3, etc.) as a target user level.
[0125] Each user in the target group may correspond to a user level, and the higher the user level, the greater the user authority of the corresponding user in the first preset application.
[0126] In some specific embodiments, after determining the configuration information including the target user level corresponding to the above-mentioned target group, the server of the above-mentioned first preset application may also send a prompt message to the users in the above-mentioned target group whose user level is lower than the target user level, and the prompt message is used to prompt the users in the above-mentioned target group whose user level is lower than the target user level and who belong to the same management rule that at most one of them is allowed to establish a friend relationship with the above-mentioned first user, so that when the users in the above-mentioned target group whose user level is lower than the target user level encounter the situation that they cannot add the above-mentioned first user as a friend, they can know that this is because the administrator has configured a user lock function for the above-mentioned target group.
[0127] Furthermore, it should be noted that the present embodiment enables the administrator in the target group (i.e., the target enterprise) to set the configuration information of the target group based on the management rules of the target group, and configure the specific customer lock effectiveness range (i.e., the above-mentioned target sub-group), so that enterprise employees within the same customer lock effectiveness range cannot add the same customer, and can choose to set whether users in different customer lock effectiveness ranges can add the same customer as a friend, thereby enabling the management of the enterprise to be more flexible and efficient.
[0128] In some embodiments, the adding of the first user as a friend of the second user in the first preset application may specifically include:
[0129] S1-1. Sending a friend adding interface of the second user in the first preset application to the first user.
[0130] Specifically, the friend adding interface of the second user may include one or more information of the second user, such as a user identification number, an avatar, a nickname, etc., and may also include a friend adding control (eg, a button).
[0131] S1-2. Receive a friend adding request sent by the first user through the friend adding interface.
[0132] Specifically, the server of the first preset application may send the friend adding interface of the second user in the first preset application to the first client used by the first user, and after receiving the friend adding interface of the second user, the first client may display the friend adding interface in a graphical user interface. Then, the first user may trigger the first client to send a corresponding friend adding request to the server of the first preset application by clicking on the display area of the add friend control in the friend adding interface.
[0133] S1-3. According to the friend adding request, the first user is added as a friend of the second user in the first preset application.
[0134] Specifically, after receiving the friend adding request sent by the first user, the server of the first preset application may automatically add the first user as a friend of the second user in the first preset application without the consent of the second user.
[0135] In other embodiments, the prompting that the first user and the associated user have established a friend relationship may specifically include: sending the user information of the associated user to the first user. The user information may include a user identification number, an avatar, a nickname, etc. Moreover, when there are multiple users in the target group who are all friends with the first user, that is, when there are multiple associated users, the server of the first preset application may randomly select an associated user from the multiple associated users as the target user, and send the user information of the target user to the first user, so that the first user can quickly know that he has established a friend relationship with the target user in the target group, without having to add the second user in the target group as a friend.
[0136] As can be seen from the above, the friend adding method provided in this embodiment receives a friend application request for a second user of a first preset application sent by a first user, and determines the target group to which the second user belongs in the first preset application based on the friend application request, and then, in response to the absence of an associated user with whom the first user is a friend in the target group, adds the first user as a friend of the second user in the first preset application, and in response to the presence of an associated user with whom the first user is a friend in the target group, prompts the first user and the associated user that they are already friends, thereby preventing multiple different employees in the same enterprise group from adding the same customer as a friend during the process of the enterprise using an enterprise-level instant messaging application, thereby reducing the waste of resources caused to the enterprise due to multiple different employees of the enterprise connecting with the same customer.
[0137] The following briefly introduces the process of the friend adding method by taking the application of the above friend adding method to the first client, the second client, the server of the first preset application and the server of the second preset application in the friend adding system as an example.
[0138] The first client is a client used by the first user, the second client is a client used by the second user, and the first client may run a second preset application, and the second client may allow the first preset application to run. The first client may be connected to a server of the second preset application through a network, the second client may be connected to a server of the first preset application through a network, and the server of the first preset application and the server of the second preset application may be connected through a preset data interface to perform data interaction.
[0139] Specifically, when a user of the second preset application (i.e., the first user mentioned above) wants to add a user of the first preset application (i.e., the second user mentioned above) as a friend, the first user mentioned above can use the first client used by him to scan the personal business card (for example, a QR code image) of the second user in the first preset application to trigger the server of the second preset application to send a friend application request for the second user to the server of the first preset application.
[0140] Next, the server of the first preset application may receive the friend application request, and determine the target group to which the second user belongs in the first preset application according to the user identifier of the second user carried in the friend application request. Then, the server of the first preset application may obtain configuration information corresponding to the target group from the database of the first preset application, and determine at least one target subgroup from the target group according to the configuration information.
[0141] Afterwards, when there are no users who are friends with the first user (i.e., the above-mentioned associated users) in each target subgroup, the server of the first preset application can add the first user as a friend of the second user in the first preset application, and when there are users who are friends with the first user (i.e., the above-mentioned associated users) in any target subgroup, it can prompt that the first user and the associated user are already friends. Alternatively, when there are no users who are friends with the first user (i.e., the above-mentioned associated users) in any target subgroup, the server of the first preset application can add the first user as a friend of the second user in the first preset application, and when there are users who are friends with the first user (i.e., the above-mentioned associated users) in each target subgroup, it can prompt that the first user and the associated user are already friends.
[0142] Specifically, when the server of the first preset application adds the first user as a friend of the second user in the first preset application, it can specifically perform: sending the friend adding interface of the second user to the first client through the server of the second preset application. Then, after receiving the friend adding interface of the second user, the first client can display the friend adding interface of the second user, and can respond to the friend adding operation of the first user on the friend adding interface, generate a friend adding request for the second user, and then send the friend adding request to the server of the first preset application through the server of the second preset application. Then, the server of the first preset application can receive the friend adding request and send the friend adding request to the second client. After that, the second client can respond to the operation of the second user agreeing or disagreeing to add the first user as a friend, generate a verification result, and send the verification result to the server of the first preset application. Then, the server of the first preset application can receive the verification result, and when the verification result indicates that the second user agrees to add the first user as a friend, establish a friend relationship between the first user and the second user.
[0143] Specifically, when prompting the first user that the associated user is a friend, the server of the first preset application may specifically execute: sending the user information of the associated user to the first client through the server of the second preset application, so that the first user can promptly know that he has added the user in the target group as a friend.
[0144] From the above, it can be seen that the friend adding method provided in this embodiment is applied to the friend adding system, so that in the process of the enterprise using the enterprise-level instant messaging application, it is possible to avoid multiple different employees in the same enterprise group adding the same customer as a friend, thereby reducing the waste of resources caused to the enterprise by multiple different employees of the enterprise connecting with the same customer.
[0145] Based on the method described in the above embodiment, this embodiment will be further described from the perspective of a friend adding device. Fig. 9 , Fig. 9 The friend adding device provided in the embodiment of the present application is specifically described, and the friend adding device includes: a receiving module 301, a first determining module 302, an adding module 303 and a prompting module 304, wherein:
[0146] (1) Receiving module 301
[0147] The receiving module 301 is used to receive a friend application request sent by a first user for a second user of a first preset application.
[0148] In this embodiment, the receiving module 301 may be specifically used for:
[0149] A friend application request is received from a first user by scanning a personal business card of a second user in a first preset application.
[0150] (2) First determination module 302
[0151] The first determining module 302 is used to determine the target group to which the second user belongs in the first preset application according to the friend application request.
[0152] (3) Add module 303
[0153] The adding module 303 is configured to add the first user as a friend of the second user in the first preset application in response to the fact that there is no associated user in the target group who is a friend of the first user.
[0154] Specifically, when adding the first user as a friend of the second user in the first preset application, the adding module 303 may specifically execute:
[0155] Sending a friend adding interface of the second user in the first preset application to the first user;
[0156] Receiving a friend adding request sent by the first user through the friend adding interface;
[0157] According to the friend adding request, the first user is added as a friend of the second user in the first preset application.
[0158] (4) Prompt module 304
[0159] The prompt module 304 is configured to prompt the first user that the associated user is a friend of the first user in response to the associated user being a friend of the first user in the target group.
[0160] Specifically, when prompting the first user and the associated user that they are friends, the prompt module 304 may specifically execute:
[0161] The user information of the associated user is sent to the first user.
[0162] In some embodiments, the above-mentioned friend adding device may further include:
[0163] (5) Second determination module
[0164] The second determining module is used to determine at least one target subgroup from the target group, each target subgroup including the second user.
[0165] Accordingly, the adding module 303 may be specifically used for:
[0166] In response to the fact that there are no associated users in each target subgroup who are friends with the first user, the first user is added as a friend of the second user in the first preset application.
[0167] Furthermore, the prompt module 304 may be specifically used for:
[0168] In response to the presence of an associated user who is a friend of the first user in any target subgroup, it is prompted that the first user and the associated user are already friends.
[0169] In some alternative embodiments, the adding module 303 may also be specifically used for:
[0170] In response to the fact that there is no associated user in any target subgroup who is a friend of the first user, the first user is added as a friend of the second user in the first preset application.
[0171] Furthermore, the prompt module 304 may also be specifically used for:
[0172] In response to the fact that there are associated users who are friends with the first user in each target subgroup, it is prompted that the first user and the associated users are friends.
[0173] In some specific embodiments, the above-mentioned friend adding device may also include:
[0174] (6) Get module
[0175] The acquisition module is used to obtain the configuration information corresponding to the target group.
[0176] Accordingly, the second determining module may be specifically used for:
[0177] At least one target subgroup is determined from the target group according to the configuration information.
[0178] In some examples, the target group may include a user who is an administrator, and the friend adding means may further include:
[0179] (7) Third determination module
[0180] The third determination module is used to respond to the administrator's configuration operation on the target group in the first preset application, and determine configuration information corresponding to the target group according to the configuration operation, wherein the configuration information includes a target user level.
[0181] Accordingly, when the second determining module determines at least one target subgroup from the target group according to the configuration information, the second determining module may specifically execute:
[0182] When the user level of the second user in the first preset application is lower than the target user level, determining at least one target management rule to which the second user belongs in the first preset application;
[0183] The users in the target group who belong to the same target management rule and whose user level is lower than the target user level are grouped together to obtain at least one target subgroup.
[0184] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation of the above modules can be found in the previous method embodiments, which will not be repeated here.
[0185] As can be seen from the above, the friend adding device provided in this embodiment includes a receiving module for receiving a friend application request sent by a first user for a second user of a first preset application; a first determining module for determining a target group to which the second user belongs in the first preset application based on the friend application request; an adding module for adding the first user as a friend of the second user in the first preset application in response to the absence of an associated user with whom the first user is a friend in the target group; and a prompting module for prompting the first user that the associated user is already a friend in response to the presence of an associated user with whom the first user is a friend in the target group, thereby preventing multiple different employees in the same enterprise group from adding the same customer as a friend in the process of using an enterprise-level instant messaging application, thereby reducing the waste of resources caused to the enterprise due to multiple different employees of the enterprise connecting with the same customer.
[0186] Accordingly, the embodiment of the present application also provides an electronic device, which may be a terminal or a server, and the terminal may be a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer, a personal digital assistant (PDA), or other terminal devices. Fig.10 As shown, Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 400 includes a processor 401 having one or more processing cores, a memory 402 having one or more computer-readable storage media, and a computer program stored in the memory 402 and executable on the processor. The processor 401 is electrically connected to the memory 402. Those skilled in the art will appreciate that the electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine certain components, or arrange components differently.
[0187] The processor 401 is the control center of the electronic device 400. It uses various interfaces and lines to connect various parts of the entire electronic device 400, and executes various functions of the electronic device 400 and processes data by running or loading software programs and / or modules stored in the memory 402, and calling data stored in the memory 402.
[0188] In the embodiment of the present application, the processor 401 in the electronic device 400 will load instructions corresponding to the processes of one or more application programs into the memory 402 according to the following steps, and the processor 401 will run the application programs stored in the memory 402 to implement various functions:
[0189] Receiving a friend application request from a first user for a second user of a first preset application;
[0190] Determine, according to the friend application request, a target group to which the second user belongs in the first preset application;
[0191] In response to the target group not having an associated user who is a friend of the first user, adding the first user as a friend of the second user in the first preset application;
[0192] In response to the existence of an associated user in the target group who is a friend of the first user, it is prompted that the first user and the associated user are already friends.
[0193] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0194] Optional, such as Fig.10 As shown, the electronic device 400 further includes: a touch screen 403, a radio frequency circuit 404, an audio circuit 405, an input unit 406, and a power supply 407. The processor 401 is electrically connected to the touch screen 403, the radio frequency circuit 404, the audio circuit 405, the input unit 406, and the power supply 407, respectively. Those skilled in the art can understand that Fig.10 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0195] The touch display screen 403 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 403 may include a display panel and a touch panel. Among them, the display panel may be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device, and these graphical user interfaces may be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light-emitting diode (OLED, Organic Light-Emitting Diode) and the like. The touch panel may be used to collect the user's touch operation on or near it (such as the user using any suitable object or attachment such as a finger, a stylus, etc. on the touch panel or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 401, and can receive the command sent by the processor 401 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 401 to determine the type of touch event, and then the processor 401 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 403 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 403 can also be used as a part of the input unit 406 to realize the input function.
[0196] In an embodiment of the present application, the processor 401 executes a game application to generate a screen of a virtual three-dimensional scene on the touch display screen 403, which includes a graphical user interface (UI interface), and the graphical user interface includes a second spatial orientation indicator, which displays a spatial orientation mark corresponding to the target object, and the spatial orientation mark is used to indicate the position of the target object.
[0197] The touch screen 403 can be used to present images of a virtual three-dimensional scene and a graphical user interface and receive operation instructions generated by a user acting on the graphical user interface.
[0198] The radio frequency circuit 404 may be used to send and receive radio frequency signals, so as to establish wireless communication with a network device or other electronic devices through wireless communication, and to send and receive signals with the network device or other electronic devices.
[0199] The audio circuit 405 can be used to provide an audio interface between the user and the electronic device through a speaker and a microphone. The audio circuit 405 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 405 and converted into audio data, and then the audio data is output to the processor 401 for processing, and then sent to another electronic device through the radio frequency circuit 404, or the audio data is output to the memory 402 for further processing. The audio circuit 405 may also include an earplug jack to provide communication between an external headset and an electronic device.
[0200] The input unit 406 may be used to receive input numbers, character information or feature information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0201] The power supply 407 is used to supply power to various components of the electronic device 400. Optionally, the power supply 407 can be logically connected to the processor 401 through a power management system, so that the power management system can manage charging, discharging, and power consumption. The power supply 407 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0202] although Fig.10 Not shown, the electronic device 400 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.
[0203] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0204] From the above, it can be seen that the electronic device provided in this embodiment can prevent multiple different employees in the same enterprise group from adding the same customer as a friend when the enterprise uses an enterprise-level instant messaging application, thereby reducing the waste of resources caused to the enterprise by multiple different employees connecting with the same customer.
[0205] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0206] To this end, an embodiment of the present application provides a computer-readable storage medium, in which multiple computer programs are stored, and the computer program can be loaded by a processor to execute the steps in any of the friend adding methods provided in the embodiments of the present application. For example, the computer program can execute the following steps:
[0207] Receiving a friend application request from a first user for a second user of a first preset application;
[0208] Determine, according to the friend application request, a target group to which the second user belongs in the first preset application;
[0209] In response to the target group not having an associated user who is a friend of the first user, adding the first user as a friend of the second user in the first preset application;
[0210] In response to the existence of an associated user in the target group who is a friend of the first user, it is prompted that the first user and the associated user are already friends.
[0211] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0212] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0213] Since the computer program stored in the computer-readable storage medium can execute the steps in any one of the friend adding methods provided in the embodiments of the present application, the beneficial effects that can be achieved by any one of the friend adding methods provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0214] The above is a detailed introduction to a friend adding method, device, computer-readable storage medium and electronic device provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A friend adding method, characterized in that: include: Receiving a friend application request from a first user for a second user of a first preset application; Determining, according to the friend application request, a target group to which the second user belongs in the first preset application; In response to the target group not having any associated user who is a friend of the first user, adding the first user as a friend of the second user in the first preset application; In response to the existence of an associated user in the target group who is a friend of the first user, it is prompted that the first user and the associated user are already friends.
2. The friend adding method according to claim 1, characterized in that: The method further comprises: Determine at least one target subgroup from the target group, each of the target subgroups including the second user; In response to the absence of an associated user in the target group who is a friend of the first user, adding the first user as a friend of the second user in the first preset application specifically includes: In response to the fact that there are no associated users in each of the target subgroups who are friends with the first user, adding the first user as a friend of the second user in the first preset application; In response to the existence of an associated user in the target group who is a friend of the first user, prompting the first user that the associated user is a friend of the first user specifically includes: In response to the presence of an associated user who is a friend of the first user in any of the target subgroups, it is prompted that the first user and the associated user are already friends.
3. The friend adding method according to claim 1, characterized in that: The method further comprises: Determine at least one target subgroup from the target group, each of the target subgroups including the second user; In response to the absence of an associated user in the target group who is a friend of the first user, adding the first user as a friend of the second user in the first preset application specifically includes: In response to the absence of an associated user who is a friend of the first user in any of the target subgroups, adding the first user as a friend of the second user in the first preset application; In response to the existence of an associated user in the target group who is a friend of the first user, prompting the first user that the associated user is a friend of the first user specifically includes: In response to the fact that there are associated users who are friends with the first user in each of the target subgroups, it is prompted that the first user and the associated users are friends.
4. The friend adding method according to claim 2 or 3, characterized in that: The method further comprises: Obtaining configuration information corresponding to the target group; The determining at least one target subgroup from the target group specifically includes: At least one target subgroup is determined from the target group according to the configuration information.
5. The friend adding method according to claim 4, characterized in that: The target group includes a user who is an administrator, and the method further includes: In response to the administrator's configuration operation on the target group in the first preset application, determining configuration information corresponding to the target group according to the configuration operation, wherein the configuration information includes a target user level; The determining at least one target subgroup from the target group according to the configuration information specifically includes: When the user level of the second user in the first preset application is lower than the target user level, determining at least one target management rule to which the second user belongs in the first preset application; The users in the target group who belong to the same target management rule and whose user level is lower than the target user level are grouped together to obtain at least one target subgroup.
6. The friend adding method according to claim 1, characterized in that: The receiving a friend application request from a first user for a second user of a first preset application specifically includes: A friend application request is received from a first user by scanning a personal business card of a second user in a first preset application.
7. The friend adding method according to claim 1, characterized in that: The adding the first user as a friend of the second user in the first preset application specifically includes: Sending a friend adding interface of the second user in the first preset application to the first user; receiving a friend adding request sent by the first user through the friend adding interface; According to the friend adding request, the first user is added as a friend of the second user in the first preset application.
8. The friend adding method according to claim 1, characterized in that: The prompting that the first user and the associated user are friends specifically includes: Send the user information of the associated user to the first user.
9. A device for adding friends, characterized in that: include: A receiving module, configured to receive a friend application request from a first user for a second user of a first preset application; a determination module, configured to determine, according to the friend application request, a target group to which the second user belongs in the first preset application; an adding module, configured to, in response to the absence of an associated user in the target group who is a friend of the first user, add the first user as a friend of the second user in the first preset application; The prompt module is configured to prompt the first user that the associated user is a friend of the first user in response to the associated user being in the target group.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor to execute the friend adding method according to any one of claims 1-8.
11. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and the processor executes the friend adding method according to any one of claims 1 to 8 by calling the computer program stored in the memory.