CN110990723A - Friend recommendation method, device, equipment and storage medium - Google Patents

Friend recommendation method, device, equipment and storage medium Download PDF

Info

Publication number
CN110990723A
CN110990723A CN201911340092.7A CN201911340092A CN110990723A CN 110990723 A CN110990723 A CN 110990723A CN 201911340092 A CN201911340092 A CN 201911340092A CN 110990723 A CN110990723 A CN 110990723A
Authority
CN
China
Prior art keywords
target
player
recommendation
recommended
group
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911340092.7A
Other languages
Chinese (zh)
Inventor
吴双
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Mihoyo Tianming Technology Co Ltd
Original Assignee
Shanghai Mihoyo Tianming Technology Co Ltd
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 Shanghai Mihoyo Tianming Technology Co Ltd filed Critical Shanghai Mihoyo Tianming Technology Co Ltd
Priority to CN201911340092.7A priority Critical patent/CN110990723A/en
Publication of CN110990723A publication Critical patent/CN110990723A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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

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)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a friend recommendation method, a friend recommendation device, friend recommendation equipment and a storage medium. The method comprises the following steps: determining a target group which the target player joins based on the attribute information of the target player; the server determines the target recommendation weight of the player to be recommended based on the recommended times of the player to be recommended in the target group; when the server receives friend recommendation request information of a target player, the server determines a target recommendation friend corresponding to the target player in the target group based on the friend recommendation request information and the target recommendation weight, and recommends the target recommendation friend to the target player. The effect of quickly recommending friends with equivalent strength is achieved.

Description

Friend recommendation method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the internet social technology, in particular to a friend recommendation method, a friend recommendation device, friend recommendation equipment and a storage medium.
Background
Social interaction is another major requirement of people to deal with eating, staying and walking, and in recent years, people-centric online social systems have been developed greatly, such as facebook, QQ, WeChat, and the like.
The most important base of the social function is to recommend friends to friends, which is particularly obvious in games, players who are in the same way know and communicate with each other, and the friends are happy and grow, but because the conditions of the recommended friends are large in difference with the players, the friends are difficult to cooperate, and the friends are difficult to experience the interest of group cooperation.
Disclosure of Invention
The embodiment of the invention provides a friend recommendation method, a friend recommendation device, friend recommendation equipment and a storage medium, and aims to achieve the effect of quickly recommending friends with equivalent strength.
In a first aspect, an embodiment of the present invention provides a friend recommendation method, where the method includes:
determining a target group which the target player joins based on the attribute information of the target player;
the server determines the target recommendation weight of the player to be recommended based on the recommended times of the player to be recommended in the target group;
when the server receives friend recommendation request information of a target player, the server determines a target recommendation friend corresponding to the target player in the target group based on the friend recommendation request information and the target recommendation weight, and recommends the target recommendation friend to the target player.
In a second aspect, an embodiment of the present invention further provides a friend recommendation device, where the friend recommendation device includes:
the target group determining module is used for determining a target group added by a target player based on the attribute information of the target player;
the target recommendation weight determining module is used for determining the target recommendation weight of the player to be recommended by the server based on the recommended times of the player to be recommended in the target group;
and the target recommendation friend determining module is used for determining a target recommendation friend corresponding to the target player in the target group based on the friend recommendation request information and the target recommendation weight when the server receives friend recommendation request information of the target player and recommending the target recommendation friend to the target player.
In a third aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the friend recommendation method in any of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are used to execute any one of the friend recommendation methods in the embodiments of the present invention when executed by a computer processor.
According to the technical scheme, the target group added by the target player is determined based on the attribute information of the target player, the target recommendation weight of the player to be recommended is determined by the server based on the recommended times of the player to be recommended in the target group, and when the server receives friend recommendation request information of the target player, the server determines the target recommendation friend corresponding to the target player in the target group based on the friend recommendation request information and the target recommendation weight and recommends the target recommendation friend to the target player. The effect of quickly recommending friends with equivalent strength is achieved.
Drawings
Fig. 1 is a flowchart of a friend recommendation method in a first embodiment of the present invention;
FIG. 2 is a flowchart of a friend recommendation method in a second embodiment of the present invention;
fig. 3 is an execution flowchart of a friend recommendation method in a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a friend recommendation device in a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a friend recommendation method according to an embodiment of the present invention, where the method is applicable to a situation of recommending game friends with a similar strength, and the method may be executed by a friend recommendation device, where the friend recommendation device may be implemented by software and/or hardware, and the friend recommendation device may be configured on a computing device, and specifically includes the following steps:
s110, determining a target group added by the target player based on the attribute information of the target player.
For example, the attribute information may be at least one of an account level, a credit, a charge, and the like of the target player, and the target group may be a group to which the target player is to join. The target group to which the target player joins may be determined according to the attribute information of the target player, for example, the target group to which the target player a should join may be determined according to the account rating of the target player a, for example, there are 3 groups in the game application, and the 3 groups are: the first group is players with account number level of 0-1, the second group is players with account number level of 2-4, the third group is players with account number level of 5 and above 5, if the account number level of the target player A is 2, the target player A should join the second group, and the second group is the target group of the target player A.
In the technical scheme of the embodiment, the target group added by the target player is determined according to the attribute information of the target player, so that the method has the advantages that friends with the strength equivalent to that of the target player can be recommended for the target player from the target group when the follow-up target player needs to recommend friends according to the target group added by the target player, so that the enjoyment of group cooperation can be experienced better together with the friends with the strength equivalent to that of the target player, and good user experience is provided.
S120, the server determines the target recommendation weight of the player to be recommended based on the recommended times of the player to be recommended in the target group.
For example, the target recommendation weight may be how many times the player to be recommended has been recommended. The server may determine the target recommendation weight of the player to be recommended based on the number of times that the player to be recommended is recommended in the target group, and optionally, when it is detected that the player to be recommended is recommended, the server may increase the recommendation weight once on the basis of the initial recommendation weight of the player to be recommended, and determine the recommendation weight as the target recommendation weight. For example, the initial recommendation weight of one player B to be recommended is 1, when it is detected that the player B to be recommended is recommended, the recommendation weight is increased once (i.e., 1+1 — 2) on the basis of the initial recommendation weight of the player B to be recommended, so as to obtain the target recommendation weight of the player B to be recommended, that is, the target recommendation weight of the player B to be recommended is 2 times. It may be specified that a new player just joins any group, the initial recommendation weight of the new player is 0 times, or may be 1 time, and after a specific new player joins a target group, the initial recommendation weight of the new player is what, which may be set according to the user's needs, and is not limited herein.
S130, when the server receives friend recommendation request information of a target player, the server determines a target recommendation friend corresponding to the target player in the target group based on the friend recommendation request information and the target recommendation weight, and recommends the target recommendation friend to the target player.
For example, the friend recommendation request information may be a friend recommendation request for requesting to recommend friends by a target player, where the friend recommendation request information may include information such as the number of friends requested to be recommended by the target player. The target recommendation friend may be a friend recommended to the target player by the server in the target group to which the target player belongs according to the recommendation friend request of the target player and the target recommendation weight of the player to be recommended.
In the technical scheme of the embodiment, when the server receives friend recommendation request information of a target player, according to the friend recommendation request information and the target recommendation weight of a player to be recommended, target recommendation friends recommended to the target player are determined in a target group to which the target player belongs, and the target recommendation friends are recommended to the target player.
Optionally, the server may further obtain an online time length of the player within a preset time according to the received update request, when the online time length of the player within the preset time is smaller than a preset time threshold, the server determines that the player is an inactive player, and the server removes the inactive players in each group based on the received update request.
For example, the update request may be a request to exclude inactive players in each group, because when recommending friends to the target player, friends that are online and can often play together are generally recommended, and therefore, for an inactive player in each group, the inactive player is excluded from the group to which the inactive player belongs. Alternatively, the update request may be received by the server periodically, a timer may be set in the server, and a time may be set, so that the server may periodically remove the inactive players in each group.
Alternatively, the determination of the inactive player may be to acquire an online time period of the player within a preset time, and determine whether the player is an inactive player by comparing whether the online time period of the player within the preset time is less than a preset time threshold.
For example, the preset time may be a time set by a user according to a requirement, and may be a day or a week, which is not limited herein. The online time period may be how long the players have been online together within a preset time. The preset time threshold may also be a time threshold within a preset time set by a user according to a requirement, and may be 2 hours online in one day, or 2 days online accumulated in one week (i.e. 48 hours). Determining whether the player is an inactive player by comparing whether the online time of the player in the preset time is less than a preset time threshold, and if the online time of the player in the preset time is less than the preset time threshold, determining that the player is an inactive player and removing the player from the group; and if the online time of the player in the preset time is greater than or equal to the preset time threshold, determining that the player is an active player, and reserving the player to the current group. For example, the preset time is 1 day, the preset time threshold is 2 hours, if the online time of a certain player in the first group within 1 day is half an hour, and the online time is less than the preset time threshold, it is determined that the player is an inactive player, and the player is removed from the first group; and if the online time of one player in the first group within 1 day is 3 hours and the online time is greater than a preset time threshold, determining that the player is an active player and keeping the player in the first group.
In the technical scheme of the embodiment, the server may further obtain an online time of the player within a preset time according to the received update request, when the online time of the player within the preset time is smaller than a preset time threshold, the server determines that the player is an inactive player, and the server removes the inactive players in each group based on the received update request.
Optionally, the server may further obtain attribute information of the player according to the received group update request, and when the attribute information of the player does not match the group to which the player belongs, remove the target player from the current group, and place the target player in the group matching the attribute information of the target player.
For example, the group update request may be a request by the target player to update the group. The attribute information may be at least one of an account level, points, and a charge of the target player. Because the account level of the target player may change during the playing process of the target player, the account level of the target player may not be consistent with the group to which the target player currently belongs, and the target player is removed from the currently-belonging group and placed into the group consistent with the attribute information of the target player. Optionally, the group update request may be received by the server at regular time, a timer may be set in the server, and a time may be set, so that the server may update the group to which the player joins at regular time. For example, there are 3 groups in the game application, and the 3 groups are: the first group is players with account grades of 0-1, the second group is players with account grades of 2-4, the third group is players with account grades of 5 and above 5, the initial account grade of the target player C is 4, the target player C belongs to the second group, and after a period of time, the account grade of the target player C is upgraded to 5, and the target player C is removed from the second group and put into the 3 rd group by the server.
In the technical scheme of the embodiment, the server can also obtain the attribute information of the player according to the received group updating request, and when the attribute information of the player does not accord with the group to which the player belongs, the target player is removed from the current group and is placed into the group which accords with the attribute information of the target player.
According to the technical scheme of the embodiment of the invention, the target group added by the target player is determined according to the attribute information of the target player, so that friends with the strength equivalent to that of the target player can be recommended for the target player from the target group when the follow-up target player needs to recommend friends according to the target group added by the target player, and therefore, the enjoyment of group cooperation can be experienced better and good user experience is provided together with the friends with the strength equivalent to that of the target player. The server determines the target recommendation weight of the player to be recommended based on the recommended times of the player to be recommended in the target group, so that the subsequent server recommends friends for the target player according to the target recommendation weight of the player to be recommended. When the server receives friend recommendation request information of a target player, target recommendation friends recommended to the target player are determined in a target group to which the target player belongs according to the friend recommendation request information and target recommendation weights of players to be recommended, and the target recommendation friends are recommended to the target player. The server can also obtain the online time of the player in the preset time according to the received updating request, when the online time of the player in the preset time is smaller than a preset time threshold value, the server determines that the player is an inactive player, and the server removes the inactive players in each group based on the received updating request, so that the condition that friends are not online when the friends recommended to the target player are inactive players can be avoided, and the game playing experience of the target player is influenced. The server can also acquire the attribute information of the player according to the received group updating request, and when the attribute information of the player does not accord with the group to which the player belongs, the target player is removed from the current group and is placed into the group which accords with the attribute information of the target player, so that the player who does not accord with the group to which the target player belongs can be moved to the group which accords with the attribute information of the player, and therefore, the real-time recommended friends of the player are all friends with the same strength in the game playing process, and the interest of the game experience of the player is increased.
Example two
Fig. 2 is a flowchart of a friend recommendation method according to a second embodiment of the present invention, where the second embodiment of the present invention is further detailed on the basis of the foregoing embodiment, and specifically includes the following steps:
s210, determining a target group added by the target player based on the attribute information of the target player.
S220, the server determines the target recommendation weight of the player to be recommended based on the recommended times of the player to be recommended in the target group.
S230, the server ranks the players to be recommended based on the minimum heap and the target recommendation weight.
For example, the minimum heap may be to sort the target data or target information in order from small to large. And the server sorts the players to be recommended according to the minimum heap and the target recommendation weight in the order from small to large. For example, a player to be recommended 1, a player to be recommended 2, a player to be recommended 3, and a player to be recommended 4 of a group are provided, wherein target recommendation weights of the player to be recommended 1, the player to be recommended 2, the player to be recommended 3, and the player to be recommended 4 are 3 times, 5 times, 0 times, and 2 times, respectively, and then the player to be recommended 1, the player to be recommended 2, the player to be recommended 3, and the player to be recommended 4 are arranged in the order of their target recommendation weights from small to large according to the minimum heap, and then the order after arrangement is: the player to be recommended 3-the player to be recommended 4-the player to be recommended 1-the player to be recommended 2. Therefore, the target recommendation weight sequence of each player to be recommended can be clearly known, and friends can be recommended to the target players according to the sequence.
S240, when the server receives friend recommendation request information of a target player, the server determines target recommendation friends corresponding to the target player according to the friend recommendation request information and the target recommendation weights from small to large, and recommends the target recommendation friends to the target player.
Illustratively, when the server receives friend recommendation request information of a target player, the server determines target recommendation friends corresponding to the target player according to the sequence of the target recommendation weights from small to large, and recommends the target recommendation friends to the target player.
Optionally, before the server determines the target recommendation friends corresponding to the target player in the order from small to large of the target recommendation weight, the server may determine whether the number of players to be recommended in the target group is greater than or equal to the request recommendation number of the friends requested to be recommended by the target player based on the friend recommendation request information and the target recommendation weight. If the number of the players to be recommended in the target group is larger than or equal to the request recommending number, the server selects the players to be recommended, which are not less than the request recommending number, from the target group in the order of the target recommending weight from small to large as target recommending friends, and recommends the target recommending friends to the target players.
For example, the requested recommendation number may be the number of friends requested to be recommended by the target player. Referring to an execution flow chart of a friend recommendation method shown in fig. 3, after determining a target group to which a target player joins according to attribute information of the target player, determining a target recommendation weight of the player to be recommended based on the recommended times of the players to be recommended in the target group, sorting the players to be recommended based on a minimum heap and the target recommendation weight, when the server receives friend recommendation request information, the server determines whether the number of the players to be recommended in the target group is greater than or equal to a request recommendation number of friends requested to be recommended by the target player according to the friend recommendation request information and the target recommendation weight, and when the number of the players to be recommended in the target group is greater than or equal to the request recommendation number, the server selects the players to be recommended not less than the request recommendation number from the target group in the order of the target recommendation weight from small to large, and recommending the target recommended friends to the target player. For example, the target group to which the target player belongs is a second group, 4 players to be recommended in the group, namely, a recommended player 1, a player 2 to be recommended, a player 3 to be recommended and a player 4 to be recommended, are players to be recommended, and the 4 players to be recommended are ranked according to their target recommendation weights from small to large as follows: the method comprises the steps that a player to be recommended 3, a player to be recommended 4, a player to be recommended 1, a player to be recommended 2 are received, friend recommendation request information of a target player is received, the information mentions that the target player wants to recommend 2 friends, the server judges that the number of the players to be recommended in a second group is larger than the recommendation request number (namely 4>2), the server selects the players to be recommended not less than the recommendation request number from the second group in the order of target weight from small to large as target recommendation friends and recommends the target players to the target player, namely, the player to be recommended 3 and the player to be recommended 4 in the second group can be taken as the target recommendation friends and recommended to the target player, the players to be recommended can also be taken as the target recommendation players, the numbers of the players to be recommended are more than the recommendation request, for example, the player to be recommended 3, the player to be recommended 4, specifically, the number of the players to be recommended is equal to the requested recommendation number, or the number of the players to be recommended is not less than the requested recommendation number, which can be set by the user according to the user requirement, and is not limited here.
Optionally, when the number of the players to be recommended in the target group is smaller than the request recommendation number, the server calculates a difference between the request recommendation number and the number of the players to be recommended in the target group; the server determines the adjacent group of the target group according to the attribute information of the players, selects the players to be recommended with the number not less than the difference value from the adjacent group according to the sequence of the target recommendation weight from small to large, and selects the players to be recommended with the number not less than the difference value from the adjacent group according to the sequence of the target recommendation weight from small to large as well as the players to be recommended in the target group to be used as the target recommendation players.
For example, the target group may be a group adjacent to the target group to which the target player belongs, for example, the target group to which the target player joins is the second group, and then the first group and the third group are adjacent groups of the target group to which the target player belongs. When the number of the players to be recommended in the target group is smaller than the request recommendation number, the server calculates the difference between the request recommendation number and the number of the players to be recommended in the target group, selects the players to be recommended not less than the difference from the adjacent group according to the sequence of the target recommendation weights from small to large, and selects the players to be recommended not less than the difference from the adjacent group according to the sequence of the target recommendation weights from small to large to jointly serve as the target recommendation players. For example, the account rating of the target player is 4, the target group to which the target player belongs is a second group, 4 players to be recommended in the group, namely, the recommended player B1, the player B2 to be recommended, the player B3 to be recommended and the player B4 to be recommended, are ranked from small to large according to the target recommendation weights as follows: to-be-recommended player B3-to-be-recommended player B4-to-be-recommended player B1-to-be-recommended player B2; the adjacent groups of the second group are a first group and a third group, wherein 4 players to be recommended A1, A2, A3 and A4 of the players to be recommended in the first group are players to be recommended, and the 4 players to be recommended are ranked from small to large according to their target recommendation weights as follows: to-be-recommended player A2-to-be-recommended player A4-to-be-recommended player A3-to-be-recommended player A1; the player to be recommended C1, the player to be recommended C2 and the player to be recommended C3 in the third group total 3 players to be recommended, and the 3 players to be recommended are ranked from small to large according to the target recommendation weights: player to be recommended C2-player to be recommended C1-player to be recommended C3. Now, friend recommendation request information of a target player is received, wherein the information mentions that the target player wants to recommend 6 friends, the server judges that the number of players to be recommended in the second group is smaller than the recommendation request number (namely 4<6), the server selects the players to be recommended in the target group and the players to be recommended in the target group which are not less than the difference number from the adjacent group according to the sequence of the target recommendation weights from small to large, and the players to be recommended are jointly used as target recommendation players, namely, the player to be recommended A2 and the player to be recommended A4 in the first group, the player to be recommended B3, the player to be recommended B4, the player to be recommended B1 and the player to be recommended B2 in the second group are selected together as target friend recommendations to be recommended to the target player; the player C2 to be recommended and the player C1 to be recommended can be selected from the third group, and are recommended to the target player together with the player B3 to be recommended, the player B4 to be recommended, the player B1 to be recommended and the player B2 to be recommended in the second group.
It should be noted that, here, the to-be-recommended players not less than the difference number are selected from the adjacent groups in the order from small to large according to the target recommendation weight, a group of adjacent groups may be randomly selected from the adjacent groups of the target group, that is, when the target group is the second group, a group may be randomly selected from the first group or the third group, and the to-be-recommended players not less than the difference number are selected from the group in the order from small to large according to the target recommendation weight. Or, according to the attribute information of the target player, selecting one of the neighboring groups close to the attribute information of the target player, for example, there are 3 groups in the game application, where the 3 groups are: the method comprises the steps that a first group is players with account grades of 0-1, a second group is players with account grades of 2-4, a third group is players with account grades of 5 and above 5, if the account grade of a target player is 2, the target player belongs to the second group, the first group is close to the account grade of the target player, the number of players to be recommended is not less than the difference value, the number of the players to be recommended is selected from the first group according to the sequence of the target recommendation weight from small to large, if the account grade of the target player is 4, the target player belongs to the second group, the number of the players to be recommended is close to the account grade of the target player, the number of the players to be recommended is not less than the difference value, the number of the players to be recommended is selected from the third group according to the sequence of the target recommendation weight from small to large, if the account grade of the target player is 3, the second group belongs to the first group and the third group of the adjacent group are the same as the account grade of the target player, and the number of To be recommended. Specifically, how the server selects one group from the adjacent groups, the to-be-recommended players with the number not less than the difference value are selected from the group according to the sequence of the target recommendation weight from small to large, and the number can be set according to the user requirements, which is not limited herein.
In the technical solution of the above embodiment, when the server receives the friend recommendation request information of the target player, the server may determine the target recommended friends corresponding to the target player according to the comparison result between the number of the players to be recommended in the target group and the request recommendation number of the friends requested to be recommended by the target player.
According to the technical scheme of the embodiment of the invention, the server ranks the players to be recommended based on the minimum heap and the target recommendation weight, so that the order of the target recommendation weight of each player to be recommended can be known clearly, and friends can be recommended to the target players according to the order. When the server receives friend recommendation request information of a target player, the server can determine the target recommendation friends corresponding to the target player according to the comparison result of the number of the players to be recommended in the target group and the recommendation request number of the friends requested to be recommended by the target player.
EXAMPLE III
Fig. 4 is a schematic structural diagram of a friend recommendation device according to a third embodiment of the present invention, and as shown in fig. 4, the device includes: a target group determining module 31, a target recommendation weight determining module 32 and a target recommendation friend determining module 33.
The target group determining module 31 is configured to determine a target group to which a target player joins based on attribute information of the target player;
the target recommendation weight determining module 32 is configured to determine, by the server, a target recommendation weight of a player to be recommended based on the recommended times of the players in the target group;
and a target recommended friend determining module 33, configured to, when the server receives friend recommendation request information of a target player, determine, by the server, a target recommended friend corresponding to the target player in the target group based on the friend recommendation request information and the target recommendation weight, and recommend the target recommended friend to the target player.
In the technical solution of the above embodiment, the target recommendation weight determining module 32 includes:
a target recommendation weight unit, configured to, when it is detected that a player to be recommended is recommended, increase a recommendation weight once on the basis of an initial recommendation weight of the player to be recommended, and determine the target recommendation weight as the target recommendation weight
On the basis of the technical scheme of the embodiment, the device further comprises:
the ranking module is used for ranking the players to be recommended by the server based on the minimum heap and the target recommendation weight;
correspondingly, in the technical solution of the above embodiment, the target recommended friend determining module 33 includes:
and the target recommendation friend unit is used for determining the target recommendation friends corresponding to the target player according to the target recommendation weight from small to large by the server based on the friend recommendation request information.
In the technical solution of the above embodiment, the target friend recommendation determining module 33 further includes:
a determining unit, configured to determine, by the server, whether the number of the to-be-recommended players in the target group is greater than or equal to a recommended number of requests of friends requested to be recommended by the target player based on the friend recommendation request information and the target recommendation weight;
and the first determining unit is used for selecting the players to be recommended from the target group not less than the requested recommendation quantity as the target recommendation friends according to the target recommendation weight from small to large by the server if the quantity of the players to be recommended in the target group is greater than or equal to the requested recommendation quantity.
In the technical solution of the above embodiment, the target friend recommendation determining module 33 further includes:
a difference value calculating unit, configured to, when the number of players to be recommended in the target group is smaller than the request recommendation number, calculate, by the server, a difference value between the request recommendation number and the number of players to be recommended in the target group;
the second determining unit is used for determining an adjacent group of the target group according to attribute information of players, selecting no less than the difference number of players to be recommended from the adjacent group according to the sequence of the target recommendation weight from small to large, and selecting no less than the difference number of players to be recommended from the adjacent group according to the sequence of the target recommendation weight from small to large and the players to be recommended from the target group as the target recommended players.
On the basis of the technical scheme of the embodiment, the device further comprises:
and the removing module is used for receiving the updating request by the server and removing the inactive players in each group based on the updating request.
In the technical solution of the above embodiment, the eliminating module includes:
an online time length obtaining unit, configured to obtain, by the server, an online time length of the player within a preset time;
an inactive player determination unit, configured to determine that the player is the inactive player when an online duration of the player within a preset time is less than a preset time threshold;
a culling unit for culling the inactive players in each group by the server based on the update request.
The friend recommendation device provided by the embodiment of the invention can execute the friend recommendation method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 5 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention, as shown in fig. 5, the apparatus includes a processor 40, a memory 41, an input device 42, and an output device 43; the number of processors 40 in the device may be one or more, and one processor 40 is taken as an example in fig. 5; the processor 40, the memory 41, the input device 42 and the output device 43 in the apparatus may be connected by a bus or other means, which is exemplified in fig. 5.
The memory 41, which is a computer-readable storage medium, may be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules (e.g., the target group determination module 31, the target recommendation weight determination module 32, and the target recommendation friend determination module 33) corresponding to the friend recommendation method in the embodiments of the present invention. The processor 40 executes various functional applications and data processing of the device by executing software programs, instructions and modules stored in the memory 41, that is, implements the friend recommendation method described above.
The memory 41 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 41 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 41 may further include memory located remotely from processor 40, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 42 is operable to receive input numeric or character information and to generate key signal inputs relating to user settings and function controls of the apparatus. The output device 43 may include a display device such as a display screen.
EXAMPLE five
The fifth embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are used for executing a friend recommendation method.
Of course, the storage medium containing the computer-executable instructions provided in the embodiments of the present invention is not limited to the above-described method operations, and may also perform related operations in the friend recommendation method provided in any embodiments of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the friend recommendation device, each included unit and module are only divided according to functional logic, but are not limited to the above division, as long as corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A friend recommendation method is characterized by comprising the following steps:
determining a target group which the target player joins based on the attribute information of the target player;
the server determines the target recommendation weight of the player to be recommended based on the recommended times of the player to be recommended in the target group;
when the server receives friend recommendation request information of a target player, the server determines a target recommendation friend corresponding to the target player in the target group based on the friend recommendation request information and the target recommendation weight, and recommends the target recommendation friend to the target player.
2. The method of claim 1, wherein determining the target recommendation weight of the player to be recommended based on the recommended times of the players in the target group comprises:
when it is detected that the player to be recommended is recommended, adding a recommendation weight once on the basis of the initial recommendation weight of the player to be recommended, and determining the recommendation weight as the target recommendation weight.
3. The method of claim 1, wherein after determining the target recommendation weight of the player to be recommended based on the number of times the player to be recommended in the target group is recommended, the method further comprises:
the server ranks the players to be recommended based on the minimum heap and the target recommendation weight;
correspondingly, the server determines a target recommendation friend corresponding to the target player based on the friend recommendation request information and the target recommendation weight, and the method includes:
and the server determines target recommendation friends corresponding to the target players according to the target recommendation weights from small to large on the basis of the friend recommendation request information.
4. The method of claim 1 or 4, wherein the server determines a target recommendation friend corresponding to the target player in the target group based on the friend recommendation request information and the target recommendation weight, and comprises:
the server judges whether the number of the players to be recommended in the target group is greater than or equal to the request recommending number of the friends requested to be recommended by the target player or not based on the friend recommending request information and the target recommending weight;
and if the number of the players to be recommended in the target group is greater than or equal to the recommendation request number, the server selects the players to be recommended, the number of which is not less than the recommendation request number, from the target group in the descending order of the target recommendation weight, as the target recommendation friends.
5. The method of claim 4, further comprising:
when the number of the players to be recommended in the target group is smaller than the request recommendation number, the server calculates the difference between the request recommendation number and the number of the players to be recommended in the target group;
the server determines an adjacent group of the target group according to attribute information of players, selects players to be recommended not less than the difference number from the adjacent group according to the sequence of the target recommendation weight from small to large, and selects the players to be recommended not less than the difference number from the adjacent group according to the sequence of the target recommendation weight from small to large and the players to be recommended in the target group to be used as the target recommendation players together.
6. The method of claim 1, further comprising:
the server receives an update request and rejects inactive players in the groups based on the update request.
7. The method of claim 6, wherein the server culling inactive players from the groups based on the update request comprises:
the server acquires the online time of the player in preset time;
when the online time of the player in a preset time is less than a preset time threshold, the server determines that the player is the inactive player;
the server culling the inactive players in the groups based on the update request.
8. A friend recommendation apparatus, comprising:
the target group determining module is used for determining a target group added by a target player based on the attribute information of the target player;
the target recommendation weight determining module is used for determining the target recommendation weight of the player to be recommended by the server based on the recommended times of the player to be recommended in the target group;
and the target recommendation friend determining module is used for determining a target recommendation friend corresponding to the target player in the target group based on the friend recommendation request information and the target recommendation weight when the server receives friend recommendation request information of the target player and recommending the target recommendation friend to the target player.
9. An apparatus, characterized in that the apparatus comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the friend recommendation method of any of claims 1-7.
10. A storage medium containing computer-executable instructions, which when executed by a computer processor, operate to perform the friend recommendation method of any of claims 1-7.
CN201911340092.7A 2019-12-23 2019-12-23 Friend recommendation method, device, equipment and storage medium Pending CN110990723A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911340092.7A CN110990723A (en) 2019-12-23 2019-12-23 Friend recommendation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911340092.7A CN110990723A (en) 2019-12-23 2019-12-23 Friend recommendation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110990723A true CN110990723A (en) 2020-04-10

Family

ID=70075679

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911340092.7A Pending CN110990723A (en) 2019-12-23 2019-12-23 Friend recommendation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110990723A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103327400A (en) * 2012-03-22 2013-09-25 鸿富锦精密工业(深圳)有限公司 Customer premise equipment and method for creating social video channel
CN103970850A (en) * 2014-05-04 2014-08-06 广州品唯软件有限公司 Website information recommending method and system
CN104156392A (en) * 2014-07-09 2014-11-19 中电科华云信息技术有限公司 Personalized recommendation method and system for friends and applications
CN106557938A (en) * 2015-09-24 2017-04-05 网易(杭州)网络有限公司 The method for pushing of virtual objects in a kind of game
CN106730850A (en) * 2016-12-16 2017-05-31 网易(杭州)网络有限公司 Game partners matching process and device
CN107977411A (en) * 2017-11-21 2018-05-01 腾讯科技(成都)有限公司 Group recommending method, device, storage medium and server
CN108066989A (en) * 2016-11-18 2018-05-25 腾讯科技(深圳)有限公司 A kind of random fit organizing method, device and application server
CN109088738A (en) * 2017-06-14 2018-12-25 阿里巴巴集团控股有限公司 The method, device and equipment of information push
CN109859064A (en) * 2019-01-31 2019-06-07 北京俩俩科技有限公司 Friend recommendation method and system based on hail fellow relationship
CN110193202A (en) * 2019-05-31 2019-09-03 重庆誉存大数据科技有限公司 A kind of matching connection method and system between client

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103327400A (en) * 2012-03-22 2013-09-25 鸿富锦精密工业(深圳)有限公司 Customer premise equipment and method for creating social video channel
CN103970850A (en) * 2014-05-04 2014-08-06 广州品唯软件有限公司 Website information recommending method and system
CN104156392A (en) * 2014-07-09 2014-11-19 中电科华云信息技术有限公司 Personalized recommendation method and system for friends and applications
CN106557938A (en) * 2015-09-24 2017-04-05 网易(杭州)网络有限公司 The method for pushing of virtual objects in a kind of game
CN108066989A (en) * 2016-11-18 2018-05-25 腾讯科技(深圳)有限公司 A kind of random fit organizing method, device and application server
CN106730850A (en) * 2016-12-16 2017-05-31 网易(杭州)网络有限公司 Game partners matching process and device
CN109088738A (en) * 2017-06-14 2018-12-25 阿里巴巴集团控股有限公司 The method, device and equipment of information push
CN107977411A (en) * 2017-11-21 2018-05-01 腾讯科技(成都)有限公司 Group recommending method, device, storage medium and server
CN109859064A (en) * 2019-01-31 2019-06-07 北京俩俩科技有限公司 Friend recommendation method and system based on hail fellow relationship
CN110193202A (en) * 2019-05-31 2019-09-03 重庆誉存大数据科技有限公司 A kind of matching connection method and system between client

Similar Documents

Publication Publication Date Title
CN107977411B (en) Group recommendation method, device, storage medium and server
US20180255009A1 (en) Emoji recommendation method and apparatus
CN112418580A (en) Risk control method, computer equipment and readable storage medium
US20060003823A1 (en) Dynamic player groups for interest management in multi-character virtual environments
CN106293803B (en) A kind of application control method and device
CN109766492B (en) Learning recommendation method, device, equipment and readable medium
CN110166344B (en) Identity identification method, device and related equipment
US10956976B2 (en) Recommending shared products
CN108763251B (en) Personalized recommendation method and device for nuclear product and electronic equipment
WO2023168856A1 (en) Associated scene recommendation method and device, storage medium, and electronic device
CN109635192A (en) Magnanimity information temperature seniority among brothers and sisters update method and platform towards micro services
CN110585722A (en) Block chain-based game time information processing method and device and game control method and device
CN110188123A (en) User matching method and equipment
CN109218766B (en) Method for summoning bean vermicelli, live broadcast platform server and anchor terminal
CN110196951A (en) User matching method and equipment
CN108228598B (en) Media information sorting method, server and system
CN111729301B (en) Method and device for recommending props in rushing game and game terminal
CN113230665A (en) Resource allocation method and device
CN107193829B (en) Application program recommendation method and device
CN110719367A (en) Cloud mobile phone friend recommendation method, device, equipment and storage medium
CN110990723A (en) Friend recommendation method, device, equipment and storage medium
CN111589110A (en) Game server list pushing method and device and storage medium
US10872121B2 (en) Systems and methods for matching users
US10478722B2 (en) Server and program
CN110209704A (en) User matching method and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination