WO2023093325A1 - Procédé et appareil d'ajout d'ami, serveur et support de stockage - Google Patents

Procédé et appareil d'ajout d'ami, serveur et support de stockage 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
English (en)
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/fr

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

La présente demande divulgue un procédé et un appareil d'ajout d'un ami, un serveur et un support de stockage. Le procédé d'ajout d'un ami comprend : la réception d'une première demande d'ajout d'ami, qui est envoyée par un premier terminal d'utilisateur, la première demande d'ajout d'ami transportant des informations de communication ; s'il n'y a pas de second compte d'utilisateur correspondant aux informations de communication, l'envoi d'informations d'invitation à un second terminal d'utilisateur sur la base des informations de communication, les informations d'invitation étant utilisées pour donner l'ordre au second terminal d'utilisateur d'enregistrer un second compte d'utilisateur d'une application cible sur la base d'une liaison de téléchargement vers l'aval qui est transportée dans les informations d'invitation ; lorsque le second compte d'utilisateur est présent, l'envoi de la première demande d'ajout d'ami au second terminal d'utilisateur ; et en réponse à la réception d'informations d'indication cibles qui sont renvoyées par le second terminal d'utilisateur, l'établissement, dans l'application cible, d'une relation d'ami entre un premier compte d'utilisateur, qui correspond au premier terminal d'utilisateur, et le second compte d'utilisateur, les informations d'indication cibles étant utilisées pour indiquer que le second terminal d'utilisateur accepte la première demande d'ajout d'ami. Au moyen du procédé, l'ajout d'un ami non enregistré peut être réalisé.
PCT/CN2022/124353 2021-11-29 2022-10-10 Procédé et appareil d'ajout d'ami, serveur et support de stockage WO2023093325A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111435620.4A CN114157622B (zh) 2021-11-29 2021-11-29 添加好友的方法、装置、服务器及存储介质
CN202111435620.4 2021-11-29

Publications (1)

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

Family

ID=80454426

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/124353 WO2023093325A1 (fr) 2021-11-29 2022-10-10 Procédé et appareil d'ajout d'ami, serveur et support de stockage

Country Status (2)

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

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114157622B (zh) * 2021-11-29 2024-03-19 杭州逗酷软件科技有限公司 添加好友的方法、装置、服务器及存储介质

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025657A (zh) * 2010-12-23 2011-04-20 北京开心人信息技术有限公司 一种利用email邀请好友加入社交网络的方法与系统
CN102082740A (zh) * 2010-12-29 2011-06-01 北京开心人信息技术有限公司 一种通过邀请链接方式添加好友的方法及系统
CN102196384A (zh) * 2011-05-18 2011-09-21 陈善真 基于蜂窝移动通讯网络和ip网络的自动切换系统及方法
CN105278972A (zh) * 2014-06-19 2016-01-27 南京微特喜网络科技有限公司 一种通过动态安装包快速让用户成为好友的系统和方法
CN106027377A (zh) * 2016-06-30 2016-10-12 珠海市魅族科技有限公司 建立社交关系的方法及装置
CN106101194A (zh) * 2016-05-31 2016-11-09 腾讯科技(深圳)有限公司 一种加入群组的方法及服务器
WO2017063142A1 (fr) * 2015-10-13 2017-04-20 深圳还是威健康科技有限公司 Procédé, terminal et serveur d'enregistrement de compte
CN110971757A (zh) * 2019-11-22 2020-04-07 珠海格力电器股份有限公司 一种从电话应用中添加微信好友的方法及装置
CN114157622A (zh) * 2021-11-29 2022-03-08 杭州逗酷软件科技有限公司 添加好友的方法、装置、服务器及存储介质

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 (zh) * 2010-08-04 2012-03-14 腾讯科技(深圳)有限公司 一种向即时通讯用户推荐联系人信息的方法和终端
CN101986674A (zh) * 2010-09-17 2011-03-16 中兴通讯股份有限公司 一种通过移动通信终端邀请社交网站好友的方法及装置
CN104572073A (zh) * 2014-12-03 2015-04-29 贵阳朗玛信息技术股份有限公司 好友添加方法及装置
CN105049319B (zh) * 2015-05-25 2018-09-18 腾讯科技(深圳)有限公司 好友添加方法及系统、客户端及服务器
CN106254206A (zh) * 2015-06-11 2016-12-21 阿里巴巴集团控股有限公司 一种信息处理方法和设备
CN111614549B (zh) * 2020-05-21 2022-05-31 腾讯科技(深圳)有限公司 交互处理方法、装置、计算机设备及存储介质
CN112702257B (zh) * 2020-12-11 2022-10-11 上海掌门科技有限公司 一种删除好友申请的方法与设备

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025657A (zh) * 2010-12-23 2011-04-20 北京开心人信息技术有限公司 一种利用email邀请好友加入社交网络的方法与系统
CN102082740A (zh) * 2010-12-29 2011-06-01 北京开心人信息技术有限公司 一种通过邀请链接方式添加好友的方法及系统
CN102196384A (zh) * 2011-05-18 2011-09-21 陈善真 基于蜂窝移动通讯网络和ip网络的自动切换系统及方法
CN105278972A (zh) * 2014-06-19 2016-01-27 南京微特喜网络科技有限公司 一种通过动态安装包快速让用户成为好友的系统和方法
WO2017063142A1 (fr) * 2015-10-13 2017-04-20 深圳还是威健康科技有限公司 Procédé, terminal et serveur d'enregistrement de compte
CN106101194A (zh) * 2016-05-31 2016-11-09 腾讯科技(深圳)有限公司 一种加入群组的方法及服务器
CN106027377A (zh) * 2016-06-30 2016-10-12 珠海市魅族科技有限公司 建立社交关系的方法及装置
CN110971757A (zh) * 2019-11-22 2020-04-07 珠海格力电器股份有限公司 一种从电话应用中添加微信好友的方法及装置
CN114157622A (zh) * 2021-11-29 2022-03-08 杭州逗酷软件科技有限公司 添加好友的方法、装置、服务器及存储介质

Also Published As

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

Similar Documents

Publication Publication Date Title
US10484533B2 (en) Messaging interface based on caller of an incoming call
CN108306810B (zh) 一种群组组建方法、服务器及终端
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 (fr) Procédé et appareil de poussée de message, et dispositif électronique
WO2011144167A1 (fr) Procédé, dispositif et système de messagerie instantanée
CN111130986B (zh) 消息发送方法、装置、设备及存储介质
US11954396B2 (en) Screen projection status determining method and apparatus
WO2023093325A1 (fr) Procédé et appareil d'ajout d'ami, serveur et support de stockage
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
WO2023284630A1 (fr) Procédé et appareil d'ajout d'image d'émoticône, dispositif, et support de stockage
CN109768918B (zh) 用于实现即时消息通信的方法和装置
CN112235412A (zh) 消息处理方法和装置
WO2016149312A1 (fr) Gestion de partage d'informations
US9397966B2 (en) Group message relay
WO2018209462A1 (fr) Procédé de gestion de courrier et serveur de courrier
CN114390239A (zh) 通信方法、装置、系统、电子设备以及存储介质
US8856254B2 (en) Providing a collaborative status message in an instant messaging system
CN113014404A (zh) 一种消息传输方法、装置、服务器以及第二客户端
CN104580070A (zh) 网络会话确认方法、装置及系统

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