WO2023093325A1 - Method and apparatus for adding friend, and server and storage medium - Google Patents

Method and apparatus for adding friend, and server and storage medium Download PDF

Info

Publication number
WO2023093325A1
WO2023093325A1 PCT/CN2022/124353 CN2022124353W WO2023093325A1 WO 2023093325 A1 WO2023093325 A1 WO 2023093325A1 CN 2022124353 W CN2022124353 W CN 2022124353W WO 2023093325 A1 WO2023093325 A1 WO 2023093325A1
Authority
WO
WIPO (PCT)
Prior art keywords
user terminal
friend
information
user
user account
Prior art date
Application number
PCT/CN2022/124353
Other languages
French (fr)
Chinese (zh)
Inventor
曹伟鑫
Original Assignee
杭州逗酷软件科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 杭州逗酷软件科技有限公司 filed Critical 杭州逗酷软件科技有限公司
Publication of WO2023093325A1 publication Critical patent/WO2023093325A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9536Search customisation based on social or collaborative filtering

Definitions

  • the present application relates to the technical field of the Internet, and more specifically, to a method, device, server and storage medium for adding friends.
  • the present application proposes a method, device, server and storage medium for adding friends.
  • an embodiment of the present application provides a method for adding a friend, the method comprising: receiving a first friend addition request sent by a first user terminal, the first friend addition request carrying communication information; if there is no The second user account corresponding to the communication information sends invitation information to the second user terminal based on the communication information, where the invitation information is used to instruct the second user terminal to register based on the download link carried in the invitation information
  • the second user account of the target application when the second user account exists, sending the first friend addition request to the second user terminal; in response to receiving the target indication returned by the second user terminal information, establishing a friendship relationship between the first user account corresponding to the first user terminal and the second user account in the target application, and the target indication information is used to instruct the second user terminal to agree to the Describe the request to add the first friend.
  • the embodiment of the present application provides a device for adding friends
  • the device includes: a request receiving module, an information sending module, a request sending module and a friend adding module, wherein the request receiving module is used to receive the first The first friend addition request sent by the user terminal, the first friend addition request carries communication information; the information sending module is configured to, if there is no second user account corresponding to the communication information, based on the communication information, send The second user terminal sends invitation information, where the invitation information is used to instruct the second user terminal to register the second user account of the target application based on the download link carried in the invitation information; the request sending module is used when When the second user account exists, sending the first friend addition request to the second user terminal; the friend adding module is configured to, in response to receiving the target indication information returned by the second user terminal, Establish a friend relationship between the first user account corresponding to the first user terminal and the second user account in the target application, and the target indication information is used to instruct the second user terminal to agree with the first friend Add request.
  • the embodiment of the present application provides a server, including: one or more processors; memory; one or more application programs, wherein the one or more application programs are stored in the memory and It is configured to be executed by the one or more processors, and the one or more programs are configured to execute the method for adding a friend provided in the first aspect above.
  • the embodiment of the present application provides a computer-readable storage medium, where program code is stored in the computer-readable storage medium, and the program code can be invoked by a processor to execute the addition provided in the above-mentioned first aspect. Buddy method.
  • the embodiment of the present application provides a computer program product, including computer programs/instructions, characterized in that, when the computer program/instructions are executed by a processor, the method for adding friends provided in the first aspect above is implemented.
  • FIG. 1 shows a schematic diagram of an application environment provided by an embodiment of the present application.
  • FIG. 2 shows a schematic diagram of another application environment provided by the embodiment of the present application.
  • Fig. 3 shows a flowchart of a method for adding a friend according to an embodiment of the present application.
  • Fig. 4 shows a flowchart of a method for adding friends according to another embodiment of the present application.
  • Fig. 5 shows a flowchart of a method for adding friends according to another embodiment of the present application.
  • Fig. 6 shows a flowchart of a method for adding friends according to yet another embodiment of the present application.
  • Fig. 7 shows a flowchart of a method for adding friends according to yet another embodiment of the present application.
  • Fig. 8 shows a flowchart of a method for adding friends according to yet another embodiment of the present application.
  • FIG. 9 shows a schematic diagram of the principle of the method for adding friends provided by the present application.
  • Fig. 10 shows a block diagram of an apparatus for adding friends according to an embodiment of the present application.
  • Fig. 11 is a block diagram of a server for performing the method for adding a friend according to the embodiment of the application according to the embodiment of the application.
  • Fig. 12 is a storage unit for storing or carrying program codes for implementing the method for adding friends according to the embodiment of the application according to the embodiment of the application.
  • social software is the carrier that supports the above social behaviors.
  • Users can socialize online through user accounts registered on social software. Among them, the user can add other users as friends through the account registered on the social software, so as to meet the friend socialization required by the user.
  • the inventor proposed the method, device, server and storage medium for adding friends provided by the embodiment of the present application, which can realize that when a user adds a friend who has not registered an account, both parties can complete the friend adding without too many operations. added to improve the user experience. .
  • the specific method of adding a friend will be described in detail in the subsequent embodiments.
  • the application environment involved in the method for adding friends provided by the embodiment of the present application includes a friend adding system 10 .
  • the friend adding system 10 includes a server 100 and multiple user terminals (only the first user terminal 201 and the second user terminal 202 are shown in FIG. 1 ).
  • the server can communicate with the user terminal to implement the method for adding a friend provided in the embodiment of the present application.
  • the first user terminal 201 uses the installed target application to send a friend addition request carrying communication information to the server 100; after the server 100 receives the friend addition request sent by the first user terminal 201, if The corresponding second user account, based on the communication information, sends invitation information to the second user terminal 202, the invitation information carries a download link, so that the second user can register the target application based on the download link carried in the invitation information.
  • the server 100 can query the second user account, and then send a friend addition request to the second user terminal, to be received
  • the second user terminal 202 returns the indication information for indicating that the request for adding a friend is approved, a friend relationship between the first user account and the second user account is established in the target application.
  • the first user terminal 201 and the second user terminal 202 may be smartphones, wearable devices, tablet computers, notebook computers, vehicle-machine equipment, etc., which are not limited here; the server 100 may be an independent physical server, or It is a server cluster or distributed system composed of multiple physical servers, and it can also be a cloud server.
  • the server 100 may include a first server 101, a second server 102, and a third server 103, and the first server 101, the second server 102, and the third server 103 may communicate with each other, and the first server 101 can be used for account management, when receiving a friend adding request, query whether there is an account registered by the added user; the second server 102 can be used to send a friend adding request to the user terminal of the added user; the third server 103 can be used to send invitation information carrying the download link of the target application to the user terminal of the invited user.
  • the third server 103 can serve as a short message platform server and send a short message carrying the download link to the invited user. terminal.
  • FIG. 3 shows a schematic flowchart of a method for adding a friend provided by an embodiment of the present application.
  • the method for adding friends is applied to the above-mentioned server.
  • the following will take the server as an example to illustrate the specific process of this embodiment.
  • the process shown in Figure 3 will be described in detail below, and the method for adding a friend may specifically include the following steps:
  • Step S110 Receive a first friend addition request sent by a first user terminal, where the first friend addition request carries communication information.
  • the first user may initiate a first friend addition request for adding the user account of the second user as a friend in the target application through the first user terminal.
  • the server may receive the first friend addition request sent by the first user terminal.
  • the target application can be any application program including social functions, which can provide a friend function, and different users can use the target application in their respective terminals, and perform addition of friends and social interaction required by the user; the communication information is used for The server notifies the second user of the information related to the request for adding the first friend, which may be a mobile phone number, an email address, etc., and the specific communication information may not be limited.
  • the target application may be installed in the first user terminal, and when the first user terminal runs the target application, the friend management interface may be displayed according to the user's operation; During the operation, in response to the operation, the input communication information is received, and a friend addition request carrying the communication information is sent to the server.
  • the first user when the first user inputs an operation on the friend management interface, he may initiate a friend addition request by inputting the communication information of the second user.
  • the first user terminal may send a request for adding a friend corresponding to the mobile phone number to the server according to the mobile phone number input by the user.
  • the first user terminal can access the online web page of the target application, and the first user terminal can access the online page managed by the friend of the target application according to the user's operation;
  • the operation in the online page sends a friend addition request to the server.
  • the specific manner in which the first user terminal initiates the request for adding the first friend may not be limited.
  • Step S120 If there is no second user account corresponding to the communication information, based on the communication information, send invitation information to the second user terminal, where the invitation information is used to instruct the second user terminal to The download link carried in registers the second user account of the target application.
  • the server may, in response to the first friend addition request, search for the second user account corresponding to the communication information from the stored user accounts of the target application; if If the second user account corresponding to the communication information is not found, it means that the user corresponding to the communication information has not previously registered the second user account of the target application. In this case, a friend addition request cannot be initiated to the second user account. Therefore, the server The invitation information carrying the download link of the target application may be generated, and based on the communication information carried in the first friend adding request, the invitation information is sent to the second user terminal corresponding to the communication information.
  • the second user corresponding to the second user terminal can directly register the second user account based on the download link in the invitation information.
  • the second user can download and install the target application through the second user terminal. After the target application is installed, the target application can be run through the second user terminal, and a user account of the target application can be registered, so as to complete the subsequent friends added.
  • the server may send the first friend addition request to the second user terminal. Specifically, the server may send the first friend addition request to the target application installed on the second user terminal, so that the second user can process the first friend addition request in the target application installed on the second user terminal.
  • the type of invitation information corresponds to the type of communication information.
  • the server may send an invitation text message to the second user terminal, and the invitation text message carries a download link of the target application, and is used to instruct the user to register the target application based on the download link in the invitation text message.
  • the second user account when the communication information is an email address, the server may send an invitation email to the email client of the second user terminal, and the invitation email carries a download link of the target application.
  • the specific type of the invitation information may not be limited.
  • the invitation information may also include prompt content, so as to prompt the second user account for registering the target application based on the download link.
  • the prompt content may be "A is inviting you to become a friend in application 1, please download and install application 1 through this download link. , after installing App 1, you can register a user account to pass A's friend request and become friends with A in App 1."
  • the content of the reminder is just an example, and does not represent a limitation to the specific content of the reminder.
  • Step S130 When the second user account exists, send the first friend addition request to the second user terminal.
  • the server may detect the second user account of the target application registered by the second user terminal, and send the first friend addition request to the second user terminal, so as to complete the friend addition required by the user. Specifically, the server may send the first friend addition request to the target application installed on the second user terminal, so that the second user corresponding to the second user terminal can process the first friend request in the target application installed on the second user terminal.
  • Friend add request the server may send the first friend addition request to the target application installed on the second user terminal, so that the second user corresponding to the second user terminal can process the first friend request in the target application installed on the second user terminal.
  • the server may receive the registration request, and In response to the registration request, a second user account is generated. After the second user account is generated, a first friend adding request may be sent to the second user terminal.
  • the server used to manage user accounts is another server, that is, the server that executes the method for adding friends provided in the embodiments of the present application is not the same server as the server used to manage user accounts, then the second user When the user account of the target application is registered, the server cannot know that the second user has registered the user account of the target application. Therefore, the server may query from the server for managing user accounts in real time whether there is a second user account for the target application registered by the second user terminal, or query the server for managing user accounts whether there is a second user account for the target application every interval of target time. The second user account of the target application registered by the second user terminal, so as to be able to know in time that the second user terminal has registered the second user account of the target application, so as to send the first friend adding request to the second user terminal in time.
  • Step S140 Responding to receiving the target indication information returned by the second user terminal, establishing a friend relationship between the first user account corresponding to the first user terminal and the second user account in the target application , the target indication information is used to instruct the second user terminal to agree to the first friend addition request.
  • the second user terminal may display the first friend addition request for the second user corresponding to the second terminal to process the first friend addition request;
  • the second user terminal detects that the second user has passed the operation of the first friend request, it can send target indication information indicating that the first friend request has passed to the server.
  • the server After receiving the target indication information, the server can respond to the target.
  • the instruction information determines that the second user has agreed to the friend application, thereby establishing a friend relationship between the first user account corresponding to the first user terminal and the second user account in the target application, and storing the friend relationship.
  • first user terminal and the second user terminal in this embodiment and subsequent embodiments do not refer to only one user terminal, and the first user terminal may be all users corresponding to the user account corresponding to the first friend addition request.
  • the user terminal, the second user terminal may be all user terminals corresponding to the above communication information.
  • the server sends the invitation information carrying the download link of the target application to the second user terminal, which is convenient. It saves the second user terminal from downloading the target application, and avoids the cumbersome operations of searching and installing the target application; only when the second user terminal completes the registration of the user account of the target application, the friend addition request is initiated to the second user terminal, ensuring that the server There is no need to send an invalid friend addition request; and when the second user terminal passes the friend addition request, a friend relationship between the first user account and the second user's user account in the target application is established, thereby realizing the first A user adds a friend to a second user who has not registered a user account, and the first user does not need to perform repeated operations, which effectively reduces user operations and improves user experience.
  • FIG. 4 shows a schematic flowchart of a method for adding a friend provided by another embodiment of the present application.
  • the method for adding a friend is applied to the above-mentioned server.
  • the process shown in FIG. 4 will be described in detail below.
  • the method for adding a friend may specifically include the following steps:
  • Step S210 Receive a first friend addition request sent by a first user terminal, where the first friend addition request carries communication information.
  • Step S220 If there is no second user account corresponding to the communication information, based on the communication information, send invitation information to the second user terminal, where the invitation information is used to instruct the second user terminal to The download link carried in registers the second user account of the target application.
  • step S210 and step S220 in the embodiment of the present application, reference may be made to the contents of other embodiments for step S210 and step S220, and details are not repeated here.
  • Step S230 Store the first friend addition request in a queue to be invited.
  • the server may also store the first friend addition request in the queue to be invited if it determines that there is no second user account corresponding to the communication information. , so that the server can record the unexecuted friend addition request, and execute the first friend addition request when the second user corresponding to the second user terminal completes registration of the user account of the target application. Understandably, when processing each user's friend addition request, the server may temporarily store the friend addition request in the queue to be invited when the added user has not registered a user account, so that the added user can register When the user account is registered, execute the friend addition request to complete the invitation required by the user.
  • the friend addition requests stored in the queue to be invited may not be prioritized, and for new friend addition requests that need to be stored in the queue to be invited, the server may store them in an idle position in the queue.
  • the server can also record the moment when the server in the queue to be invited receives each friend addition request, so as to determine the time length from the current moment when each friend addition request is received, so that the friend addition request in the invitation queue can be treated according to the time length Do the corresponding processing.
  • the sequence of the server performing "sending invitation information to the second user terminal based on the communication information" and "storing the first friend addition request in the queue to be invited” may not be performed. It is defined that when it is determined that there is no second user account, an invitation message may be sent to the second user terminal based on the communication information first, and then the first friend addition request is stored in the queue to be invited; The first friend addition request may be stored in the queue to be invited first, and then based on the communication information, send invitation information to the second user terminal; or, "based on the communication information, send the invitation information to the second user terminal” may be executed in parallel. The second user terminal sends invitation information" and "stores the first friend addition request in the queue to be invited".
  • Step S240 When the second user account exists, send the first friend addition request to the second user terminal, and delete the first friend addition request from the queue to be invited.
  • the server can detect the second user account.
  • the server may execute the first friend addition request in the queue to be invited, and send the first friend addition request to the second user terminal, so as to complete the friend addition required by the user.
  • the server since the first friend addition request initiated by the first user terminal has been executed, the server may also delete the first friend addition request from the queue to be invited after successfully sending the first friend addition request, so as to ensure that the first friend addition request
  • the friend addition requests stored in the queue to be invited are unexecuted friend addition requests.
  • Step S250 In response to receiving target indication information returned by the second user terminal, establish a friend relationship between the first user account and the second user account in the target application, the target indication information It is used to instruct the second user terminal to agree to the first friend addition request.
  • step S250 reference may be made to the contents of other embodiments, which will not be repeated here.
  • the friend addition request will not be executed temporarily, but the friend addition request will be stored in the to-be-invited In the queue; only when the second user terminal completes the registration of the second user account of the target application based on the download link carried in the invitation information, execute the first friend addition request in the queue to be invited, and send the friend request to the second user terminal
  • the adding request is to establish a friend relationship between the user account in the target application and the user account of the second user under the condition that the second user terminal agrees to the friend adding request, thereby realizing the first user's registration of the unregistered user account.
  • the friend of the second user is added, and the first user does not need to perform repeated operations, which effectively reduces user operations and improves user experience.
  • storing unsent friend addition requests in the queue to be invited can avoid missing unexecuted friend invitations.
  • FIG. 5 shows a schematic flowchart of a method for adding a friend provided by another embodiment of the present application.
  • the method for adding a friend is applied to the above-mentioned server.
  • the process shown in FIG. 5 will be described in detail below.
  • the method for adding a friend may specifically include the following steps:
  • Step S310 Receive a first friend addition request sent by a first user terminal, where the first friend addition request carries communication information.
  • Step S320 If there is no second user account corresponding to the communication information, based on the communication information, send invitation information to the second user terminal, where the invitation information is used to instruct the second user terminal to The download link carried in registers the second user account of the target application.
  • Step S330 Store the first friend addition request in a queue to be invited.
  • Step S340 If the second friend addition request carrying the communication information sent by the first user terminal is received, determine whether the first friend addition request exists in the queue to be invited.
  • the server After the server receives the above-mentioned first friend addition request, if it is determined that there is no second user account, add the first friend addition request to the queue to be invited, and send the invitation information to the second user terminal based on the communication information , if the second user terminal does not register the second user account of the target application according to the invitation information, the server will not perform the step of sending the first friend addition request to the second user terminal, that is, the first friend addition request will continue to exist in It's in the invite queue. In this case, there may be a situation where the first user terminal initiates the same friend addition request again. At this time, the re-initiated friend addition request can be used as the second friend addition request. If the server directly responds to the second friend addition request, then If the invitation information is sent to the second user terminal again, the user may maliciously add friends and the problem of information bombing may occur.
  • the server can determine whether the above-mentioned first friend addition request exists in the queue to be invited.
  • the above-mentioned first friend addition request means that the server has sent invitation information to the second user terminal before, but the second user terminal has not registered the user account according to the invitation information.
  • the server may send invitation information to the second user terminal based on the communication information if there is no second user account according to the processing logic of the first friend addition request, and send invitation information to the second user terminal if there is a second user account.
  • the user terminal sends the second friend addition request, and establishes a friend relationship between the first user account and the second user account when receiving the target indication information returned by the second user terminal. If there is a second user account, the server may directly send a second friend addition request to the second user terminal, so as to complete the friend invitation required by the user.
  • Step S350 If there is the first friend addition request, ignore the second friend addition request.
  • the server may ignore the second friend addition request received this time.
  • the server may obtain the interval between the current time and the target time as the first time, and the target time is the time when the invitation information is sent; if the first If the duration is less than the first threshold, the second friend addition request is ignored. Understandably, if the server sends the invitation information to the second user terminal according to the first friend addition request, but the second user fails to download and install the target application and register the user account according to the invitation information, it may be that the second user missed the request. the invitation message.
  • the server can obtain the interval time from sending the invitation information last time as the first time length, and compare the first time length with the second time length. If the first time length is greater than or equal to the first threshold value, it means that the invitation information has been sent for a long time, so the invitation information can be sent again; if the first time length is less than the first threshold value, it means that the invitation information has been sent before.
  • the interval of the second friend can be ignored in order to avoid text message bombing.
  • the specific value of the first threshold may not be limited, for example, it may be 5 hours, 12 hours, 24 hours, 1 week and so on.
  • the server can also detect the length of time that the first friend addition request exists in the queue to be invited, and if the time length of the first friend addition request to exist in the queue to be invited reaches the second length of time, it means that it is longer than the time since the last invitation message was sent. Therefore, the first friend addition request can be deleted from the invitation queue, so that the first user terminal can send the invitation information to the second user terminal by initiating a friend addition request again.
  • the specific value of the second duration may not be limited, for example, it may be 5 hours, 12 hours, 24 hours, 1 week and so on.
  • Step S360 When the second user account exists, send the first friend addition request to the second user terminal.
  • Step S370 In response to receiving the target indication information returned by the second user terminal, establish a friend relationship between the first user account corresponding to the first user terminal and the second user account in the target application , the target indication information is used to instruct the second user terminal to agree to the first friend addition request.
  • step S360 and step S370 in this embodiment of the present application, reference may be made to the contents of other embodiments for step S360 and step S370, and details are not repeated here.
  • the method for adding a friend provided by the embodiment of the present application enables a first user to add a friend of a second user who has not registered a user account, and the first user does not need to perform repeated operations, which effectively reduces user operations and improves user experience. Moreover, storing unsent friend addition requests in the queue to be invited can avoid missing unexecuted friend invitations. In addition, when a friend addition request is received again, if the previous friend addition request exists in the queue to be invited, the friend addition request received again is ignored, which can avoid bombardment of user information and ensure user experience.
  • FIG. 6 shows a schematic flowchart of a method for adding a friend provided by another embodiment of the present application.
  • the method for adding a friend is applied to the above-mentioned server.
  • the process shown in FIG. 6 will be described in detail below.
  • the method for adding a friend may specifically include the following steps:
  • Step S410 Receive a first friend addition request sent by a first user terminal, where the first friend addition request carries communication information.
  • step S410 reference may be made to the contents of other embodiments, which will not be repeated here.
  • Step S420 Obtain the target request that satisfies the target condition among the friend adding requests sent by the first user terminal in history, and the target condition is used to indicate that there is no target application registered by the other party when the server receives the friend adding request user account.
  • the server may first obtain all friend adding messages sent by the first user terminal history and carrying communication information of other users. request, and determine the target request that meets the target condition from all friend adding requests.
  • This target condition is used to represent that there is no user account of the target application registered by the other party when the server receives the friend adding request, that is, when the server receives the target request, there is no user account of the target application registered by the added friend. That is, the server will send invitation information to the user terminal of the other party. Therefore, the above-mentioned target request can be obtained, so that the above-mentioned target request can determine whether the first user corresponding to the first user terminal has a behavior of maliciously triggering sending invitation information to other users.
  • Step S430 Obtain the response information corresponding to each friend addition request in the target request, the response information is used to indicate whether the other party has downloaded and registered the user account of the target application.
  • the server may store the response information of each friend addition request in the friend addition request initiated by the user history, the response information refers to whether the user terminal that is sent the invitation information registers the target application according to the download link Results for user accounts. After determining the target request, the server may determine the response information corresponding to each friend adding request in the target request according to the stored response information.
  • Step S440 If the response information corresponding to the target request satisfies the preset response condition, and there is no user account of the target application registered by the second user, based on the communication information, send invitation information to the second user terminal
  • the invitation information is used to instruct the second user terminal to register the second user account of the target application based on the download link carried in the invitation information.
  • the server after the server obtains the response information corresponding to each friend adding request in the target request, it can determine whether it satisfies the preset response condition according to the response information corresponding to the target request; if it meets the preset response condition, which means that the first user corresponding to the first user terminal does not have any behavior of maliciously triggering the sending of invitation information to other users; Steps to add friends required by the user; if the preset response conditions are not met, it means that the first user maliciously triggers sending invitation information to other users.
  • the preset response condition may include: the quantity of the first response information in the response information corresponding to the above-mentioned target request is greater than the preset quantity, and the first response information indicates that the other party registers the target application based on the download link user account.
  • the number of the first response information is greater than the preset number, it means that when the first terminal initiates a request to add a friend before, the added user often registers a user account through the user terminal, so it can be determined that the first The user does not maliciously trigger the behavior of sending invitation information to other users; if the number of the first response information is not greater than (less than or equal to) the preset number, it means that when the first user terminal initiated a friend addition request before, the added user It is rare to register a user account through a user terminal, so it can be determined that the first user maliciously triggers sending invitation information to other users.
  • the specific value of the preset number may not be limited, it may be a preset fixed value, or may be determined according to the total number of the above-mentioned friend addition requests initiated by the first user terminal history, for example, the total number may be compared with the target ratio
  • the product, as a preset quantity, can be 50%, 60%, 80% and so on, which is not limited here.
  • the preset response condition may include: the proportion of the first response information in the response information corresponding to the target request is greater than a preset ratio, and the first response information is a user account representing that the other party has downloaded and registered the target application . It can be understood that if the proportion of the first response information is greater than the preset proportion, it means that when the first user terminal initiates a friend addition request before, there are many cases of the added user registering a user account through the user terminal, so it can be determined that this The first user does not maliciously trigger the behavior of sending invitation information to other users; if the proportion of the first response information is not greater than (less than or equal to) the preset proportion, it means that when the first user terminal initiated a friend addition request before, It is rare for the added user to register a user account through the user terminal, so it can be determined that the first user maliciously triggers sending invitation information to other users.
  • the specific value of the preset ratio may not be limited, for example, it may be 50%, 60%, 80%, etc
  • Step S450 When the second user account exists, send the first friend addition request to the second user terminal.
  • Step S460 In response to receiving the target indication information returned by the second user terminal, establish a friend relationship between the first user account and the second user account in the target application, the target indication information It is used to instruct the second user terminal to agree to the first friend addition request.
  • step S450 and step S460 in this embodiment of the present application, reference may be made to the contents of other embodiments for step S450 and step S460, and details are not repeated here.
  • the server determines the Whether the user corresponding to the first user terminal maliciously triggers the behavior of sending invitation information to other users, and only executes the sending of the invitation information and subsequent steps when it is determined that there is no malicious behavior of triggering the sending of invitation information to other users, effectively This prevents the user from maliciously triggering the behavior of sending invitation information to other users.
  • FIG. 7 shows a schematic flowchart of a method for adding a friend provided by yet another embodiment of the present application.
  • the method for adding a friend is applied to the above-mentioned server.
  • the process shown in FIG. 7 will be described in detail below.
  • the method for adding a friend may specifically include the following steps:
  • Step S510 Receive a first friend addition request sent by a first user terminal, where the first friend addition request carries communication information.
  • Step S520 If there is no second user account corresponding to the communication information, based on the communication information, send invitation information to the second user terminal, where the invitation information is used to instruct the second user terminal to The download link carried in registers the second user account of the target application.
  • step S510 and step S520 in this embodiment of the present application, reference may be made to the contents of other embodiments for step S510 and step S520, and details are not repeated here.
  • Step S530 Receive a friend query request sent by the first user terminal for searching the second user account corresponding to the communication information.
  • Step S540 In response to the friend query request, if there is no friend relationship between the first user account and the second user account, send the invitation information to the second user terminal again.
  • the server sends the above invitation information to the second user terminal
  • the first user corresponding to the first user terminal cannot know whether the second user corresponding to the second user terminal has completed the account registration according to the invitation information
  • the first user addition request is received and the processing of the first user addition request is completed, so the first user may search for friends of the second user account corresponding to the above communication information through the first user terminal.
  • the server may receive a friend query request sent by the first user terminal; after receiving the friend query request, the server responds to the friend query request to determine whether there is currently a friend relationship between the first user account and the second user account ; If there is no friendship relationship between the first user account and the second user account, the first query result is fed back to the first user terminal, and the invitation information can be sent to the second user terminal again, so as to complete the user's required Adding friends; if there is a friend relationship between the first user account and the second user account, feeding back the second query result to the first user terminal.
  • the first query result indicates that there is no friendship relationship between the first user account and the second user account
  • the second query result indicates that there is a friendship relationship between the first user account and the second user account.
  • the server receives the above-mentioned friend query request, if it determines that there is no friend relationship between the first user account and the second user account, it can obtain the interval time between the current time and the target time as the third time. The time when the information is invited; if the third duration is greater than the second threshold, the invitation information is sent to the second user terminal again.
  • the specific value of the second threshold may not be limited, for example, it may be 5 hours, 12 hours, 24 hours, 1 week and so on.
  • Step S550 When the second user account exists, send the first friend addition request to the second user terminal.
  • Step S560 In response to receiving the target indication information returned by the second user terminal, establish a friend relationship between the first user account and the second user account in the target application, the target indication information It is used to instruct the second user terminal to agree to the first friend addition request.
  • step S550 and step S560 in this embodiment of the present application, reference may be made to the contents of other embodiments for step S550 and step S560, and details are not repeated here.
  • the user corresponding to the first user terminal cannot know whether the first friend addition request has been sent to the second user terminal, it may occur that the first user searches for the added friend.
  • the friend addition request is stored in the queue to be invited, after the server sends the first friend addition request in the queue to be invited to the second user terminal, the first friend addition request may not be deleted temporarily.
  • the server may check whether there is a friend relationship between the first user account and the second user account; if there is no friend relationship between the first user account and the second user account , then it can be judged whether there is a first friend addition request in the queue to be invited; The user corresponding to the second user terminal initiates a friend addition request.
  • the above-mentioned establishment of a friend relationship may also be establishment of a relationship in which the first user account and the second user account are in the same user group.
  • the above friend query request initiated by the first user through the first user terminal may be to query the second user Whether the second user account is already in the group, the specific processing flow diagram may be as shown in FIG. 8 .
  • the first user can query whether the second user account of the second user is already in the group by logging into the target application; if the second user account of the second user is already in the group, the first user account of the first user The terminal enters the function page with the group information; if the second user account of the second user is not in the group, it can be judged whether there is a first friend addition request in the queue to be invited; if there is the first friend addition request, then Send the first friend addition request to the second user terminal; correspondingly, the second user terminal may receive the first friend addition request; if the second user terminal accepts the first friend addition request, the server may establish the second user The corresponding relationship between the account number and the group, so that after the first user terminal inquires whether the second user account of the second user is already in the group, it can enter the function page with the group information; A friend addition request, or after sending the first friend addition request to the second user terminal, the second user terminal does not accept the first friend addition request, then returns instruction information to the first user terminal, so that the
  • the method for adding a friend enables a first user to add a friend of a second user who has not registered a user account, and the first user does not need to perform repeated operations, which effectively reduces user operations and improves user experience. Moreover, storing unsent friend addition requests in the queue to be invited can avoid missing unexecuted friend invitations.
  • sending the invitation information to the second user terminal if a friend query request for the second user account is received from the first user terminal, if there is no friend between the first user account and the second user account relationship, send the invitation message to the second user terminal again, so as to better prompt the second user to process the invitation message, and complete the friend addition required by the user.
  • the above-mentioned communication information may be a mobile phone number; the type of invitation information may be a short message; the server may include an account management server, an invitation server, and a short message platform server.
  • user A can input the mobile phone number of the invitee at user terminal A to initiate an invitation; the account management server determines whether the corresponding mobile phone number is registered with a user account; if not registered, the invitation server records the mobile phone number in the queue to be invited ( The invitation logic will not be executed for now); the SMS platform server sends an invitation SMS to the mobile phone number of an unregistered user; user terminal B receives the invitation SMS, and user B can download and install the application on user terminal B through the link in the SMS; then, in In the application, the account is registered through the mobile phone number; the account management server finishes executing the account registration logic; the invitation server checks whether the mobile phone number is in the invitation queue, and if it is in the invitation queue, executes the actual invitation logic for the mobile phone number, and sends a message to the user after the execution is completed. B sends an invitation; user B who has registered an account receives and processes the invitation. If user B passes the invitation, a friendship relationship between the user account of user A and the user account of user B is established.
  • FIG. 10 shows a structural block diagram of an apparatus 400 for adding a friend provided by an embodiment of the present application.
  • the device 400 for adding a friend uses the above-mentioned server, and the device 400 for adding a friend includes: a request receiving module 410 , an information sending module 420 , a request sending module 430 and a friend adding module 440 .
  • the request receiving module 410 is configured to receive a first friend addition request sent by a first user terminal, and the first friend addition request carries communication information; the information sending module 420 is configured to receive a friend request corresponding to the communication information if no The second user account, based on the communication information, sends invitation information to the second user terminal, where the invitation information is used to instruct the second user terminal to register the second user terminal of the target application based on the download link carried in the invitation information.
  • the request sending module 430 is configured to send the first friend addition request to the second user terminal when the second user account exists;
  • the friend adding module 440 is configured to respond to receiving
  • the target indication information returned by the second user terminal establishes a friendship relationship between the first user account and the second user account in the target application, and the target indication information is used to indicate that the second user account The user terminal agrees to the first friend addition request.
  • the apparatus 400 for adding a friend may further include: a request storage module.
  • the request storage module is configured to store the first friend addition request in a pending invitation queue before sending the first friend addition request to the second user terminal when the second user account exists.
  • the request sending module 430 may be specifically configured to: when the second user account exists, send the first friend addition request to the second user terminal, and delete the first friend addition request from the queue to be invited. ask.
  • the apparatus 400 for adding a friend may further include: a request judging module and a request ignoring module.
  • the request judging module is used to judge whether there is the first friend adding request in the queue to be invited if the second friend adding request carrying the communication information sent by the first user terminal is received; the request ignoring module uses If there is the first friend addition request, then ignore the second friend addition request.
  • the request ignoring module may be specifically configured to: if there is the first friend addition request, obtain the interval time between the current time and the target time as the first time length, and the target time is the time when the invitation information is sent; If the first duration is less than the first threshold, the second friend addition request is ignored.
  • the apparatus 400 for adding a friend may further include: a module for requesting deletion.
  • the request deletion module may be configured to delete the first friend addition request from the pending invitation queue if the first friend addition request exists in the pending invitation queue for a second duration.
  • the request receiving module 410 may also be configured to receive the invitation information after sending the invitation information to the second user terminal based on the communication information if the second user account corresponding to the communication information does not exist.
  • the friend query request sent by the first user terminal for finding the second user account corresponding to the communication information; the information sending module 420 may also be configured to respond to the friend query request, if there is no such first user account and If there is a friend relationship between the second user accounts, the invitation information is sent to the second user terminal again.
  • the information sending module 420 may also be specifically configured to: if there is no friendship relationship between the first user account and the second user account, obtain the interval between the current moment and the target moment as For a third duration, the target time is the time when the invitation information is sent; if the third duration is greater than a second threshold, the invitation information is sent to the second user terminal again.
  • the device 400 for adding a friend may further include: a request query module and an information query module, the request query module is used to obtain a target request that satisfies the target condition among the friend addition requests sent by the first user terminal in history, The other user is any user except the first user, and the target condition is used to indicate that there is no user account of the target application registered by the other party when the server receives the friend addition request; the information query module uses To obtain response information corresponding to each friend adding request in the target request, the response information is used to indicate whether the other party registers the user account of the target application based on the download link. If the response information corresponding to the target request satisfies the preset response condition, the information sending module 420 executes: if there is no second user account corresponding to the communication information, based on the communication information, send invitation information to the second user terminal .
  • the preset response condition includes: the number of first response information in the response information corresponding to the target request is greater than the preset number, and the first response information indicates that the other party based on the download link Register the user account of the target application.
  • the coupling between the modules may be electrical, mechanical or other forms of coupling.
  • each functional module in each embodiment of the present application may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.
  • the friend addition request by receiving the first friend addition request sent by the first user terminal, the friend addition request carries communication information, if there is no second user account corresponding to the communication information, based on the communication information , sending invitation information to the second user terminal, where the invitation information is used to instruct the second user terminal to register the second user account of the target application with the download link carried in the invitation information, and when there is a second user account, send the invitation information to the second user terminal
  • the first friend addition request in response to the target indication information returned by the second user terminal indicating that the first friend addition request has been approved, establish a connection between the first user account corresponding to the first user terminal and the second user account in the target application friendship.
  • FIG. 11 shows a structural block diagram of a server provided by an embodiment of the present application.
  • the server 100 may be a physical server or a cloud server capable of running application programs.
  • the server 100 in this application may include one or more of the following components: a processor 110, a memory 120, and one or more application programs, wherein one or more application programs may be stored in the memory 120 and configured to be run by a or a plurality of processors 110, and one or more programs are configured to execute the methods described in the foregoing method embodiments.
  • Processor 110 may include one or more processing cores.
  • the processor 110 uses various interfaces and lines to connect various parts in the entire server 100, and executes the server by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. 100's of various functions and processing data.
  • the processor 110 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware.
  • the processor 110 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like.
  • the CPU mainly handles the operating system, user interface and application programs, etc.; the GPU is used to render and draw the displayed content; the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 110, but may be realized by a communication chip alone.
  • the memory 120 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory).
  • the memory 120 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
  • the memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the following method embodiments, and the like.
  • the storage data area can also store data created by the server 100 during use (such as phonebook, audio and video data, chat record data) and the like.
  • FIG. 12 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • Program codes are stored in the computer-readable medium 800, and the program codes can be invoked by a processor to execute the methods described in the foregoing method embodiments.
  • the computer readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium (non-transitory computer-readable storage medium).
  • the computer-readable storage medium 800 has a storage space for program code 810 for executing any method steps in the above-mentioned methods. These program codes can be read from or written into one or more computer program products.
  • Program code 810 may, for example, be compressed in a suitable form.
  • An embodiment of the present application also provides a computer program product, including computer programs/instructions, characterized in that, when the computer program/instructions are executed by a processor, the method for adding a friend provided in the foregoing embodiments is implemented.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Disclosed in the present application are a method and apparatus for adding a friend, and a server and a storage medium. The method for adding a friend comprises: receiving a first friend addition request, which is sent by a first user terminal, wherein the first friend addition request carries communication information; if there is no second user account corresponding to the communication information, sending invitation information to a second user terminal on the basis of the communication information, wherein the invitation information is used for instructing the second user terminal to register a second user account of a target application on the basis of a download link which is carried in the invitation information; when the second user account is present, sending the first friend addition request to the second user terminal; and in response to the fact that target indication information, which is returned by the second user terminal, is received, establishing, in the target application, a friend relationship between a first user account, which corresponds to the first user terminal, and the second user account, wherein the target indication information is used for indicating that the second user terminal agrees to the first friend addition request. By means of the method, the adding of an unregistered friend can be realized.

Description

添加好友的方法、装置、服务器及存储介质Method, device, server and storage medium for adding friends
相关申请的交叉引用Cross References to Related Applications
本申请要求于2021年11月29日提交的申请号为202111435620.4的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。This application claims priority to Chinese application No. 202111435620.4 filed on November 29, 2021, which is hereby incorporated by reference in its entirety for all purposes.
技术领域technical field
本申请涉及互联网技术领域,更具体地,涉及一种添加好友的方法、装置、服务器及存储介质。The present application relates to the technical field of the Internet, and more specifically, to a method, device, server and storage medium for adding friends.
背景技术Background technique
随着科技水平和生活水平的快速进步,智能手机、平板电脑、笔记本电脑等电子设备的使用越来越广泛,用户可以通过电子设备中安装的即时通讯应用等应用程序完成与其他用户的即时通讯。并且,用户可以在应用程序中添加其他用户为好友。相关技术中,用户通常是对已注册帐号的好友进行添加,然而在添加未注册帐号的用户为好友时,操作较为繁琐。With the rapid advancement of technology and living standards, electronic devices such as smartphones, tablets, and laptops are more and more widely used, and users can complete instant messaging with other users through applications such as instant messaging applications installed in electronic devices . Also, users can add other users as friends in the application. In related technologies, a user usually adds a friend with a registered account, but when adding a user with an unregistered account as a friend, the operation is relatively cumbersome.
发明内容Contents of the invention
鉴于上述问题,本申请提出了一种添加好友的方法、装置、服务器及存储介质。In view of the above problems, the present application proposes a method, device, server and storage medium for adding friends.
第一方面,本申请实施例提供了一种添加好友的方法,所述方法包括:接收第一用户终端发送的第一好友添加请求,所述第一好友添加请求携带有通信信息;若不存在所述通信信息对应的第二用户帐号,基于所述通信信息,向第二用户终端发送邀请信息,所述邀请信息用于指示所述第二用户终端基于所述邀请信息中携带的下载链接注册目标应用的所述第二用户帐号;当存在所述第二用户帐号时,向所述第二用户终端发送所述第一好友添加请求;响应于接收到所述第二用户终端返回的目标指示信息,在所述目标应用中建立所述第一用户终端对应的第一用户帐号与所述第二用户帐号之间的好友关系,所述目标指示信息用于指示所述第二用户终端同意所述第一好友添加请求。In the first aspect, an embodiment of the present application provides a method for adding a friend, the method comprising: receiving a first friend addition request sent by a first user terminal, the first friend addition request carrying communication information; if there is no The second user account corresponding to the communication information sends invitation information to the second user terminal based on the communication information, where the invitation information is used to instruct the second user terminal to register based on the download link carried in the invitation information The second user account of the target application; when the second user account exists, sending the first friend addition request to the second user terminal; in response to receiving the target indication returned by the second user terminal information, establishing a friendship relationship between the first user account corresponding to the first user terminal and the second user account in the target application, and the target indication information is used to instruct the second user terminal to agree to the Describe the request to add the first friend.
第二方面,本申请实施例提供了一种添加好友的装置,所述装置包括:请求接收模块、信息发送模块、请求发送模块以及好友添加模块,其中,所述请求接收模块用于接收第一用户终端发送的第一好友添加请求,所述第一好友添加请求携带有通信信息;所述信息发送模块用于若不存在所述通信信息对应的第二用户帐号,基于所述通信信息,向第二用户终端发送邀请信息,所述邀请信息用于指示所述第二用户终端基于所述邀请信息中携带的下载链接注册目标应用的所述第二用户帐号;所述请求发送模块用于当存在所述第二用户帐号时,向所述第二用户终端发送所述第一好友添加请求;所述好友添加模块用于响应于接收到所述第二用户终端返回的目标指示信息,在所述目标应用中建立所述第一用户终端对应的第一用户帐号与所述第二用户帐号之间的好友关系,所述目标指示信息用于指示所述第二用户终端同意所述第一好友添加请求。In the second aspect, the embodiment of the present application provides a device for adding friends, the device includes: a request receiving module, an information sending module, a request sending module and a friend adding module, wherein the request receiving module is used to receive the first The first friend addition request sent by the user terminal, the first friend addition request carries communication information; the information sending module is configured to, if there is no second user account corresponding to the communication information, based on the communication information, send The second user terminal sends invitation information, where the invitation information is used to instruct the second user terminal to register the second user account of the target application based on the download link carried in the invitation information; the request sending module is used when When the second user account exists, sending the first friend addition request to the second user terminal; the friend adding module is configured to, in response to receiving the target indication information returned by the second user terminal, Establish a friend relationship between the first user account corresponding to the first user terminal and the second user account in the target application, and the target indication information is used to instruct the second user terminal to agree with the first friend Add request.
第三方面,本申请实施例提供了一种服务器,包括:一个或多个处理器;存储器;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述第一方面提供的添加好友的方法。In a third aspect, the embodiment of the present application provides a server, including: one or more processors; memory; one or more application programs, wherein the one or more application programs are stored in the memory and It is configured to be executed by the one or more processors, and the one or more programs are configured to execute the method for adding a friend provided in the first aspect above.
第四方面,本申请实施例提供了一种计算机可读取存储介质,所述计算机可读取 存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述第一方面提供的添加好友的方法。In the fourth aspect, the embodiment of the present application provides a computer-readable storage medium, where program code is stored in the computer-readable storage medium, and the program code can be invoked by a processor to execute the addition provided in the above-mentioned first aspect. Buddy method.
第五方面,本申请实施例提供了一种计算机程序产品,包括计算机程序/指令,其特征在于,该计算机程序/指令被处理器执行时实现上述第一方面提供的添加好友的方法。In the fifth aspect, the embodiment of the present application provides a computer program product, including computer programs/instructions, characterized in that, when the computer program/instructions are executed by a processor, the method for adding friends provided in the first aspect above is implemented.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1示出了本申请实施例提供的一种应用环境的示意图。FIG. 1 shows a schematic diagram of an application environment provided by an embodiment of the present application.
图2示出了本申请实施例提供的另一种应用环境的示意图。FIG. 2 shows a schematic diagram of another application environment provided by the embodiment of the present application.
图3示出了根据本申请一个实施例的添加好友的方法的流程图。Fig. 3 shows a flowchart of a method for adding a friend according to an embodiment of the present application.
图4示出了根据本申请另一个实施例的添加好友的方法的流程图。Fig. 4 shows a flowchart of a method for adding friends according to another embodiment of the present application.
图5示出了根据本申请又一个实施例的添加好友的方法的流程图。Fig. 5 shows a flowchart of a method for adding friends according to another embodiment of the present application.
图6示出了根据本申请再一个实施例的添加好友的方法的流程图。Fig. 6 shows a flowchart of a method for adding friends according to yet another embodiment of the present application.
图7示出了根据本申请又另一个实施例的添加好友的方法的流程图。Fig. 7 shows a flowchart of a method for adding friends according to yet another embodiment of the present application.
图8示出了根据本申请又另一个实施例的添加好友的方法的流程图。Fig. 8 shows a flowchart of a method for adding friends according to yet another embodiment of the present application.
图9示出了本申请提供的添加好友的方法的原理示意图。FIG. 9 shows a schematic diagram of the principle of the method for adding friends provided by the present application.
图10示出了根据本申请一个实施例的添加好友的装置的一种框图。Fig. 10 shows a block diagram of an apparatus for adding friends according to an embodiment of the present application.
图11是本申请实施例的用于执行根据本申请实施例的添加好友的方法的服务器的框图。Fig. 11 is a block diagram of a server for performing the method for adding a friend according to the embodiment of the application according to the embodiment of the application.
图12是本申请实施例的用于保存或者携带实现根据本申请实施例的添加好友的方法的程序代码的存储单元。Fig. 12 is a storage unit for storing or carrying program codes for implementing the method for adding friends according to the embodiment of the application according to the embodiment of the application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
随着互联网技术的发展,越来越多的用户通过网络进行社交,而社交软件是支持上述社交行为的载体,用户可以通过在社交软件上注册的用户帐号进行网络社交。其中,用户可以通过在社交软件上注册的帐号,添加其他用户为好友,从而可以满足用户所需的好友社交。With the development of Internet technology, more and more users socialize through the Internet, and social software is the carrier that supports the above social behaviors. Users can socialize online through user accounts registered on social software. Among them, the user can add other users as friends through the account registered on the social software, so as to meet the friend socialization required by the user.
相关技术中,社交软件中添加好友的技术方案有很多,但大多都是基于被邀请方已经注册并使用了相同的社交软件的帐号的前提下,发起添加好友的邀请;但是,如果被邀请方没有注册该社交软件的帐号,那么邀请路径就会变长,邀请方的用户需要进行一些重复操作,操作十分繁琐,影响了用户体验。例如,当一个用户想要邀请一个好友,需通过对应用户的手机号去搜索,若对方已经通过手机号注册了帐号,在邀请时,输入手机号,可以查询到用户,然后发起邀请;假如对方未使用手机号去注册帐号,那么在邀请时,就提示“该用户不存在”,此时用户需要通知想要邀请的好友下载和安装应用,并注册帐号,然后再重复执行邀请流程,以完成好友的添加,这样的过程会十分的繁琐。In related technologies, there are many technical solutions for adding friends in social software, but most of them initiate an invitation to add friends based on the premise that the invited party has registered and used the same social software account; however, if the invited party If there is no account registered for the social software, the invitation path will become longer, and the inviting user needs to perform some repeated operations, which is very cumbersome and affects the user experience. For example, when a user wants to invite a friend, he needs to search through the corresponding user's mobile phone number. If the other party has registered an account through the mobile phone number, when inviting, enter the mobile phone number to query the user and initiate an invitation; if the other party If the mobile phone number is not used to register an account, then when inviting, it will prompt "the user does not exist". At this time, the user needs to notify the friends who want to invite to download and install the application, and register an account, and then repeat the invitation process to complete. The process of adding friends will be very cumbersome.
针对上述问题,发明人提出了本申请实施例提供的添加好友的方法、装置、服务器以及存储介质,可以实现用户添加未注册有帐号的好友时,双方无需进行过多的操作,即可完成好友添加,进而提升用户体验。。其中,具体的添加好友的方法在后续的实施例中进行详细的说明。In view of the above problems, the inventor proposed the method, device, server and storage medium for adding friends provided by the embodiment of the present application, which can realize that when a user adds a friend who has not registered an account, both parties can complete the friend adding without too many operations. added to improve the user experience. . Wherein, the specific method of adding a friend will be described in detail in the subsequent embodiments.
下面先对本申请实施例所涉及的应用环境进行介绍。The application environment involved in the embodiment of the present application is firstly introduced below.
请参阅图1,本申请实施例提供的添加好友的方法所涉及的应用环境包括好友添加系统10。该好友添加系统10包括服务器100以及多个用户终端(图1中仅示出第一用户终端201以及第二用户终端202)。服务器可以与用户终端之间进行通信,以实现本申请实施例提供的添加好友的方法。例如,第一用户终端201利用安装的目标应用,向服务器100发送携带有通信信息的好友添加请求;服务器100接收到第一用户终端201发送的好友添加请求后,若确定出不存该通信信息对应的第二用户帐号,则基于该通信信息,向第二用户终端202发送邀请信息,该邀请信息携带有下载链接,以供第二用户基于邀请信息中携带的下载链接,注册该目标应用的用户帐号;待第二用户终端202对应的用户于第二用户终端202上注册第二用户帐号后,则服务器100可以查询到第二用户帐号,然后向第二用户终端发送好友添加请求,待接收到第二用户终端202返回的用于指示同意该好友添加请求的指示信息时,在目标应用中建立第一用户帐号与第二用户帐号之间的好友关系。Please refer to FIG. 1 , the application environment involved in the method for adding friends provided by the embodiment of the present application includes a friend adding system 10 . The friend adding system 10 includes a server 100 and multiple user terminals (only the first user terminal 201 and the second user terminal 202 are shown in FIG. 1 ). The server can communicate with the user terminal to implement the method for adding a friend provided in the embodiment of the present application. For example, the first user terminal 201 uses the installed target application to send a friend addition request carrying communication information to the server 100; after the server 100 receives the friend addition request sent by the first user terminal 201, if The corresponding second user account, based on the communication information, sends invitation information to the second user terminal 202, the invitation information carries a download link, so that the second user can register the target application based on the download link carried in the invitation information. User account: After the user corresponding to the second user terminal 202 registers the second user account on the second user terminal 202, the server 100 can query the second user account, and then send a friend addition request to the second user terminal, to be received When the second user terminal 202 returns the indication information for indicating that the request for adding a friend is approved, a friend relationship between the first user account and the second user account is established in the target application.
其中,第一用户终端201以及第二用户终端202可以是智能手机、可穿戴设备、平板电脑、笔记本电脑、车机设备等,在此不做限定;服务器100可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是云服务器等。例如,如图2所示,服务器100可以包括第一服务器101、第二服务器102以及第三服务器103,第一服务器101、第二服务器102以及第三服务器103之间可以相互通信,第一服务器101可以用于帐号管理,在接收到好友添加请求时,查询是否存在被添加的用户注册的帐号;第二服务器102可以用于执行向被添加的用户的用户终端发送好友添加请求;第三服务器103可以用于向被邀请的用户的用终端发送携带有目标应用的下载链接的邀请信息,例如,第三服务器103可以作为短信平台服务器,发送携带有下载链接的短信至被邀请的用户的用户终端。Wherein, the first user terminal 201 and the second user terminal 202 may be smartphones, wearable devices, tablet computers, notebook computers, vehicle-machine equipment, etc., which are not limited here; the server 100 may be an independent physical server, or It is a server cluster or distributed system composed of multiple physical servers, and it can also be a cloud server. For example, as shown in Figure 2, the server 100 may include a first server 101, a second server 102, and a third server 103, and the first server 101, the second server 102, and the third server 103 may communicate with each other, and the first server 101 can be used for account management, when receiving a friend adding request, query whether there is an account registered by the added user; the second server 102 can be used to send a friend adding request to the user terminal of the added user; the third server 103 can be used to send invitation information carrying the download link of the target application to the user terminal of the invited user. For example, the third server 103 can serve as a short message platform server and send a short message carrying the download link to the invited user. terminal.
下面结合附图对本申请实施例提供的好友添加的方法进行详细介绍。The method for adding a friend provided by the embodiment of the present application will be described in detail below with reference to the accompanying drawings.
请参阅图3,图3示出了本申请一个实施例提供的添加好友的方法的流程示意图。在具体的实施例中,所述添加好友的方法应用于上述服务器。下面将以服务器为例,说明本实施例的具体流程。下面将针对图3所示的流程进行详细的阐述,所述添加好友的方法具体可以包括以下步骤:Please refer to FIG. 3 . FIG. 3 shows a schematic flowchart of a method for adding a friend provided by an embodiment of the present application. In a specific embodiment, the method for adding friends is applied to the above-mentioned server. The following will take the server as an example to illustrate the specific process of this embodiment. The process shown in Figure 3 will be described in detail below, and the method for adding a friend may specifically include the following steps:
步骤S110:接收第一用户终端发送的第一好友添加请求,所述第一好友添加请求携带有通信信息。Step S110: Receive a first friend addition request sent by a first user terminal, where the first friend addition request carries communication information.
在本申请实施例中,第一用户可以通过第一用户终端发起用于在目标应用中添加第二用户的用户帐号为好友的第一好友添加请求。对应的,服务器可以接收到第一用户终端发送的该第一好友添加请求。其中,目标应用可以是任一包括社交功能的应用程序,其可以提供好友功能,不同用户可以于各自的终端中使用该目标应用,并进行好友的添加以及用户所需的社交;通信信息用于服务器告知与第一好友添加请求相关的信息至第二用户,其可以为手机号码、电子邮箱地址等,具体的通信信息可以不做限定。In this embodiment of the present application, the first user may initiate a first friend addition request for adding the user account of the second user as a friend in the target application through the first user terminal. Correspondingly, the server may receive the first friend addition request sent by the first user terminal. Wherein, the target application can be any application program including social functions, which can provide a friend function, and different users can use the target application in their respective terminals, and perform addition of friends and social interaction required by the user; the communication information is used for The server notifies the second user of the information related to the request for adding the first friend, which may be a mobile phone number, an email address, etc., and the specific communication information may not be limited.
在一些实施方式中,第一用户终端中可以安装有目标应用,第一用户终端运行目标应用时,可以根据用户的操作显示好友管理界面;在检测到用户于好友管理界面输入的用于添加好友的操作时,响应于该操作,接收输入的通信信息,向服务器发送携带有该通信信息的好友添加请求。其中,第一用户于好友管理界面输入操作时,可以通过输入第二用户的通信信息,以发起好友添加请求。例如,第一用户终端可以根据用户输入的手机号码,向服务器发送用于添加该手机号码对应的好友添加请求。In some embodiments, the target application may be installed in the first user terminal, and when the first user terminal runs the target application, the friend management interface may be displayed according to the user's operation; During the operation, in response to the operation, the input communication information is received, and a friend addition request carrying the communication information is sent to the server. Wherein, when the first user inputs an operation on the friend management interface, he may initiate a friend addition request by inputting the communication information of the second user. For example, the first user terminal may send a request for adding a friend corresponding to the mobile phone number to the server according to the mobile phone number input by the user.
在另一些实施方式中,第一用户终端可以访问目标应用的在线网页页面,第一用户终端可以根据用户的操作,访问该目标应用的好友管理的在线页面;然后,基于用户于该好友管理的在线页面中的操作,向服务器发送好友添加请求。当然,第一用户终端发起第一好友添加请求的具体方式可以不做限定。In other embodiments, the first user terminal can access the online web page of the target application, and the first user terminal can access the online page managed by the friend of the target application according to the user's operation; The operation in the online page sends a friend addition request to the server. Certainly, the specific manner in which the first user terminal initiates the request for adding the first friend may not be limited.
步骤S120:若不存在所述通信信息对应的第二用户帐号,基于所述通信信息,向第二用户终端发送邀请信息,所述邀请信息用于指示所述第二用户终端基于所述邀请信息中携带的下载链接注册目标应用的所述第二用户帐号。Step S120: If there is no second user account corresponding to the communication information, based on the communication information, send invitation information to the second user terminal, where the invitation information is used to instruct the second user terminal to The download link carried in registers the second user account of the target application.
在本申请实施例中,服务器在接收到上述第一好友添加请求后,可以响应于该第一好友添加请求,从存储的目标应用的用户帐号中查找该通信信息对应的第二用户帐号;若未查找到该通信信息对应的第二用户帐号,则表示该通信信息对应的用户此前并未注册目标应用的第二用户帐号,该情况下无法向第二用户帐号发起好友添加请求,因此,服务器可以生成携带有目标应用的下载链接的邀请信息,并基于第一好友添加请求中携带的通信信息,向该通信信息对应的第二用户终端发送该邀请信息。由此,第二用户终端接收到该邀请信息后,则第二用户终端对应的第二用户可以直接基于该邀请信息中的下载链接,进行第二用户帐号的注册。可选地,第二用户可以通过第二用户终端对目标应用进行下载和安装,在安装完成目标应用后,可以通过第二用户终端运行该目标应用,并注册目标应用的用户帐号,以便完成后续的好友添加。In this embodiment of the application, after receiving the above-mentioned first friend addition request, the server may, in response to the first friend addition request, search for the second user account corresponding to the communication information from the stored user accounts of the target application; if If the second user account corresponding to the communication information is not found, it means that the user corresponding to the communication information has not previously registered the second user account of the target application. In this case, a friend addition request cannot be initiated to the second user account. Therefore, the server The invitation information carrying the download link of the target application may be generated, and based on the communication information carried in the first friend adding request, the invitation information is sent to the second user terminal corresponding to the communication information. Thus, after the second user terminal receives the invitation information, the second user corresponding to the second user terminal can directly register the second user account based on the download link in the invitation information. Optionally, the second user can download and install the target application through the second user terminal. After the target application is installed, the target application can be run through the second user terminal, and a user account of the target application can be registered, so as to complete the subsequent friends added.
在本申请实施例中,服务器在接收到上述第一好友添加请求后,若查找到该通信信息对应的用户帐号,则可以向第二用户终端发送该第一好友添加请求。具体地,服务器可以将第一好友添加请求发送至第二用户终端上安装的目标应用,以供第二用户于第二用户终端上安装的目标应用中,处理该第一好友添加请求。In this embodiment of the present application, after receiving the above-mentioned first friend addition request, if the server finds the user account corresponding to the communication information, it may send the first friend addition request to the second user terminal. Specifically, the server may send the first friend addition request to the target application installed on the second user terminal, so that the second user can process the first friend addition request in the target application installed on the second user terminal.
在一些实施方式中,邀请信息的类型与通信信息的类型对应。例如,当通信信息为手机号码时,则服务器可以向第二用户终端发送邀请短信,并且邀请短信中携带有目标应用的下载链接,并用于指示用户基于邀请短信中的下载链接注册该目标应用的第二用户帐号;当通信信息为电子邮箱地址时,则服务器可以向第二用户终端的邮箱客户端发送邀请邮件,并且邀请邮件中携带有目标应用的下载链接。当然,邀请信息的具体类型可以不做限定。In some implementations, the type of invitation information corresponds to the type of communication information. For example, when the communication information is a mobile phone number, the server may send an invitation text message to the second user terminal, and the invitation text message carries a download link of the target application, and is used to instruct the user to register the target application based on the download link in the invitation text message. The second user account; when the communication information is an email address, the server may send an invitation email to the email client of the second user terminal, and the invitation email carries a download link of the target application. Certainly, the specific type of the invitation information may not be limited.
在一些实施方式中,邀请信息除包括目标应用的下载链接以外,还可以包括提示内容,以提示用于基于该下载链接注册该目标应用的第二用户帐号。例如,若第一用户终端对应的第一用户为A,目标应用为应用1,提示内容可以为“A正邀请您成为应用1中的好友,请您通过该下载链接对应用1进行下载和安装,安装应用1后可以注册用户帐号,以通过A的好友请求,与A成为应用1中的好友”。当然,该提示内容均为举例,并不代表对具体的提示内容的限定。In some implementations, besides the download link of the target application, the invitation information may also include prompt content, so as to prompt the second user account for registering the target application based on the download link. For example, if the first user corresponding to the first user terminal is A, and the target application is application 1, the prompt content may be "A is inviting you to become a friend in application 1, please download and install application 1 through this download link. , after installing App 1, you can register a user account to pass A's friend request and become friends with A in App 1." Of course, the content of the reminder is just an example, and does not represent a limitation to the specific content of the reminder.
步骤S130:当存在所述第二用户帐号时,向所述第二用户终端发送所述第一好友添加请求。Step S130: When the second user account exists, send the first friend addition request to the second user terminal.
在本申请实施例中,服务器向第二用户终端发送上述邀请信息后,若第二用户终端对应的第二用户基于第二用户终端接收到的邀请信息,通过第二用户终端完成了目标应用中第二用户帐号的注册,则服务器可以检测到第二用户终端注册的目标应用的第二用户帐号,并向第二用户终端发送该第一好友添加请求,以完成用户所需的好友添加。具体地,服务器可以将第一好友添加请求发送至第二用户终端上安装的目标应用,以供第二用户终端对应的第二用户于第二用户终端上安装的目标应用中,处理该第一好友添加请求。In this embodiment of the application, after the server sends the above invitation information to the second user terminal, if the second user corresponding to the second user terminal completes the target application through the second user terminal based on the invitation information received by the second user terminal, For the registration of the second user account, the server may detect the second user account of the target application registered by the second user terminal, and send the first friend addition request to the second user terminal, so as to complete the friend addition required by the user. Specifically, the server may send the first friend addition request to the target application installed on the second user terminal, so that the second user corresponding to the second user terminal can process the first friend request in the target application installed on the second user terminal. Friend add request.
在一些实施方式中,服务器向第二用户终端发送上述邀请信息后,若第二用户终端对应的第二用户基于邀请信息中的下载链接进行用户帐号的注册时,服务器可以接收到注册请求,并响应于注册请求,生成第二用户帐号。在生成第二用户帐号后,则可以向第二用户终端发送第一好友添加请求。In some implementations, after the server sends the above invitation information to the second user terminal, if the second user corresponding to the second user terminal registers a user account based on the download link in the invitation information, the server may receive the registration request, and In response to the registration request, a second user account is generated. After the second user account is generated, a first friend adding request may be sent to the second user terminal.
在一些实施方式中,若用于管理用户帐号的服务器是另一服务器,即执行本申请实施例提供的添加好友的方法的服务器与用于管理用户帐号的服务器不是同一服务器,则在第二用户注册了目标应用的用户帐号的情况下,服务器并不能获知该第二用户注册了目标应用的用户帐号。因此,服务器可以实时的从用于管理用户帐号的服务 器查询是否存在第二用户终端注册的目标应用的第二用户帐号,或者每间间隔目标时长,从用于管理用户帐号的服务器查询是否存在第二用户终端注册的目标应用的第二用户帐号,以便能够及时地获知第二用户终端注册了目标应用的第二用户帐号的情况,从而及时地向第二用户终端发送第一好友添加请求。In some implementations, if the server used to manage user accounts is another server, that is, the server that executes the method for adding friends provided in the embodiments of the present application is not the same server as the server used to manage user accounts, then the second user When the user account of the target application is registered, the server cannot know that the second user has registered the user account of the target application. Therefore, the server may query from the server for managing user accounts in real time whether there is a second user account for the target application registered by the second user terminal, or query the server for managing user accounts whether there is a second user account for the target application every interval of target time. The second user account of the target application registered by the second user terminal, so as to be able to know in time that the second user terminal has registered the second user account of the target application, so as to send the first friend adding request to the second user terminal in time.
步骤S140:响应于接收到所述第二用户终端返回的目标指示信息,在所述目标应用中建立所述第一用户终端对应的第一用户帐号与所述第二用户帐号之间的好友关系,所述目标指示信息用于指示所述第二用户终端同意所述第一好友添加请求。Step S140: Responding to receiving the target indication information returned by the second user terminal, establishing a friend relationship between the first user account corresponding to the first user terminal and the second user account in the target application , the target indication information is used to instruct the second user terminal to agree to the first friend addition request.
在本申请实施例中,第二用户终端接收到第一好友添加请求后,可以对第一好友添加请求进行展示,以供第二终端对应的第二用户处理该第一好友添加请求;若第二用户终端检测到第二用户通过该第一好友添加请求的操作,则可以向服务器发送指示第一好友请求已通过的目标指示信息,服务器接收到该目标指示信息后,则可以响应于该目标指示信息,确定出第二用户已同意好友申请,从而在目标应用中建立第一用户终端对应的第一用户帐号与第二用户帐号之间的好友关系,并将该好友关系进行存储。In this embodiment of the application, after receiving the first friend addition request, the second user terminal may display the first friend addition request for the second user corresponding to the second terminal to process the first friend addition request; When the second user terminal detects that the second user has passed the operation of the first friend request, it can send target indication information indicating that the first friend request has passed to the server. After receiving the target indication information, the server can respond to the target. The instruction information determines that the second user has agreed to the friend application, thereby establishing a friend relationship between the first user account corresponding to the first user terminal and the second user account in the target application, and storing the friend relationship.
需要说明的是,本实施例以及后续的实施例中的第一用户终端以及第二用户终端不只是指一个用户终端,第一用户终端可以是发送第一好友添加请求对应的用户帐号对应的所有用户终端,第二用户终端可以为上述通信信息对应的所有用户终端。It should be noted that the first user terminal and the second user terminal in this embodiment and subsequent embodiments do not refer to only one user terminal, and the first user terminal may be all users corresponding to the user account corresponding to the first friend addition request. The user terminal, the second user terminal may be all user terminals corresponding to the above communication information.
本申请实施例提供的添加好友的方法,在不存在好友添加请求中携带的通信信息对应的用户帐号的情况下,服务器通过向第二用户终端发送携带有目标应用的下载链接的邀请信息,方便了第二用户终端下载目标应用,避免了查找和安装目标应用的繁琐操作;在第二用户终端注册完成目标应用的用户帐号的情况下,才向第二用户终端发起该好友添加请求,保证服务器无须发送无效的好友添加请求;并在第二用户终端通过该好友添加请求的情况下,建立目标应用中第一用户帐号与第二用户的用户帐号之间的好友关系,由此,实现了第一用户对未注册用户帐号的第二用户进行好友添加,并且第一用户无需重复操作,有效减少了用户操作,提升了用户体验。In the method for adding a friend provided by the embodiment of the present application, if there is no user account corresponding to the communication information carried in the friend addition request, the server sends the invitation information carrying the download link of the target application to the second user terminal, which is convenient. It saves the second user terminal from downloading the target application, and avoids the cumbersome operations of searching and installing the target application; only when the second user terminal completes the registration of the user account of the target application, the friend addition request is initiated to the second user terminal, ensuring that the server There is no need to send an invalid friend addition request; and when the second user terminal passes the friend addition request, a friend relationship between the first user account and the second user's user account in the target application is established, thereby realizing the first A user adds a friend to a second user who has not registered a user account, and the first user does not need to perform repeated operations, which effectively reduces user operations and improves user experience.
请参阅图4,图4示出了本申请另一个实施例提供的添加好友的方法的流程示意图。该添加好友的方法应用于上述服务器,下面将针对图4所示的流程进行详细的阐述,所述添加好友的方法具体可以包括以下步骤:Please refer to FIG. 4 , which shows a schematic flowchart of a method for adding a friend provided by another embodiment of the present application. The method for adding a friend is applied to the above-mentioned server. The process shown in FIG. 4 will be described in detail below. The method for adding a friend may specifically include the following steps:
步骤S210:接收第一用户终端发送的第一好友添加请求,所述第一好友添加请求携带有通信信息。Step S210: Receive a first friend addition request sent by a first user terminal, where the first friend addition request carries communication information.
步骤S220:若不存在所述通信信息对应的第二用户帐号,基于所述通信信息,向第二用户终端发送邀请信息,所述邀请信息用于指示所述第二用户终端基于所述邀请信息中携带的下载链接注册目标应用的所述第二用户帐号。Step S220: If there is no second user account corresponding to the communication information, based on the communication information, send invitation information to the second user terminal, where the invitation information is used to instruct the second user terminal to The download link carried in registers the second user account of the target application.
在本申请实施例中,步骤S210以及步骤S220可以参阅其他实施例的内容,在此不再赘述。In the embodiment of the present application, reference may be made to the contents of other embodiments for step S210 and step S220, and details are not repeated here.
步骤S230:将所述第一好友添加请求存储于待邀请队列。Step S230: Store the first friend addition request in a queue to be invited.
在本申请实施例中,服务器在接收到上述第一好友添加请求后,在确定出不存在上述通信信息对应的第二用户帐号的情况下,还可以将第一好友添加请求存储于待邀请队列中,以便服务器能够记录未执行的好友添加请求,并在第二用户终端对应的第二用户完成注册目标应用的用户帐号的情况下,执行该第一好友添加请求。可以理解地,服务器在处理各个用户的好友添加请求时,可以在被添加的用户未注册有用户帐号的情况下,暂时将好友添加请求存储于待邀请队列中,从而能够在被添加的用户注册了用户帐号的情况下,执行好友添加请求,完成用户所需的邀请。In this embodiment of the application, after receiving the first friend addition request, the server may also store the first friend addition request in the queue to be invited if it determines that there is no second user account corresponding to the communication information. , so that the server can record the unexecuted friend addition request, and execute the first friend addition request when the second user corresponding to the second user terminal completes registration of the user account of the target application. Understandably, when processing each user's friend addition request, the server may temporarily store the friend addition request in the queue to be invited when the added user has not registered a user account, so that the added user can register When the user account is registered, execute the friend addition request to complete the invitation required by the user.
在一些实施方式中,待邀请队列中存储的好友添加请求可以不区分先后顺序,对于新的需存储至待邀请队列中的好友添加请求,服务器可以将其存储至队列中的空闲位置即可。可选地,服务器还可以记录待邀请队列中服务器接收到各个好友添加请求 时的时刻,以便确定接收到各个好友添加请求时距离当前时刻的时长,从而根据时长能够对待邀请队列中的好友添加请求进行对应的处理。In some implementations, the friend addition requests stored in the queue to be invited may not be prioritized, and for new friend addition requests that need to be stored in the queue to be invited, the server may store them in an idle position in the queue. Optionally, the server can also record the moment when the server in the queue to be invited receives each friend addition request, so as to determine the time length from the current moment when each friend addition request is received, so that the friend addition request in the invitation queue can be treated according to the time length Do the corresponding processing.
需要说明的是,本申请实施例中,服务器执行“基于所述通信信息,向第二用户终端发送邀请信息”与“将所述第一好友添加请求存储于待邀请队列”的顺序可以不做限定,在确定出不存在第二用户帐号的情况下,可以先基于所述通信信息,向所述第二用户终端发送邀请信息,再将所述第一好友添加请求存储于待邀请队列;也可以先将所述第一好友添加请求存储于待邀请队列,再基于所述通信信息,向所述第二用户终端发送邀请信息;或者,可以时并行执行“基于所述通信信息,向所述第二用户终端发送邀请信息”与“将所述第一好友添加请求存储于待邀请队列”。It should be noted that, in this embodiment of the present application, the sequence of the server performing "sending invitation information to the second user terminal based on the communication information" and "storing the first friend addition request in the queue to be invited" may not be performed. It is defined that when it is determined that there is no second user account, an invitation message may be sent to the second user terminal based on the communication information first, and then the first friend addition request is stored in the queue to be invited; The first friend addition request may be stored in the queue to be invited first, and then based on the communication information, send invitation information to the second user terminal; or, "based on the communication information, send the invitation information to the second user terminal" may be executed in parallel. The second user terminal sends invitation information" and "stores the first friend addition request in the queue to be invited".
步骤S240:当存在所述第二用户帐号时,向所述第二用户终端发送所述第一好友添加请求,并从所述待邀请队列中删除所述第一好友添加请求。Step S240: When the second user account exists, send the first friend addition request to the second user terminal, and delete the first friend addition request from the queue to be invited.
在本申请实施例中,服务器向第二用户终端发送上述邀请信息后,若第二用户终端基于下载链接,完成了目标应用中用户帐号的注册,则服务器可以检测到第二用户帐号。该情况下,服务器则可以执行待邀请队列中的该第一好友添加请求,向第二用户终端发送该第一好友添加请求,以完成用户所需的好友添加。另外,由于已经执行完成第一用户终端发起的该第一好友添加请求,因此服务器在成功发送该第一好友添加请求后,还可以将第一好友添加请求从待邀请队列中删除,以保证该待邀请队列中存储的好友添加请求为未执行的好友添加请求。In this embodiment of the application, after the server sends the above invitation information to the second user terminal, if the second user terminal completes the registration of the user account in the target application based on the download link, the server can detect the second user account. In this case, the server may execute the first friend addition request in the queue to be invited, and send the first friend addition request to the second user terminal, so as to complete the friend addition required by the user. In addition, since the first friend addition request initiated by the first user terminal has been executed, the server may also delete the first friend addition request from the queue to be invited after successfully sending the first friend addition request, so as to ensure that the first friend addition request The friend addition requests stored in the queue to be invited are unexecuted friend addition requests.
步骤S250:响应于接收到所述第二用户终端返回的目标指示信息,在所述目标应用中建立所述第一用户帐号与所述第二用户帐号之间的好友关系,所述目标指示信息用于指示所述第二用户终端同意所述第一好友添加请求。Step S250: In response to receiving target indication information returned by the second user terminal, establish a friend relationship between the first user account and the second user account in the target application, the target indication information It is used to instruct the second user terminal to agree to the first friend addition request.
在本申请实施例中,步骤S250可以参阅其他实施例的内容,在此不再赘述。In the embodiment of the present application, for step S250, reference may be made to the contents of other embodiments, which will not be repeated here.
本申请实施例提供的添加好友的方法,在不存在好友添加请求中携带的通信信息对应第二用户帐号的情况下,暂不执行该好友添加请求,而是将该好友添加请求存储于待邀请队列中;在第二用户终端基于邀请信息中携带的下载链接注册完成目标应用的第二用户帐号的情况下,才执行待邀请队列中的第一好友添加请求,向第二用户终端发起该好友添加请求,在第二用户终端同意该好友添加请求的情况下,建立目标应用中用户帐号与第二用户的用户帐号之间的好友关系,由此,实现了第一用户对未注册用户帐号的第二用户的好友添加,并且第一用户无需重复操作,有效减少了用户操作,提升了用户体验。并且,将未发送的好友添加请求存储于待邀请队列,能够避免遗漏未执行的好友邀请。In the method for adding a friend provided by the embodiment of the present application, if the communication information carried in the friend addition request does not correspond to the second user account, the friend addition request will not be executed temporarily, but the friend addition request will be stored in the to-be-invited In the queue; only when the second user terminal completes the registration of the second user account of the target application based on the download link carried in the invitation information, execute the first friend addition request in the queue to be invited, and send the friend request to the second user terminal The adding request is to establish a friend relationship between the user account in the target application and the user account of the second user under the condition that the second user terminal agrees to the friend adding request, thereby realizing the first user's registration of the unregistered user account. The friend of the second user is added, and the first user does not need to perform repeated operations, which effectively reduces user operations and improves user experience. Moreover, storing unsent friend addition requests in the queue to be invited can avoid missing unexecuted friend invitations.
请参阅图5,图5示出了本申请又一个实施例提供的添加好友的方法的流程示意图。该添加好友的方法应用于上述服务器,下面将针对图5所示的流程进行详细的阐述,所述添加好友的方法具体可以包括以下步骤:Please refer to FIG. 5 , which shows a schematic flowchart of a method for adding a friend provided by another embodiment of the present application. The method for adding a friend is applied to the above-mentioned server. The process shown in FIG. 5 will be described in detail below. The method for adding a friend may specifically include the following steps:
步骤S310:接收第一用户终端发送的第一好友添加请求,所述第一好友添加请求携带有通信信息。Step S310: Receive a first friend addition request sent by a first user terminal, where the first friend addition request carries communication information.
步骤S320:若不存在所述通信信息对应的第二用户帐号,基于所述通信信息,向第二用户终端发送邀请信息,所述邀请信息用于指示所述第二用户终端基于所述邀请信息中携带的下载链接注册目标应用的所述第二用户帐号。Step S320: If there is no second user account corresponding to the communication information, based on the communication information, send invitation information to the second user terminal, where the invitation information is used to instruct the second user terminal to The download link carried in registers the second user account of the target application.
步骤S330:将所述第一好友添加请求存储于待邀请队列。Step S330: Store the first friend addition request in a queue to be invited.
在本申请实施例中,步骤S310至步骤S330可以参阅其他实施例的内容,在此不再赘述。In this embodiment of the present application, for steps S310 to S330, reference may be made to the contents of other embodiments, and details are not repeated here.
步骤S340:若接收到所述第一用户终端发送的携带有所述通信信息的第二好友添加请求,判断所述待邀请队列中是否存在所述第一好友添加请求。Step S340: If the second friend addition request carrying the communication information sent by the first user terminal is received, determine whether the first friend addition request exists in the queue to be invited.
服务器接收到上述第一好友添加请求后,在确定出不存在第二用户帐号的情况下,将第一好友添加请求添加至待邀请队列,以及基于通信信息,向第二用户终端发送邀 请信息之后,若第二用户终端并未根据邀请信息注册目标应用的第二用户帐号,则服务器不会执行向第二用户终端发送第一好友添加请求的步骤,也即第一好友添加请求会持续存在于该待邀请队列中。该情况下,可能存在第一用户终端再次发起同样的好友添加请求的情况,此时,可以将再次发起的好友添加请求作为第二好友添加请求,若服务器直接响应该第二好友添加请求,则会出现再次向第二用户终端发送邀请信息的情况,则可能出现用户恶意添加好友,出现信息轰炸的问题。After the server receives the above-mentioned first friend addition request, if it is determined that there is no second user account, add the first friend addition request to the queue to be invited, and send the invitation information to the second user terminal based on the communication information , if the second user terminal does not register the second user account of the target application according to the invitation information, the server will not perform the step of sending the first friend addition request to the second user terminal, that is, the first friend addition request will continue to exist in It's in the invite queue. In this case, there may be a situation where the first user terminal initiates the same friend addition request again. At this time, the re-initiated friend addition request can be used as the second friend addition request. If the server directly responds to the second friend addition request, then If the invitation information is sent to the second user terminal again, the user may maliciously add friends and the problem of information bombing may occur.
因此,在本申请实施例中,若接收到第一用户终端发送的携带有所述通信信息的第二好友添加请求,则服务器可以判断待邀请队列中是否存在上述第一好友添加请求,若存在上述第一好友添加请求,则表示服务器此前已经向该第二用户终端发送过邀请信息,只是第二用户终端未根据邀请信息进行用户帐号的注册。Therefore, in this embodiment of the application, if the second friend addition request carrying the communication information sent by the first user terminal is received, the server can determine whether the above-mentioned first friend addition request exists in the queue to be invited. The above-mentioned first friend addition request means that the server has sent invitation information to the second user terminal before, but the second user terminal has not registered the user account according to the invitation information.
在本申请实施例中,若待邀请队列中不存在第一好友添加请求,则表示第二用户终端已根据邀请信息完成用户帐号的注册,该情况下,可能是第二用户终端未通过第一好友添加请求,也可能为第二用户终端通过第一好友添加请求后,注销了目标应用的帐号,此时第一用户终端需要再次进行好友添加。因此,服务器可以按照对第一好友添加请求的处理逻辑,在不存在第二用户帐号的情况下,基于通信信息,向第二用户终端发送邀请信息,当存在第二用户帐号时,向第二用户终端发送该第二好友添加请求,并在接收到第二用户终端返回的目标指示信息时,建立第一用户帐号与第二用户帐号之间的好友关系。若存在第二用户帐号,则服务器可以直接将第二好友添加请求发送至第二用户终端,以便完成用户所需的好友邀请。In this embodiment of the application, if there is no first friend addition request in the waiting queue, it means that the second user terminal has completed the registration of the user account according to the invitation information. In this case, it may be that the second user terminal has not passed the first friend request. The request to add a friend may also be that the second user terminal has canceled the account of the target application after passing the first request to add a friend. At this time, the first user terminal needs to add a friend again. Therefore, the server may send invitation information to the second user terminal based on the communication information if there is no second user account according to the processing logic of the first friend addition request, and send invitation information to the second user terminal if there is a second user account. The user terminal sends the second friend addition request, and establishes a friend relationship between the first user account and the second user account when receiving the target indication information returned by the second user terminal. If there is a second user account, the server may directly send a second friend addition request to the second user terminal, so as to complete the friend invitation required by the user.
步骤S350:若存在所述第一好友添加请求,则忽略所述第二好友添加请求。Step S350: If there is the first friend addition request, ignore the second friend addition request.
在本申请实施例中,若待邀请队列中存在上述第一好友添加请求,为了避免对第二用户造成信息轰炸,服务器可以忽略本次接收到的第二好友添加请求。In this embodiment of the application, if there is the above-mentioned first friend addition request in the queue to be invited, in order to avoid causing information bombardment to the second user, the server may ignore the second friend addition request received this time.
在一些实施方式中,若待邀请队列中存在上述第一好友添加请求,服务器可以获取当前时刻相对目标时刻的间隔时长作为第一时长,目标时刻为发送所述邀请信息时的时刻;若第一时长小于第一阈值,则忽略所述第二好友添加请求。可以理解地,若服务器根据第一好友添加请求,发送邀请信息至第二用户终端后,第二用户未根据邀请信息下载和安装目标应用,并进行用户帐号的注册,则可能是第二用户遗漏了该邀请信息。因此,为了实现第一用户能够通过再次的好友添加请求,发送邀请信息至第二用户终端,故服务器可以获取相距上次发送该邀请信息的间隔时长作为第一时长,并将第一时长与第一阈值进行比较,若第一时长大于或等于第一阈值,则表示距离此前发送邀请信息间隔较久,因此可以再次发送邀请信息;若第一时长小于第一阈值,则表示距离此前发送邀请信息的间隔较短,为避免出现短信轰炸,可以忽略该第二好友添加请求。其中,第一阈值的具体数值可以不做限定,例如,可以为5小时、12小时、24小时、1周等。In some implementations, if there is the above-mentioned first friend addition request in the queue to be invited, the server may obtain the interval between the current time and the target time as the first time, and the target time is the time when the invitation information is sent; if the first If the duration is less than the first threshold, the second friend addition request is ignored. Understandably, if the server sends the invitation information to the second user terminal according to the first friend addition request, but the second user fails to download and install the target application and register the user account according to the invitation information, it may be that the second user missed the request. the invitation message. Therefore, in order to realize that the first user can send the invitation information to the second user terminal through another friend addition request, the server can obtain the interval time from sending the invitation information last time as the first time length, and compare the first time length with the second time length. If the first time length is greater than or equal to the first threshold value, it means that the invitation information has been sent for a long time, so the invitation information can be sent again; if the first time length is less than the first threshold value, it means that the invitation information has been sent before. The interval of the second friend can be ignored in order to avoid text message bombing. Wherein, the specific value of the first threshold may not be limited, for example, it may be 5 hours, 12 hours, 24 hours, 1 week and so on.
在一些实施方式中,若第一好友添加请求持续存在于待邀请队列,在第二用户终端没有处理邀请信息的情况下,则第一用户终端无法再次通过发起好友添加请求,而向第二用户终端发送邀请信息。因此,服务器还可以检测第一好友添加请求存在于待邀请队列中的时长,若第一好友添加请求存在于待邀请队列中的时长达到第二时长,则表示距离上次发送邀请信息的时长较久,因此可以待邀请队列中删除第一好友添加请求,以使第一用户终端能够再次通过发起好友添加请求,从而向第二用户终端发送邀请信息。其中,第二时长的具体数值可以不做限定,例如,可以为5小时、12小时、24小时、1周等。In some implementations, if the first friend addition request continues to exist in the queue to be invited, and the second user terminal does not process the invitation information, the first user terminal cannot initiate a friend addition request again to the second user. The terminal sends an invitation message. Therefore, the server can also detect the length of time that the first friend addition request exists in the queue to be invited, and if the time length of the first friend addition request to exist in the queue to be invited reaches the second length of time, it means that it is longer than the time since the last invitation message was sent. Therefore, the first friend addition request can be deleted from the invitation queue, so that the first user terminal can send the invitation information to the second user terminal by initiating a friend addition request again. Wherein, the specific value of the second duration may not be limited, for example, it may be 5 hours, 12 hours, 24 hours, 1 week and so on.
步骤S360:当存在所述第二用户帐号时,向所述第二用户终端发送所述第一好友添加请求。Step S360: When the second user account exists, send the first friend addition request to the second user terminal.
步骤S370:响应于接收到所述第二用户终端返回的目标指示信息,在所述目标应用中建立所述第一用户终端对应的第一用户帐号与所述第二用户帐号之间的好友关 系,所述目标指示信息用于指示所述第二用户终端同意所述第一好友添加请求。Step S370: In response to receiving the target indication information returned by the second user terminal, establish a friend relationship between the first user account corresponding to the first user terminal and the second user account in the target application , the target indication information is used to instruct the second user terminal to agree to the first friend addition request.
在本申请实施例中,步骤S360以及步骤S370可以参阅其他实施例的内容,在此不再赘述。In this embodiment of the present application, reference may be made to the contents of other embodiments for step S360 and step S370, and details are not repeated here.
本申请实施例提供的添加好友的方法,实现了第一用户对未注册用户帐号的第二用户的好友添加,并且第一用户无需重复操作,有效减少了用户操作,提升了用户体验。并且,将未发送的好友添加请求存储于待邀请队列,能够避免遗漏未执行的好友邀请。另外,当再次接收到好友添加请求时,若此前的好友添加请求存在于待邀请队列,则忽略再次接收到的好友添加请求,可以避免出现对用户信息轰炸的情况发生,保证了用户体验。The method for adding a friend provided by the embodiment of the present application enables a first user to add a friend of a second user who has not registered a user account, and the first user does not need to perform repeated operations, which effectively reduces user operations and improves user experience. Moreover, storing unsent friend addition requests in the queue to be invited can avoid missing unexecuted friend invitations. In addition, when a friend addition request is received again, if the previous friend addition request exists in the queue to be invited, the friend addition request received again is ignored, which can avoid bombardment of user information and ensure user experience.
请参阅图6,图6示出了本申请再一个实施例提供的添加好友的方法的流程示意图。该添加好友的方法应用于上述服务器,下面将针对图6所示的流程进行详细的阐述,所述添加好友的方法具体可以包括以下步骤:Please refer to FIG. 6 . FIG. 6 shows a schematic flowchart of a method for adding a friend provided by another embodiment of the present application. The method for adding a friend is applied to the above-mentioned server. The process shown in FIG. 6 will be described in detail below. The method for adding a friend may specifically include the following steps:
步骤S410:接收第一用户终端发送的第一好友添加请求,所述第一好友添加请求携带有通信信息。Step S410: Receive a first friend addition request sent by a first user terminal, where the first friend addition request carries communication information.
在本申请实施例中,步骤S410可以参阅其他实施例的内容,在此不再赘述。In the embodiment of the present application, for step S410, reference may be made to the contents of other embodiments, which will not be repeated here.
步骤S420:获取所述第一用户终端历史发送的好友添加请求中满足目标条件的目标请求,所述目标条件用于表征所述服务器接收到好友添加请求时不存在对方注册的所述目标应用的用户帐号。Step S420: Obtain the target request that satisfies the target condition among the friend adding requests sent by the first user terminal in history, and the target condition is used to indicate that there is no target application registered by the other party when the server receives the friend adding request user account.
在本申请实施例中,服务器在接收到上述第一好友添加请求后,对该第一好友添加请求进行响应之前,可以先获取第一用户终端历史发送携带有其他用户的通讯信息的所有好友添加请求,并从所有好友添加请求中确定出满足目标条件的目标请求。该目标条件用于表征服务器接收到好友添加请求时不存在对方注册的目标应用的用户帐号,也就是说,服务器接收到目标请求时,不存在被添加的好友所注册的目标应用的用户帐号,即服务器会向对方的用户终端发送邀请信息。因此,可以获取上述目标请求,以便上述目标请求,确定该第一用户终端对应的第一用户是否存在恶意触发向其他用户发送邀请信息的行为。In this embodiment of the application, after receiving the above-mentioned first friend adding request, before responding to the first friend adding request, the server may first obtain all friend adding messages sent by the first user terminal history and carrying communication information of other users. request, and determine the target request that meets the target condition from all friend adding requests. This target condition is used to represent that there is no user account of the target application registered by the other party when the server receives the friend adding request, that is, when the server receives the target request, there is no user account of the target application registered by the added friend. That is, the server will send invitation information to the user terminal of the other party. Therefore, the above-mentioned target request can be obtained, so that the above-mentioned target request can determine whether the first user corresponding to the first user terminal has a behavior of maliciously triggering sending invitation information to other users.
步骤S430:获取所述目标请求中每个好友添加请求对应的响应信息,所述响应信息用于表征对方是否下载并注册所述目标应用的用户帐号。Step S430: Obtain the response information corresponding to each friend addition request in the target request, the response information is used to indicate whether the other party has downloaded and registered the user account of the target application.
在本申请实施例中,服务器可以存储有用户历史发起的好友添加请求中每个好友添加请求的响应信息,该响应信息指的是上述被发送邀请信息的用户终端是否根据下载链接注册目标应用的用户帐号的结果。服务器在确定出上述目标请求后,可以根据存储的响应信息,确定上述目标请求中每个好友添加请求对应的响应信息。In this embodiment of the application, the server may store the response information of each friend addition request in the friend addition request initiated by the user history, the response information refers to whether the user terminal that is sent the invitation information registers the target application according to the download link Results for user accounts. After determining the target request, the server may determine the response information corresponding to each friend adding request in the target request according to the stored response information.
步骤S440:若所述目标请求对应的响应信息满足预设响应条件,且不存在所述第二用户注册的所述目标应用的用户帐号,基于所述通信信息,向第二用户终端发送邀请信息,所述邀请信息用于指示所述第二用户终端基于所述邀请信息中携带的下载链接注册目标应用的所述第二用户帐号。Step S440: If the response information corresponding to the target request satisfies the preset response condition, and there is no user account of the target application registered by the second user, based on the communication information, send invitation information to the second user terminal The invitation information is used to instruct the second user terminal to register the second user account of the target application based on the download link carried in the invitation information.
在本申请实施例中,服务器在获取到的目标请求中每个好友添加请求对应的响应信息之后,则可以根据目标请求对应的响应信息,确定其是否满足预设响应条件;若满足预设响应条件,表示该第一用户终端对应的第一用户不存在恶意触发向其他用户发送邀请信息的行为,因此,在同时确定出不存在第二用户注册的目标应用的用户帐号的情况下,执行后续的步骤,实现用户所需的好友添加;若不满足预设响应条件,则表示该第一用户存在恶意触发向其他用户发送邀请信息的行为。In this embodiment of the application, after the server obtains the response information corresponding to each friend adding request in the target request, it can determine whether it satisfies the preset response condition according to the response information corresponding to the target request; if it meets the preset response condition, which means that the first user corresponding to the first user terminal does not have any behavior of maliciously triggering the sending of invitation information to other users; Steps to add friends required by the user; if the preset response conditions are not met, it means that the first user maliciously triggers sending invitation information to other users.
在一些实施方式中,该预设响应条件可以包括:上述目标请求对应的响应信息中第一响应信息的数量大于预设数量,第一响应信息为表征对方基于所述下载链接注册所述目标应用的用户帐号。可以理解地,若该第一响应信息的数量大于预设数量,则表示此前第一终端发起好友添加请求时,被添加的用户通过用户终端注册用户帐号的 情况较多,因此可以确定该第一用户不存在恶意触发向其他用户发送邀请信息的行为;若该第一响应信息的数量不大于(小于或等于)预设数量,则表示此前第一用户终端发起好友添加请求时,被添加的用户通过用户终端注册用户帐号的情况较少,因此可以确定该第一用户存在恶意触发向其他用户发送邀请信息的行为。其中,预设数量的具体数值可以不做限定,其可以为预先设置的固定值,也可以根据第一用户终端历史发起的上述好友添加请求的总数确定,例如,可以将该总数与目标比例的乘积,作为预设数量,目标比例可以为50%,60%,80%等,在此不做限定。In some embodiments, the preset response condition may include: the quantity of the first response information in the response information corresponding to the above-mentioned target request is greater than the preset quantity, and the first response information indicates that the other party registers the target application based on the download link user account. It can be understood that if the number of the first response information is greater than the preset number, it means that when the first terminal initiates a request to add a friend before, the added user often registers a user account through the user terminal, so it can be determined that the first The user does not maliciously trigger the behavior of sending invitation information to other users; if the number of the first response information is not greater than (less than or equal to) the preset number, it means that when the first user terminal initiated a friend addition request before, the added user It is rare to register a user account through a user terminal, so it can be determined that the first user maliciously triggers sending invitation information to other users. Wherein, the specific value of the preset number may not be limited, it may be a preset fixed value, or may be determined according to the total number of the above-mentioned friend addition requests initiated by the first user terminal history, for example, the total number may be compared with the target ratio The product, as a preset quantity, can be 50%, 60%, 80% and so on, which is not limited here.
在一些实施方式中,该预设响应条件可以包括:目标请求对应的响应信息中第一响应信息的占比大于预设比例,第一响应信息为表征对方下载并注册所述目标应用的用户帐号。可以理解地,若该第一响应信息的占比大于预设比例,则表示此前第一用户终端发起好友添加请求时,被添加的用户通过用户终端注册用户帐号的情况较多,因此可以确定该第一用户不存在恶意触发向其他用户发送邀请信息的行为;若该第一响应信息的占比不大于(小于或等于)预设占比,则表示此前第一用户终端发起好友添加请求时,被添加的用户通过用户终端注册用户帐号的情况较少,因此可以确定该第一用户存在恶意触发向其他用户发送邀请信息的行为。其中,预设比例的具体数值可以不做限定,例如,可以为50%,60%,80%等,在此不做限定。In some implementations, the preset response condition may include: the proportion of the first response information in the response information corresponding to the target request is greater than a preset ratio, and the first response information is a user account representing that the other party has downloaded and registered the target application . It can be understood that if the proportion of the first response information is greater than the preset proportion, it means that when the first user terminal initiates a friend addition request before, there are many cases of the added user registering a user account through the user terminal, so it can be determined that this The first user does not maliciously trigger the behavior of sending invitation information to other users; if the proportion of the first response information is not greater than (less than or equal to) the preset proportion, it means that when the first user terminal initiated a friend addition request before, It is rare for the added user to register a user account through the user terminal, so it can be determined that the first user maliciously triggers sending invitation information to other users. Wherein, the specific value of the preset ratio may not be limited, for example, it may be 50%, 60%, 80%, etc., which is not limited here.
步骤S450:当存在所述第二用户帐号时,向所述第二用户终端发送所述第一好友添加请求。Step S450: When the second user account exists, send the first friend addition request to the second user terminal.
步骤S460:响应于接收到所述第二用户终端返回的目标指示信息,在所述目标应用中建立所述第一用户帐号与所述第二用户帐号之间的好友关系,所述目标指示信息用于指示所述第二用户终端同意所述第一好友添加请求。Step S460: In response to receiving the target indication information returned by the second user terminal, establish a friend relationship between the first user account and the second user account in the target application, the target indication information It is used to instruct the second user terminal to agree to the first friend addition request.
在本申请实施例中,步骤S450以及步骤S460可以参阅其他实施例的内容,在此不再赘述。In this embodiment of the present application, reference may be made to the contents of other embodiments for step S450 and step S460, and details are not repeated here.
本申请实施例提供的添加好友的方法,在不存在好友添加请求中携带的通信信息对应的用户帐号的情况下,服务器根据第一用户终端历史发起的满足目标条件的目标请求的响应信息,确定第一用户终端对应的用户是否存在恶意触发向其他用户发送邀请信息的行为,在确定出不存在恶意触发向其他用户发送邀请信息的行为的情况下,才执行邀请信息的发送及后续步骤,有效避免了用户恶意触发向其他用户发送邀请信息的行为。In the method for adding a friend provided by the embodiment of the present application, if there is no user account corresponding to the communication information carried in the friend addition request, the server determines the Whether the user corresponding to the first user terminal maliciously triggers the behavior of sending invitation information to other users, and only executes the sending of the invitation information and subsequent steps when it is determined that there is no malicious behavior of triggering the sending of invitation information to other users, effectively This prevents the user from maliciously triggering the behavior of sending invitation information to other users.
请参阅图7,图7示出了本申请又另一个实施例提供的添加好友的方法的流程示意图。该添加好友的方法应用于上述服务器,下面将针对图7所示的流程进行详细的阐述,所述添加好友的方法具体可以包括以下步骤:Please refer to FIG. 7 . FIG. 7 shows a schematic flowchart of a method for adding a friend provided by yet another embodiment of the present application. The method for adding a friend is applied to the above-mentioned server. The process shown in FIG. 7 will be described in detail below. The method for adding a friend may specifically include the following steps:
步骤S510:接收第一用户终端发送的第一好友添加请求,所述第一好友添加请求携带有通信信息。Step S510: Receive a first friend addition request sent by a first user terminal, where the first friend addition request carries communication information.
步骤S520:若不存在所述通信信息对应的第二用户帐号,基于所述通信信息,向第二用户终端发送邀请信息,所述邀请信息用于指示所述第二用户终端基于所述邀请信息中携带的下载链接注册目标应用的所述第二用户帐号。Step S520: If there is no second user account corresponding to the communication information, based on the communication information, send invitation information to the second user terminal, where the invitation information is used to instruct the second user terminal to The download link carried in registers the second user account of the target application.
在本申请实施例中,步骤S510以及步骤S520可以参阅其他实施例的内容,在此不再赘述。In this embodiment of the present application, reference may be made to the contents of other embodiments for step S510 and step S520, and details are not repeated here.
步骤S530:接收所述第一用户终端发送的用于查找所述通信信息对应的第二用户帐号的好友查询请求。Step S530: Receive a friend query request sent by the first user terminal for searching the second user account corresponding to the communication information.
步骤S540:响应于所述好友查询请求,若不存在所述第一用户帐号与所述第二用户帐号之间的好友关系,则再次向所述第二用户终端发送所述邀请信息。Step S540: In response to the friend query request, if there is no friend relationship between the first user account and the second user account, send the invitation information to the second user terminal again.
在本申请实施例中,服务器向第二用户终端发送上述邀请信息后,由于第一用户终端对应的第一用户无法获知第二用户终端对应的第二用户是否根据邀请信息,完成帐号注册后,接收到第一用户添加请求,并完成对第一用户添加请求的处理,因此可 能出现第一用户通过第一用户终端查找上述通信信息对应的第二用户帐号的好友的情况。对应地,服务器可以接收第一用户终端发送的好友查询请求;服务器接收到该好友查询请求后,响应于该好友查询请求,确定当前是否存在第一用户帐号与第二用户帐号之间的好友关系;若不存在第一用户帐号与第二用户帐号之间的好友关系,则向第一用户终端反馈第一查询结果,并且,可以再次向第二用户终端发送邀请信息,以便完成用户所需的好友添加;若存在第一用户帐号与第二用户帐号之间的好友关系,则向第一用户终端反馈第二查询结果。其中,第一查询结果表征不存在第一用户帐号与第二用户帐号之间的好友关系;第二查询结果表征存在第一用户帐号与第二用户帐号之间的好友关系。In this embodiment of the application, after the server sends the above invitation information to the second user terminal, since the first user corresponding to the first user terminal cannot know whether the second user corresponding to the second user terminal has completed the account registration according to the invitation information, The first user addition request is received and the processing of the first user addition request is completed, so the first user may search for friends of the second user account corresponding to the above communication information through the first user terminal. Correspondingly, the server may receive a friend query request sent by the first user terminal; after receiving the friend query request, the server responds to the friend query request to determine whether there is currently a friend relationship between the first user account and the second user account ; If there is no friendship relationship between the first user account and the second user account, the first query result is fed back to the first user terminal, and the invitation information can be sent to the second user terminal again, so as to complete the user's required Adding friends; if there is a friend relationship between the first user account and the second user account, feeding back the second query result to the first user terminal. Wherein, the first query result indicates that there is no friendship relationship between the first user account and the second user account; the second query result indicates that there is a friendship relationship between the first user account and the second user account.
在一些实施方式中,为避免用户通过好友查询,对其他用户进行信息轰炸。服务器接收到上述好友查询请求后,若确定出不存在第一用户帐号与第二用户帐号之间的好友关系,则可以获取当前时刻相对目标时刻的间隔时长作为第三时长,该目标时刻为发送邀请信息时的时刻;若第三时长大于第二阈值,则再次向第二用户终端发送所述邀请信息。其中,第二阈值的具体数值可以不做限定,例如,可以为5小时、12小时、24小时、1周等。In some implementations, in order to prevent users from querying through friends, other users are bombarded with information. After the server receives the above-mentioned friend query request, if it determines that there is no friend relationship between the first user account and the second user account, it can obtain the interval time between the current time and the target time as the third time. The time when the information is invited; if the third duration is greater than the second threshold, the invitation information is sent to the second user terminal again. Wherein, the specific value of the second threshold may not be limited, for example, it may be 5 hours, 12 hours, 24 hours, 1 week and so on.
步骤S550:当存在所述第二用户帐号时,向所述第二用户终端发送所述第一好友添加请求。Step S550: When the second user account exists, send the first friend addition request to the second user terminal.
步骤S560:响应于接收到所述第二用户终端返回的目标指示信息,在所述目标应用中建立所述第一用户帐号与所述第二用户帐号之间的好友关系,所述目标指示信息用于指示所述第二用户终端同意所述第一好友添加请求。Step S560: In response to receiving the target indication information returned by the second user terminal, establish a friend relationship between the first user account and the second user account in the target application, the target indication information It is used to instruct the second user terminal to agree to the first friend addition request.
在本申请实施例中,步骤S550以及步骤S560可以参阅其他实施例的内容,在此不再赘述。In this embodiment of the present application, reference may be made to the contents of other embodiments for step S550 and step S560, and details are not repeated here.
在一些实施方式中,由于第一用户终端对应的用户无法获知是否已向第二用户终端发送第一好友添加请求,因此可能出现第一用户查找添加的好友的情况。结合前述实施例中的好友添加请求存储于待邀请队列的实施方式,服务器向第二用户终端发送待邀请队列中的第一好友添加请求后,可以暂时不将第一好友添加请求删除。若接收到第一用户终端发送上述好友查询请求,服务器可以查询是否存在第一用户帐号与第二用户帐号之间的好友关系;若不存在第一用户帐号与第二用户帐号之间的好友关系,则可以判断待邀请队列中是否存在第一好友添加请求;若存在该第一好友添加请求,则可以向第二用户终端发送第一好友添加请求,以使用户能够通过好友查询,再次向第二用户终端对应的用户发起好友添加请求。In some implementations, since the user corresponding to the first user terminal cannot know whether the first friend addition request has been sent to the second user terminal, it may occur that the first user searches for the added friend. In combination with the above-mentioned embodiment where the friend addition request is stored in the queue to be invited, after the server sends the first friend addition request in the queue to be invited to the second user terminal, the first friend addition request may not be deleted temporarily. If the friend query request sent by the first user terminal is received, the server may check whether there is a friend relationship between the first user account and the second user account; if there is no friend relationship between the first user account and the second user account , then it can be judged whether there is a first friend addition request in the queue to be invited; The user corresponding to the second user terminal initiates a friend addition request.
可选地,上述建立好友关系也可以是建立第一用户帐号与第二用户帐号处于同一用户群组的关系。示例性地,在第一用户通过第一用户终端邀请第二用户加入目标应用中的家庭群组的应用场景中,第一用户通过第一用户终端发起的上述好友查询请求可以是查询第二用户的第二用户帐号是否已经在群组中,具体地处理流程示意图可以如图8所示。其中,第一用户可以通过登录目标应用,查询第二用户的第二用户帐号是否已经在群组中;若第二用户的第二用户帐号已经在群组中,则第一用户的第一用户终端进入拥有该群组信息的功能页面;若第二用户的第二用户帐号不在群组中,则可以判断待邀请队列中是否存在第一好友添加请求;若存在该第一好友添加请求,则向第二用户终端发送该第一好友添加请求;对应地,第二用户终端可以收到该第一好友添加请求;若第二用户终端接受该第一好友添加请求,则服务器可以建立第二用户帐号与该群组的对应关系,从而第一用户终端在查询第二用户的第二用户帐号是否已经在群组之后,可以进入拥有该群组信息的功能页面;若待邀请队列中不存在第一好友添加请求,或者向第二用户终端发送该第一好友添加请求后,第二用户终端不接受第一好友添加请求,则向第一用户终端返回指示信息,以使第一用户终端停留在查询页面。Optionally, the above-mentioned establishment of a friend relationship may also be establishment of a relationship in which the first user account and the second user account are in the same user group. Exemplarily, in the application scenario where the first user invites the second user to join the family group in the target application through the first user terminal, the above friend query request initiated by the first user through the first user terminal may be to query the second user Whether the second user account is already in the group, the specific processing flow diagram may be as shown in FIG. 8 . Wherein, the first user can query whether the second user account of the second user is already in the group by logging into the target application; if the second user account of the second user is already in the group, the first user account of the first user The terminal enters the function page with the group information; if the second user account of the second user is not in the group, it can be judged whether there is a first friend addition request in the queue to be invited; if there is the first friend addition request, then Send the first friend addition request to the second user terminal; correspondingly, the second user terminal may receive the first friend addition request; if the second user terminal accepts the first friend addition request, the server may establish the second user The corresponding relationship between the account number and the group, so that after the first user terminal inquires whether the second user account of the second user is already in the group, it can enter the function page with the group information; A friend addition request, or after sending the first friend addition request to the second user terminal, the second user terminal does not accept the first friend addition request, then returns instruction information to the first user terminal, so that the first user terminal stays in the query page.
本申请实施例提供的添加好友的方法,实现了第一用户对未注册用户帐号的第二用户的好友添加,并且第一用户无需重复操作,有效减少了用户操作,提升了用户体验。并且,将未发送的好友添加请求存储于待邀请队列,能够避免遗漏未执行的好友邀请。另外,在发送邀请信息至第二用户终端后,接收到第一用户终端发送的对第二用户帐号的好友查询请求的情况下,若不存在第一用户帐号与第二用户帐号之间的好友关系,再次向第二用户终端发送邀请信息,以较好地提示第二用户处理邀请信息,完成用户所需的好友添加。The method for adding a friend provided by the embodiment of the present application enables a first user to add a friend of a second user who has not registered a user account, and the first user does not need to perform repeated operations, which effectively reduces user operations and improves user experience. Moreover, storing unsent friend addition requests in the queue to be invited can avoid missing unexecuted friend invitations. In addition, after sending the invitation information to the second user terminal, if a friend query request for the second user account is received from the first user terminal, if there is no friend between the first user account and the second user account relationship, send the invitation message to the second user terminal again, so as to better prompt the second user to process the invitation message, and complete the friend addition required by the user.
下面再通过图9对前述实施例涉及的添加好友的方法进行介绍。其中,上述通信信息可以为手机号;邀请信息的类型可以为短信;服务器可以包括帐号管理服务器、邀请服务器以及短信平台服务器。具体地,用户A可以在用户终端A输入被邀请方的手机号发起邀请;帐号管理服务器判断对应的手机号是否注册用户帐号;如果未注册,邀请服务器将该手机号记录到待邀请队列中(暂不执行邀请逻辑);短信平台服务器向未注册用户的手机号发送邀请短信;用户终端B收到邀请短信,用户B可以通过短信中的链接在用户终端B上下载并安装应用;然后,在应用中通过手机号注册帐号;帐号管理服务器执行完帐号注册逻辑;邀请服务器查询该手机号是否在邀请队列中,如果在邀请队列,则对该手机号执行实际的邀请逻辑,执行完成后向用户B发出邀请;已经注册了帐号的用户B收到并处理邀请。若用户B通过邀请,则建立起用户A的用户帐号与用户B的用户帐号之间的好友关系。Next, the method for adding friends involved in the foregoing embodiments will be introduced through FIG. 9 . Wherein, the above-mentioned communication information may be a mobile phone number; the type of invitation information may be a short message; the server may include an account management server, an invitation server, and a short message platform server. Specifically, user A can input the mobile phone number of the invitee at user terminal A to initiate an invitation; the account management server determines whether the corresponding mobile phone number is registered with a user account; if not registered, the invitation server records the mobile phone number in the queue to be invited ( The invitation logic will not be executed for now); the SMS platform server sends an invitation SMS to the mobile phone number of an unregistered user; user terminal B receives the invitation SMS, and user B can download and install the application on user terminal B through the link in the SMS; then, in In the application, the account is registered through the mobile phone number; the account management server finishes executing the account registration logic; the invitation server checks whether the mobile phone number is in the invitation queue, and if it is in the invitation queue, executes the actual invitation logic for the mobile phone number, and sends a message to the user after the execution is completed. B sends an invitation; user B who has registered an account receives and processes the invitation. If user B passes the invitation, a friendship relationship between the user account of user A and the user account of user B is established.
请参阅图10,其示出了本申请实施例提供的一种添加好友的装置400的结构框图。该添加好友的装置400应用上述的服务器,该添加好友的装置400包括:请求接收模块410、信息发送模块420、请求发送模块430以及好友添加模块440。所述请求接收模块410用于接收第一用户终端发送的第一好友添加请求,所述第一好友添加请求携带有通信信息;所述信息发送模块420用于若不存在所述通信信息对应的第二用户帐号,基于所述通信信息,向第二用户终端发送邀请信息,所述邀请信息用于指示所述第二用户终端基于所述邀请信息中携带的下载链接注册目标应用的所述第二用户帐号;所述请求发送模块430用于当存在所述第二用户帐号时,向所述第二用户终端发送所述第一好友添加请求;所述好友添加模块440用于响应于接收到所述第二用户终端返回的目标指示信息,在所述目标应用中建立所述第一用户帐号与所述第二用户帐号之间的好友关系,所述目标指示信息用于指示所述第二用户终端同意所述第一好友添加请求。Please refer to FIG. 10 , which shows a structural block diagram of an apparatus 400 for adding a friend provided by an embodiment of the present application. The device 400 for adding a friend uses the above-mentioned server, and the device 400 for adding a friend includes: a request receiving module 410 , an information sending module 420 , a request sending module 430 and a friend adding module 440 . The request receiving module 410 is configured to receive a first friend addition request sent by a first user terminal, and the first friend addition request carries communication information; the information sending module 420 is configured to receive a friend request corresponding to the communication information if no The second user account, based on the communication information, sends invitation information to the second user terminal, where the invitation information is used to instruct the second user terminal to register the second user terminal of the target application based on the download link carried in the invitation information. Two user accounts; the request sending module 430 is configured to send the first friend addition request to the second user terminal when the second user account exists; the friend adding module 440 is configured to respond to receiving The target indication information returned by the second user terminal establishes a friendship relationship between the first user account and the second user account in the target application, and the target indication information is used to indicate that the second user account The user terminal agrees to the first friend addition request.
在一些实施方式中,该添加好友的装置400还可以包括:请求存储模块。请求存储模块用于在所述当存在所述第二用户帐号时,向所述第二用户终端发送所述第一好友添加请求之前,将所述第一好友添加请求存储于待邀请队列。请求发送模块430可以具体用于:当存在所述第二用户帐号时,向所述第二用户终端发送所述第一好友添加请求,并从所述待邀请队列中删除所述第一好友添加请求。In some implementation manners, the apparatus 400 for adding a friend may further include: a request storage module. The request storage module is configured to store the first friend addition request in a pending invitation queue before sending the first friend addition request to the second user terminal when the second user account exists. The request sending module 430 may be specifically configured to: when the second user account exists, send the first friend addition request to the second user terminal, and delete the first friend addition request from the queue to be invited. ask.
作为一种可能的实施方式,该添加好友的装置400还可以包括:请求判断模块以及请求忽略模块。请求判断模块用于若接收到所述第一用户终端发送的携带有所述通信信息的第二好友添加请求,判断所述待邀请队列中是否存在所述第一好友添加请求;请求忽略模块用于若存在所述第一好友添加请求,则忽略所述第二好友添加请求。As a possible implementation manner, the apparatus 400 for adding a friend may further include: a request judging module and a request ignoring module. The request judging module is used to judge whether there is the first friend adding request in the queue to be invited if the second friend adding request carrying the communication information sent by the first user terminal is received; the request ignoring module uses If there is the first friend addition request, then ignore the second friend addition request.
可选地,请求忽略模块可以具体用于:若存在所述第一好友添加请求,获取当前时刻相对目标时刻的间隔时长作为第一时长,所述目标时刻为发送所述邀请信息时的时刻;若第一时长小于第一阈值,则忽略所述第二好友添加请求。Optionally, the request ignoring module may be specifically configured to: if there is the first friend addition request, obtain the interval time between the current time and the target time as the first time length, and the target time is the time when the invitation information is sent; If the first duration is less than the first threshold, the second friend addition request is ignored.
可选地,该添加好友的装置400还可以包括:请求删除模块。请求删除模块可以用于若所述第一好友添加请求存在于所述待邀请队列中的时长达到第二时长,从所述待邀请队列中删除所述第一好友添加请求。Optionally, the apparatus 400 for adding a friend may further include: a module for requesting deletion. The request deletion module may be configured to delete the first friend addition request from the pending invitation queue if the first friend addition request exists in the pending invitation queue for a second duration.
在一些实施方式中,请求接收模块410还可以用于在所述若不存在所述通信信息 对应的第二用户帐号,基于所述通信信息,向第二用户终端发送邀请信息之后,接收所述第一用户终端发送的用于查找所述通信信息对应的第二用户帐号的好友查询请求;信息发送模块420还可以用于响应于所述好友查询请求,若不存在所述第一用户帐号与所述第二用户帐号之间的好友关系,则再次向所述第二用户终端发送所述邀请信息。In some implementations, the request receiving module 410 may also be configured to receive the invitation information after sending the invitation information to the second user terminal based on the communication information if the second user account corresponding to the communication information does not exist. The friend query request sent by the first user terminal for finding the second user account corresponding to the communication information; the information sending module 420 may also be configured to respond to the friend query request, if there is no such first user account and If there is a friend relationship between the second user accounts, the invitation information is sent to the second user terminal again.
作为一种可能的实施方式,信息发送模块420还可以具体用于:若不存在所述第一用户帐号与所述第二用户帐号之间的好友关系,获取当前时刻相对目标时刻的间隔时长作为第三时长,所述目标时刻为发送所述邀请信息时的时刻;若所述第三时长大于第二阈值,则再次向所述第二用户终端发送所述邀请信息。As a possible implementation manner, the information sending module 420 may also be specifically configured to: if there is no friendship relationship between the first user account and the second user account, obtain the interval between the current moment and the target moment as For a third duration, the target time is the time when the invitation information is sent; if the third duration is greater than a second threshold, the invitation information is sent to the second user terminal again.
在一些实施方式中,该添加好友的装置400还可以包括:请求查询模块以及信息查询模块,请求查询模块用于获取所述第一用户终端历史发送的好友添加请求中满足目标条件的目标请求,所述其他用户为除所述第一用户以外的任一用户,所述目标条件用于表征所述服务器接收到好友添加请求时不存在对方注册的所述目标应用的用户帐号;信息查询模块用于获取所述目标请求中每个好友添加请求对应的响应信息,所述响应信息用于表征对方是否基于所述下载链接注册所述目标应用的用户帐号。若所述目标请求对应的响应信息满足预设响应条件,则信息发送模块420执行:若不存在所述通信信息对应的第二用户帐号,基于所述通信信息,向第二用户终端发送邀请信息。In some implementations, the device 400 for adding a friend may further include: a request query module and an information query module, the request query module is used to obtain a target request that satisfies the target condition among the friend addition requests sent by the first user terminal in history, The other user is any user except the first user, and the target condition is used to indicate that there is no user account of the target application registered by the other party when the server receives the friend addition request; the information query module uses To obtain response information corresponding to each friend adding request in the target request, the response information is used to indicate whether the other party registers the user account of the target application based on the download link. If the response information corresponding to the target request satisfies the preset response condition, the information sending module 420 executes: if there is no second user account corresponding to the communication information, based on the communication information, send invitation information to the second user terminal .
作为一种可能的实施方式,所述预设响应条件包括:所述目标请求对应的响应信息中第一响应信息的数量大于预设数量,所述第一响应信息为表征对方基于所述下载链接注册所述目标应用的用户帐号。As a possible implementation manner, the preset response condition includes: the number of first response information in the response information corresponding to the target request is greater than the preset number, and the first response information indicates that the other party based on the download link Register the user account of the target application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the devices and modules described above can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。In several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other forms of coupling.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.
综上所述,本申请提供的方案,通过接收第一用户终端发送的第一好友添加请求,该好友添加请求携带有通信信息,若不存在该通信信息对应的第二用户帐号,基于通信信息,向第二用户终端发送邀请信息,邀请信息用于指示第二用户终端于邀请信息中携带的下载链接注册目标应用的第二用户帐号,当存在第二用户帐号时,向第二用户终端发送第一好友添加请求,响应于第二用户终端返回的指示已同意第一好友添加请求的目标指示信息,在目标应用中建立第一用户终端对应的第一用户帐号与第二用户帐号之间的好友关系。由此,可以实现用户添加未注册有帐号的好友时,双方无需进行过多的操作,即可完成好友添加,进而提升用户体验。To sum up, the solution provided by this application, by receiving the first friend addition request sent by the first user terminal, the friend addition request carries communication information, if there is no second user account corresponding to the communication information, based on the communication information , sending invitation information to the second user terminal, where the invitation information is used to instruct the second user terminal to register the second user account of the target application with the download link carried in the invitation information, and when there is a second user account, send the invitation information to the second user terminal The first friend addition request, in response to the target indication information returned by the second user terminal indicating that the first friend addition request has been approved, establish a connection between the first user account corresponding to the first user terminal and the second user account in the target application friendship. Thus, when a user adds a friend who has not registered an account, both parties can complete the friend addition without performing too many operations, thereby improving user experience.
请参考图11,其示出了本申请实施例提供的一种服务器的结构框图。该服务器100可以是物理服务器、云服务器能够运行应用程序的服务器。本申请中的服务器100可以包括一个或多个如下部件:处理器110、存储器120、以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器120中并被配置为由一个或多个处理器110执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。Please refer to FIG. 11 , which shows a structural block diagram of a server provided by an embodiment of the present application. The server 100 may be a physical server or a cloud server capable of running application programs. The server 100 in this application may include one or more of the following components: a processor 110, a memory 120, and one or more application programs, wherein one or more application programs may be stored in the memory 120 and configured to be run by a or a plurality of processors 110, and one or more programs are configured to execute the methods described in the foregoing method embodiments.
处理器110可以包括一个或者多个处理核。处理器110利用各种接口和线路连接整个服务器100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行服务器100的各种功能和处理数据。可选地,处理器110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑 阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(Central Processing Unit,CPU)、图形处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块通信芯片进行实现。 Processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts in the entire server 100, and executes the server by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. 100's of various functions and processing data. Optionally, the processor 110 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware. The processor 110 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly handles the operating system, user interface and application programs, etc.; the GPU is used to render and draw the displayed content; the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 110, but may be realized by a communication chip alone.
存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储服务器100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 120 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the following method embodiments, and the like. The storage data area can also store data created by the server 100 during use (such as phonebook, audio and video data, chat record data) and the like.
请参考图12,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质800中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 12 , which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. Program codes are stored in the computer-readable medium 800, and the program codes can be invoked by a processor to execute the methods described in the foregoing method embodiments.
计算机可读存储介质800可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质800包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质800具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码810可以例如以适当形式进行压缩。The computer readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium (non-transitory computer-readable storage medium). The computer-readable storage medium 800 has a storage space for program code 810 for executing any method steps in the above-mentioned methods. These program codes can be read from or written into one or more computer program products. Program code 810 may, for example, be compressed in a suitable form.
本申请实施例还提供了一种计算机程序产品,包括计算机程序/指令,其特征在于,该计算机程序/指令被处理器执行时实现前述实施例提供的添加好友的方法。An embodiment of the present application also provides a computer program product, including computer programs/instructions, characterized in that, when the computer program/instructions are executed by a processor, the method for adding a friend provided in the foregoing embodiments is implemented.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not drive the essence of the corresponding technical solutions away from the spirit and scope of the technical solutions of the various embodiments of the present application.

Claims (20)

  1. 一种添加好友的方法,其特征在于,所述方法包括:A method for adding friends, characterized in that the method comprises:
    接收第一用户终端发送的第一好友添加请求,所述第一好友添加请求携带有通信信息;receiving a first friend addition request sent by the first user terminal, where the first friend addition request carries communication information;
    若不存在所述通信信息对应的第二用户帐号,基于所述通信信息,向第二用户终端发送邀请信息,所述邀请信息用于指示所述第二用户终端基于所述邀请信息中携带的下载链接注册目标应用的所述第二用户帐号;If there is no second user account corresponding to the communication information, based on the communication information, send invitation information to the second user terminal, where the invitation information is used to instruct the second user terminal to Downloading the link to register the second user account of the target application;
    当存在所述第二用户帐号时,向所述第二用户终端发送所述第一好友添加请求;When the second user account exists, sending the first friend addition request to the second user terminal;
    响应于接收到所述第二用户终端返回的目标指示信息,在所述目标应用中建立所述第一用户终端对应的第一用户帐号与所述第二用户帐号之间的好友关系,所述目标指示信息用于指示所述第二用户终端同意所述第一好友添加请求。In response to receiving the target indication information returned by the second user terminal, establishing a friend relationship between the first user account corresponding to the first user terminal and the second user account in the target application, the The target indication information is used to instruct the second user terminal to agree to the first friend addition request.
  2. 根据权利要求1所述的方法,其特征在于,在所述当存在所述第二用户帐号时,向所述第二用户终端发送所述第一好友添加请求之前,所述方法还包括:The method according to claim 1, wherein when the second user account exists, before sending the first friend addition request to the second user terminal, the method further comprises:
    将所述第一好友添加请求存储于待邀请队列;storing the first friend addition request in a queue to be invited;
    所述当存在所述第二用户帐号时,向所述第二用户终端发送所述第一好友添加请求,包括:The sending the first friend addition request to the second user terminal when the second user account exists includes:
    当存在所述第二用户帐号时,向所述第二用户终端发送所述第一好友添加请求,并从所述待邀请队列中删除所述第一好友添加请求。When the second user account exists, sending the first friend addition request to the second user terminal, and deleting the first friend addition request from the queue to be invited.
  3. 根据权利要求2所述的方法,其特征在于,在所述将所述好友添加请求存储于待邀请队列之后,所述方法还包括:The method according to claim 2, characterized in that, after the friend addition request is stored in the queue to be invited, the method further comprises:
    若接收到所述第一用户终端发送的携带有所述通信信息的第二好友添加请求,判断所述待邀请队列中是否存在所述第一好友添加请求;If a second friend addition request carrying the communication information sent by the first user terminal is received, determining whether the first friend addition request exists in the queue to be invited;
    若存在所述第一好友添加请求,则忽略所述第二好友添加请求。If there is the first friend addition request, the second friend addition request is ignored.
  4. 根据权利要求3所述的方法,其特征在于,所述若存在所述第一好友添加请求,则忽略所述第二好友添加请求,包括:The method according to claim 3, wherein if the first friend addition request exists, ignoring the second friend addition request includes:
    若存在所述第一好友添加请求,获取当前时刻相对目标时刻的间隔时长作为第一时长,所述目标时刻为发送所述邀请信息时的时刻;If there is the first friend addition request, the interval between the current time and the target time is obtained as the first time, and the target time is the time when the invitation information is sent;
    若所述第一时长小于第一阈值,则忽略所述第二好友添加请求。If the first duration is less than the first threshold, the second friend addition request is ignored.
  5. 根据权利要求4所述的方法,其特征在于,在所述若存在所述第一好友添加请求,获取当前时刻相对目标时刻的间隔时长作为第一时长之后,所述方法还包括:The method according to claim 4, wherein, if there is the first friend addition request, after obtaining the interval time between the current time and the target time as the first time length, the method further comprises:
    若所述第一时长大于或等于第一阈值,则再次发送所述要求信息至所述第二用户终端。If the first duration is greater than or equal to a first threshold, sending the request information to the second user terminal again.
  6. 根据权利要求3-5任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 3-5, wherein the method further comprises:
    若所述第一好友添加请求存在于所述待邀请队列中的时长达到第二时长,从所述待邀请队列中删除所述第一好友添加请求。If the first friend addition request exists in the queue to be invited for a second duration, delete the first friend addition request from the queue to be invited.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,在所述若不存在所述通信信息对应的第二用户帐号,基于所述通信信息,向第二用户终端发送邀请信息之后,所述方法还包括:The method according to any one of claims 1-6, wherein after the second user account corresponding to the communication information does not exist, based on the communication information, the invitation information is sent to the second user terminal , the method also includes:
    接收所述第一用户终端发送的用于查找所述通信信息对应的第二用户帐号的好友查询请求;receiving a friend query request sent by the first user terminal for searching for a second user account corresponding to the communication information;
    响应于所述好友查询请求,若不存在所述第一用户帐号与所述第二用户帐号之间的好友关系,则再次向所述第二用户终端发送所述邀请信息。In response to the friend query request, if there is no friend relationship between the first user account and the second user account, the invitation information is sent to the second user terminal again.
  8. 根据权利要求7所述的方法,其特征在于,所述若不存在所述第一用户帐号与所 述第二用户帐号之间的好友关系,则再次向所述第二用户终端发送所述邀请信息,包括:The method according to claim 7, wherein if there is no friendship relationship between the first user account and the second user account, sending the invitation to the second user terminal again information, including:
    若不存在所述第一用户帐号与所述第二用户帐号之间的好友关系,获取当前时刻相对目标时刻的间隔时长作为第三时长,所述目标时刻为发送所述邀请信息时的时刻;If there is no friendship relationship between the first user account and the second user account, acquire the interval time between the current time and the target time as the third time, and the target time is the time when the invitation information is sent;
    若所述第三时长大于第二阈值,则再次向所述第二用户终端发送所述邀请信息。If the third duration is greater than the second threshold, the invitation information is sent to the second user terminal again.
  9. 根据权利要求1-8任一项所述的方法,其特征在于,在所述若不存在所述通信信息对应的第二用户帐号,基于所述通信信息,向第二用户终端发送邀请信息之前,所述方法还包括:The method according to any one of claims 1-8, wherein if there is no second user account corresponding to the communication information, before sending invitation information to the second user terminal based on the communication information , the method also includes:
    获取所述第一用户终端历史发送的好友添加请求中满足目标条件的目标请求,所述目标条件用于表征所述服务器接收到好友添加请求时不存在对方注册的所述目标应用的用户帐号;Obtaining a target request that satisfies a target condition among friend adding requests sent by the first user terminal in history, and the target condition is used to indicate that there is no user account of the target application registered by the other party when the server receives the friend adding request;
    获取所述目标请求中每个好友添加请求对应的响应信息,所述响应信息用于表征对方是否基于所述下载链接注册所述目标应用的用户帐号;Acquire response information corresponding to each friend addition request in the target request, where the response information is used to indicate whether the other party registers the user account of the target application based on the download link;
    若所述目标请求对应的响应信息满足预设响应条件,则执行所述若不存在所述通信信息对应的第二用户帐号,基于所述通信信息,向第二用户终端发送邀请信息的步骤。If the response information corresponding to the target request satisfies the preset response condition, the step of sending invitation information to the second user terminal based on the communication information if there is no second user account corresponding to the communication information is performed.
  10. 根据权利要求9所述的方法,其特征在于,所述预设响应条件包括:The method according to claim 9, wherein the preset response conditions include:
    所述目标请求对应的响应信息中第一响应信息的数量大于预设数量,所述第一响应信息为表征对方基于所述下载链接注册所述目标应用的用户帐号。The quantity of the first response information in the response information corresponding to the target request is greater than a preset quantity, and the first response information is a user account indicating that the other party registers the target application based on the download link.
  11. 根据权利要求9所述的方法,其特征在于,所述预设响应条件包括:The method according to claim 9, wherein the preset response conditions include:
    所述目标请求对应的响应信息中第一响应信息的占比大于预设比例,所述第一响应信息为表征对方下载并注册所述目标应用的用户帐号。The proportion of the first response information in the response information corresponding to the target request is greater than a preset ratio, and the first response information is a user account representing that the other party has downloaded and registered the target application.
  12. 根据权利要求1-11任一项所述的方法,其特征在于,在所述若不存在所述通信信息对应的第二用户帐号,基于所述通信信息,向第二用户终端发送邀请信息之后,所述方法还包括:The method according to any one of claims 1-11, wherein after the second user account corresponding to the communication information does not exist, based on the communication information, the invitation information is sent to the second user terminal , the method also includes:
    接收所述第二用户终端发送的注册请求;receiving a registration request sent by the second user terminal;
    响应于所述注册请求,生成所述第二用户帐号。The second user account is generated in response to the registration request.
  13. 根据权利要求1-11任一项所述的方法,其特征在于,在所述若不存在所述通信信息对应的第二用户帐号,基于所述通信信息,向第二用户终端发送邀请信息之后,所述方法还包括:The method according to any one of claims 1-11, wherein after the second user account corresponding to the communication information does not exist, based on the communication information, the invitation information is sent to the second user terminal , the method also includes:
    实时的从用于管理用户帐号的服务器查询是否存在所述第二用户终端注册的所述第二用户帐号。Inquiring in real time from the server for managing user accounts whether there is the second user account registered by the second user terminal.
  14. 根据权利要求1-11任一项所述的方法,其特征在于,在所述若不存在所述通信信息对应的第二用户帐号,基于所述通信信息,向第二用户终端发送邀请信息之后,所述方法还包括:The method according to any one of claims 1-11, wherein after the second user account corresponding to the communication information does not exist, based on the communication information, the invitation information is sent to the second user terminal , the method also includes:
    每间间隔目标时长,从用于管理用户帐号的服务器查询是否存在所述第二用户终端注册的所述第二用户帐号。At each interval of the target time length, query whether the second user account registered by the second user terminal exists from the server for managing the user account.
  15. 根据权利要求1-14任一项所述的方法,其特征在于,所述若不存在所述通信信息对应的第二用户帐号,基于所述通信信息,向第二用户终端发送邀请信息,包括:The method according to any one of claims 1-14, wherein if there is no second user account corresponding to the communication information, sending invitation information to the second user terminal based on the communication information includes: :
    若不存在所述通信信息对应的第二用户帐号,向第二用户终端发送与所述通信信息的类型对应的邀请信息。If there is no second user account corresponding to the communication information, sending invitation information corresponding to the type of the communication information to the second user terminal.
  16. 根据权利要求1-15任一项所述的方法,其特征在于,所述通信信息包括:手机号码或者电子邮箱地址。The method according to any one of claims 1-15, wherein the communication information includes: a mobile phone number or an email address.
  17. 一种添加好友的装置,其特征在于,所述装置包括:请求接收模块、信息发送模块、请求发送模块以及好友添加模块,其中,A device for adding friends, characterized in that the device includes: a request receiving module, an information sending module, a request sending module and a friend adding module, wherein,
    所述请求接收模块用于接收第一用户终端发送的第一好友添加请求,所述第一好 友添加请求携带有通信信息;The request receiving module is used to receive the first friend addition request sent by the first user terminal, and the first friend addition request carries communication information;
    所述信息发送模块用于若不存在所述通信信息对应的第二用户帐号,基于所述通信信息,向第二用户终端发送邀请信息,所述邀请信息用于指示所述第二用户终端基于所述邀请信息中携带的下载链接注册目标应用的所述第二用户帐号;The information sending module is configured to send invitation information to the second user terminal based on the communication information if there is no second user account corresponding to the communication information, and the invitation information is used to instruct the second user terminal based on The download link carried in the invitation information registers the second user account of the target application;
    所述请求发送模块用于当存在所述第二用户帐号时,向所述第二用户终端发送所述第一好友添加请求;The request sending module is configured to send the first friend addition request to the second user terminal when the second user account exists;
    所述好友添加模块用于响应于接收到所述第二用户终端返回的目标指示信息,在所述目标应用中建立所述第一用户终端对应的第一用户帐号与所述第二用户帐号之间的好友关系,所述目标指示信息用于指示所述第二用户终端同意所述第一好友添加请求。The friend adding module is configured to, in response to receiving the target indication information returned by the second user terminal, establish a relationship between the first user account corresponding to the first user terminal and the second user account in the target application. The friend relationship among friends, the target indication information is used to instruct the second user terminal to agree to the first friend addition request.
  18. 一种服务器,其特征在于,包括:A server, characterized by comprising:
    一个或多个处理器;one or more processors;
    存储器;memory;
    一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行如权利要求1-16任一项所述的方法。one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs are configured to perform as The method according to any one of claims 1-16.
  19. 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-16任一项所述的方法。A computer-readable storage medium, characterized in that program codes are stored in the computer-readable storage medium, and the program codes can be invoked by a processor to execute the method according to any one of claims 1-16 .
  20. 一种计算机程序产品,包括计算机程序/指令,其特征在于,该计算机程序/指令被处理器执行时实现权利要求1-16任一所述方法的步骤。A computer program product, comprising computer programs/instructions, characterized in that, when the computer program/instructions are executed by a processor, the steps of the method described in any one of claims 1-16 are implemented.
PCT/CN2022/124353 2021-11-29 2022-10-10 Method and apparatus for adding friend, and server and storage medium WO2023093325A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111435620.4 2021-11-29
CN202111435620.4A CN114157622B (en) 2021-11-29 2021-11-29 Method and device for adding friends, server and storage medium

Publications (1)

Publication Number Publication Date
WO2023093325A1 true WO2023093325A1 (en) 2023-06-01

Family

ID=80454426

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/124353 WO2023093325A1 (en) 2021-11-29 2022-10-10 Method and apparatus for adding friend, and server and storage medium

Country Status (2)

Country Link
CN (1) CN114157622B (en)
WO (1) WO2023093325A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114157622B (en) * 2021-11-29 2024-03-19 杭州逗酷软件科技有限公司 Method and device for adding friends, server and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025657A (en) * 2010-12-23 2011-04-20 北京开心人信息技术有限公司 Method and system for inviting friends to join social network by utilizing email
CN102082740A (en) * 2010-12-29 2011-06-01 北京开心人信息技术有限公司 Method and system for adding friends in invitation link mode
CN102196384A (en) * 2011-05-18 2011-09-21 陈善真 Automatic switching system and method based on cellular mobile communication network and Internet protocol (IP) network
CN105278972A (en) * 2014-06-19 2016-01-27 南京微特喜网络科技有限公司 A system and method using a dynamic install package to allow users to fast become friends
CN106027377A (en) * 2016-06-30 2016-10-12 珠海市魅族科技有限公司 Method and device for establishing social relationship
CN106101194A (en) * 2016-05-31 2016-11-09 腾讯科技(深圳)有限公司 A kind of method adding group and server
WO2017063142A1 (en) * 2015-10-13 2017-04-20 深圳还是威健康科技有限公司 Account registration method, terminal, and server
CN110971757A (en) * 2019-11-22 2020-04-07 珠海格力电器股份有限公司 Method and device for adding WeChat friends from telephone application
CN114157622A (en) * 2021-11-29 2022-03-08 杭州逗酷软件科技有限公司 Method, device, server and storage medium for adding friends

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10217085B2 (en) * 2009-06-22 2019-02-26 Nokia Technologies Oy Method and apparatus for determining social networking relationships
CN102377683A (en) * 2010-08-04 2012-03-14 腾讯科技(深圳)有限公司 Method and terminal for recommending contact information to instant messaging user
CN101986674A (en) * 2010-09-17 2011-03-16 中兴通讯股份有限公司 Method and device for inviting friends in social networking sites through mobile communication terminal
CN104572073A (en) * 2014-12-03 2015-04-29 贵阳朗玛信息技术股份有限公司 Method and device for adding good friends
CN105049319B (en) * 2015-05-25 2018-09-18 腾讯科技(深圳)有限公司 Good friend's adding method and system, client and server
CN106254206A (en) * 2015-06-11 2016-12-21 阿里巴巴集团控股有限公司 A kind of information processing method and equipment
CN111614549B (en) * 2020-05-21 2022-05-31 腾讯科技(深圳)有限公司 Interaction processing method and device, computer equipment and storage medium
CN112702257B (en) * 2020-12-11 2022-10-11 上海掌门科技有限公司 Method and device for deleting friend application

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025657A (en) * 2010-12-23 2011-04-20 北京开心人信息技术有限公司 Method and system for inviting friends to join social network by utilizing email
CN102082740A (en) * 2010-12-29 2011-06-01 北京开心人信息技术有限公司 Method and system for adding friends in invitation link mode
CN102196384A (en) * 2011-05-18 2011-09-21 陈善真 Automatic switching system and method based on cellular mobile communication network and Internet protocol (IP) network
CN105278972A (en) * 2014-06-19 2016-01-27 南京微特喜网络科技有限公司 A system and method using a dynamic install package to allow users to fast become friends
WO2017063142A1 (en) * 2015-10-13 2017-04-20 深圳还是威健康科技有限公司 Account registration method, terminal, and server
CN106101194A (en) * 2016-05-31 2016-11-09 腾讯科技(深圳)有限公司 A kind of method adding group and server
CN106027377A (en) * 2016-06-30 2016-10-12 珠海市魅族科技有限公司 Method and device for establishing social relationship
CN110971757A (en) * 2019-11-22 2020-04-07 珠海格力电器股份有限公司 Method and device for adding WeChat friends from telephone application
CN114157622A (en) * 2021-11-29 2022-03-08 杭州逗酷软件科技有限公司 Method, device, server and storage medium for adding friends

Also Published As

Publication number Publication date
CN114157622A (en) 2022-03-08
CN114157622B (en) 2024-03-19

Similar Documents

Publication Publication Date Title
US10484533B2 (en) Messaging interface based on caller of an incoming call
CN108306810B (en) Group building method, server and terminal
US10198238B2 (en) Data transmission method, and relevant device and system
US9686506B2 (en) Method, apparatus, system, and storage medium for video call and video call control
US9166987B2 (en) Preventing identity fraud for instant messaging
US10516635B2 (en) Systems and methods for supplementing real-time exchanges of instant messages with automatically updateable content
US9083693B2 (en) Managing private information in instant messaging
WO2022041731A1 (en) Message pushing method and apparatus, and electronic device
WO2011144167A1 (en) Method, device and system for instant messaging
CN111130986B (en) Message sending method, device, equipment and storage medium
US11954396B2 (en) Screen projection status determining method and apparatus
WO2023093325A1 (en) Method and apparatus for adding friend, and server and storage medium
US20140201293A1 (en) Choosing a service to provide a message
US8909718B2 (en) Methods and systems for incorporating a third user into an instant message session
US9716796B2 (en) Managing communication events
CN109768918B (en) Method and apparatus for implementing instant messaging
CN112235412A (en) Message processing method and device
WO2016149312A1 (en) Information sharing control
US9397966B2 (en) Group message relay
WO2018209462A1 (en) Mail management method and mail server
WO2018205073A1 (en) Method for reminding about email and email server
CN114390239A (en) Communication method, device, system, electronic device, and storage medium
US8856254B2 (en) Providing a collaborative status message in an instant messaging system
CN113014404A (en) Message transmission method and device, server and second client
CN104580070A (en) Method, device and system for confirming network conversations

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22897410

Country of ref document: EP

Kind code of ref document: A1