A method, device, equipment and storage medium for user recommendation in social scenarios

By requesting the server to filter and display the network format distribution in social scenarios, the sliding problem caused by the long user recommendation list in the prior art is solved, and the user experience and conversion rate are improved.

CN113256441BActive Publication Date: 2024-11-01TANTAN CULTURE DEV BEIJING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110618370.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-03
Publication Date
2024-11-01
Estimated Expiration
2041-06-03

AI Technical Summary

Technical Problem

In the existing social scenarios, when the list is too long, users need to constantly slide the list, and lack optimization for social scenarios, resulting in insufficient attractiveness and failure to effectively achieve traffic diversion.

Method used

By sending a request to the server to obtain the user interested in the target user, filtering users within the preset distance range, and determining the number of users in the display area based on the network format distribution of the screen display area, displaying the information of the user interested, so as to make Users can directly see the recommended user without sliding the list.

Benefits of technology

It improves user experience, reduces user operation time, displays user information through network format, simulates map effects, and enhances user social experience and conversion rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113256441B_ABST
    Figure CN113256441B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a method, device, equipment and storage medium for user recommendation in a social scenario. The method includes: sending a request to a server to obtain interested users corresponding to a target user, so that the server screens other online users within a preset distance range relative to the target user according to the request, obtains interested users corresponding to the target user, and returns the interested users to the terminal; according to the total number of interested users and the number of interested users accommodated in different display areas in the screen display area, determines the number of interested users to be displayed corresponding to different display areas, wherein the screen display areas are distributed in a grid format, and different display areas are distributed around the location of the target user; according to the number of interested users to be displayed, the information corresponding to the interested users is displayed in different display areas. The technical solution provided by the embodiment of the present invention can conveniently display interested users to users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of computer technology, and in particular, to a method, device, equipment, and storage medium for recommending users in a social scenario. Background Art

[0002] As the current pace of life accelerates, online social networking has become popular. How to accurately recommend users and display users they may be interested in is the main problem that Internet social recommendation algorithms need to solve.

[0003] In the related art, all interested users are displayed in the form of lists and pages. Users display information through lists and slide the lists to select users they are interested in. However, if the list is too long, the above solution will cause users to constantly slide the list, and there is no optimization for social scenarios, which makes it less attractive to users and fails to achieve a good traffic diversion purpose.

[0004] Currently, there is no better method for user recommendation in social scenarios. Summary of the invention

[0005] The embodiments of the present invention provide a method, apparatus, device and storage medium for recommending users in a social scenario, which can conveniently display users of interest to users and optimize the existing method for recommending users in a social scenario.

[0006] In a first aspect, an embodiment of the present invention provides a user recommendation method in a social scenario, which is applied to a terminal, and the method includes:

[0007] Sending a request to a server to obtain interested users corresponding to a target user, so that the server screens other online users within a preset distance range relative to the target user according to the request, obtains interested users corresponding to the target user, and returns the interested users to the terminal;

[0008] Determine the number of interested users to be displayed corresponding to the different display areas according to the total number of interested users and the number of interested users respectively accommodated in different display areas in the screen display area, wherein the screen display areas are distributed in a grid format, and the different display areas are distributed around the location of the target user;

[0009] The information corresponding to the interested users is displayed in the different display areas according to the number of interested users to be displayed.

[0010] In a second aspect, an embodiment of the present invention provides a user recommendation device in a social scenario, which is applied to a terminal, and the device includes:

[0011] An interested user determination module is used to send a request to the server to obtain interested users corresponding to the target user, so that the server screens other online users within a preset distance range relative to the target user according to the request, obtains interested users corresponding to the target user, and returns the interested users to the terminal;

[0012] A user number determination module, configured to determine the number of interested users to be displayed corresponding to the different display areas according to the total number of interested users and the number of interested users accommodated in the different display areas in the screen display area, wherein the screen display areas are distributed in a grid format, and the different display areas are distributed around the location of the target user;

[0013] The display module is used to display the information corresponding to the interested users in the different display areas according to the number of interested users to be displayed.

[0014] In a third aspect, an embodiment of the present invention provides an electronic device, the electronic device comprising:

[0015] one or more processors;

[0016] A storage device for storing one or more programs;

[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the user recommendation method in a social scenario described in any embodiment of the present invention.

[0018] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the user recommendation method in a social scenario described in any embodiment of the present invention.

[0019] The embodiment of the present invention provides a user recommendation method, device, equipment and storage medium in a social scenario. First, a request for obtaining interested users corresponding to a target user is sent to a server, so that the server screens other online users within a preset distance range relative to the target user according to the request, obtains interested users corresponding to the target user, and returns the interested users to a terminal. Then, according to the total number of interested users and the number of interested users respectively accommodated in different display areas in the screen display area, the number of interested users to be displayed corresponding to different display areas is determined, wherein the screen display areas are distributed in a grid format, and the different display areas are distributed around the location of the target user. Finally, according to the number of interested users to be displayed, the information corresponding to the interested users is displayed in different display areas. Through the above scheme, interested users can be conveniently displayed to users, thereby optimizing the existing user recommendation method in social scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1A A flowchart of a user recommendation method in a social scenario provided by Embodiment 1 of the present invention;

[0021] Figure 1B A schematic diagram of a screen display area and candidate points in the method provided in Embodiment 1 of the present invention;

[0022] Figure 2 A flowchart of a user recommendation method in a social scenario provided by Embodiment 2 of the present invention;

[0023] Figure 3 A schematic diagram of the structure of a user recommendation device in a social scenario provided by Embodiment 3 of the present invention;

[0024] Figure 4 A schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0025] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0026] Embodiment 1

[0027] Figure 1A This is a flow chart of a method for recommending users in a social scenario provided in Embodiment 1 of the present invention. This embodiment can be applied to the case of recommending users to target users in a social scenario. The method for recommending users in a social scenario provided in this embodiment can be executed by a device for recommending users in a social scenario provided in an embodiment of the present invention. The device can be implemented in software and / or hardware and integrated in an electronic device that executes this method.

[0028] See also Figure 1A The method of this embodiment includes but is not limited to the following steps:

[0029] S110, sending a request to the server to obtain interested users corresponding to the target user, so that the server screens other online users within a preset distance range relative to the target user according to the request, obtains interested users corresponding to the target user, and returns the interested users to the terminal.

[0030] Among them, the target user can be understood as a user using a terminal. The terminal can be a smart phone, a tablet computer, a desktop computer, a laptop computer, etc. Corresponding social software can be installed in the terminal. The interested user corresponding to the target user can be understood as a user who meets the interests, preferences, etc. of the target user. The preset distance can be a pre-set value, or it can be determined according to the specific situation. The embodiment of the present invention does not make specific restrictions. The distance here can be understood as the actual distance relative to the location of the target user. For example, assuming that the target user is in place A in a city and an online user is in place B in the city, the distance between the target user and the online user is the distance between place A and place B.

[0031] The terminal sends a request to the server to obtain interested users corresponding to the target user. The request can be generated when the terminal detects that the target user logs in to a social software, or it can be generated when the terminal detects that the target user performs a corresponding operation on the interface of a social software. When the server receives the request, it filters other online users within a preset distance range relative to the target user according to the request. There can be many filtering methods, such as gender-based filtering or occupation-based filtering, etc. The interested users corresponding to the target user can be obtained through filtering. At this time, the server will return the interested users to the terminal, so that the terminal can subsequently determine the number of interested users to be displayed corresponding to different display areas according to the total number of interested users and the number of interested users accommodated in different display areas in the screen display area.

[0032] In the embodiment of the present invention, data interaction can be performed between the terminal and the server. The main function of the server is to receive a request sent by the terminal to obtain interested users corresponding to a target user, and to screen other online users within a preset distance range relative to the target user according to the request, to obtain interested users corresponding to the target user, and to return the interested users to the terminal.

[0033] S120, determining the number of interested users to be displayed corresponding to different display areas according to the total number of interested users and the number of interested users accommodated in different display areas in the screen display area, wherein the screen display areas are distributed in a grid-like manner, and the different display areas are distributed around the location of the target user.

[0034] Among them, the screen display area can be understood as the area on the screen of the terminal that can display the information corresponding to the interested user, and different display areas can be understood as different areas obtained by dividing the screen display area by the terminal. The number of interested users accommodated in different display areas can be understood as the maximum number of interested users that can be accommodated in different display areas when displaying the information corresponding to the interested users. The location of the target user can be the center of the screen display area or other locations of the screen display area, and the embodiments of the present invention do not make specific restrictions. The grid distribution can be understood as dividing the screen display area through the intersection of horizontal lines and vertical lines to form multiple small grids, similar to a chessboard.

[0035] The terminal can determine the number of interested users to be displayed corresponding to different display areas according to the size relationship between the total number of interested users and the number of interested users respectively accommodated in different display areas in the screen display area. For example, assuming that the total number of interested users is 10, there are 3 different display areas, namely the first display area, the second display area and the third display area, wherein the number of interested users accommodated in the first display area is 4, the number of interested users accommodated in the second display area is 6, and the number of interested users accommodated in the third display area is 10. Then, when allocating the total number of interested users, the number of interested users to be displayed corresponding to the first display area can only be 4 at most, specifically 1, 2, 3 or 4, the number of interested users to be displayed corresponding to the second display area can only be 6 at most, specifically 1, 2, 3, 4, 5 or 6, and the number of interested users to be displayed corresponding to the third display area can be determined according to the total number of interested users, the number of interested users to be displayed corresponding to the first display area, and the number of interested users to be displayed corresponding to the second display area.

[0036] Preferably, in order to achieve a better display effect when the terminal subsequently displays the information corresponding to the interested users in different display areas, the number of interested users to be displayed corresponding to different display areas is preferably greater than 0.

[0037] In the embodiment of the present invention, since the screen display area is distributed in a grid format, the information corresponding to the interested user can be displayed in different grids or around the grids when the information corresponding to the interested user is displayed in different display areas later, so that the user can directly see the information corresponding to the interested user in the screen display area, achieving the effect of simulating a map. Compared with the prior art, the user can directly select the interested user without sliding the list, and the screen display area is distributed in a grid format, which can more intuitively display the information corresponding to the interested user, save time for the user, and improve the user experience.

[0038] S130: Display information corresponding to interested users in different display areas according to the number of interested users to be displayed.

[0039] Among them, the information corresponding to the interested user can be understood as information related to the interested user, such as the user name, user avatar, user's live broadcast room and user's live broadcast title, etc., and the embodiment of the present invention does not make specific limitations.

[0040] After the terminal obtains the number of interested users to be displayed corresponding to different display areas, it can display the information corresponding to the interested users in different display areas, so that the target users can see the information corresponding to different interested users, which is convenient for the users to perform subsequent operations, such as applying to add friends or initiating temporary sessions.

[0041] The technical solution provided in this embodiment first sends a request to the server to obtain interested users corresponding to the target user, so that the server screens other online users within a preset distance range relative to the target user according to the request, obtains interested users corresponding to the target user, returns the interested users to the terminal, and then determines the number of interested users to be displayed corresponding to different display areas according to the total number of interested users and the number of interested users respectively accommodated in different display areas in the screen display area, wherein the screen display areas are distributed in a grid format, and the different display areas are distributed around the location of the target user. Finally, according to the number of interested users to be displayed, the information corresponding to the interested users is displayed in different display areas. Through the above solution, interested users can be conveniently displayed to users, optimizing the existing user recommendation method in social scenarios.

[0042] In some embodiments, the filtering of other online users within a preset distance range relative to the target user according to the request to obtain interested users corresponding to the target user may specifically include: filtering other online users within a preset distance relative to the target user according to a preset method according to the request to obtain interested users, wherein the preset method includes a filtering method based on at least one of gender, occupation, age, and historical behavior; correspondingly, returning the interested users to the terminal may specifically include: sorting the interested users in order of distance from near to far according to different distances of the interested users relative to the target user, and returning the sorted interested users to the terminal.

[0043] Specifically, after receiving the request from the terminal to obtain the interested users corresponding to the target user, the server screens other online users within a preset distance from the target user according to the request in a screening manner based on at least one of gender, occupation, age, and historical behavior, and can filter out users that do not meet the screening conditions and retain users that meet the screening conditions, thereby obtaining the interested users. After obtaining the interested users, the server sorts the interested users in order of distance from near to far according to the different distances of the interested users from the target user, and returns the sorted interested users to the terminal. At this time, the terminal can receive the sorted interested users, which is convenient for displaying the corresponding information of the interested users in different display areas later.

[0044] In an embodiment of the present invention, the server screens other online users within a preset distance relative to the target user in a preset manner to obtain interested users, and sorts the interested users in order of distance from near to far, and returns the sorted interested users to the terminal, which not only screens out interested users, but also sorts the interested users in order of distance from near to far, which is beneficial for the subsequent terminal to present a near-to-far display effect for the target user when displaying the information corresponding to the interested users in different display areas, that is, when the information corresponding to the interested users who are actually closer to the target user is displayed in the display area, the position of the target user in the screen display area is also closer.

[0045] In some embodiments, before determining the number of interested users to be displayed corresponding to the different display areas according to the total number of interested users and the number of interested users accommodated in the different display areas in the screen display area, it may also specifically include: creating a grid of preset specifications, and determining candidate points in the grid for displaying information corresponding to interested users and the points corresponding to each candidate point; converting all points into coordinates corresponding to the screen display area according to the size of the screen display area; dividing the screen display area into different display areas, and determining candidate points corresponding to the coordinates included in the different display areas; accordingly, displaying the information corresponding to the interested users in the different display areas according to the number of interested users to be displayed may specifically include: displaying the information corresponding to the interested users at the corresponding candidate point positions in the different display areas according to the number of interested users to be displayed and the number of candidate points corresponding to the different display areas.

[0046] Among them, the preset specification can be understood as the specific number of grids in the grid, which can be expressed as the product of the total width of the grid and the total height of the grid. The specific specification can be a pre-set value or it can depend on the specific situation. The embodiment of the present invention does not make specific restrictions. For example, if the specification of a grid is 13x13, the width of the grid is the total width of 13 small grids, and the height of the grid is the total height of 13 small grids. Candidate points can be understood as points in the grid that can display information corresponding to interested users. The point position corresponding to the candidate point can be understood as the specific position of the candidate point relative to the origin of the grid. For example, the origin of the grid can be the center point. Assuming that the point position corresponding to a candidate point is (9,14), the position of the candidate point in the grid is the position after 9 units are translated to the right and 14 units upward relative to the origin of the grid. The size of the screen display area can be understood as the width value and height value of the screen display area. Preferably, the width value and the height value can be the same.

[0047] It should be noted that the origin of the grid can be preset, and the unit of the grid can be 1 grid as 1 unit, or 1 / 2 grid as 1 unit, and the embodiment of the present invention does not make any specific limitation.

[0048] Specifically, the terminal creates a grid of preset specifications, and determines all candidate points in the grid that can display information corresponding to the interested user and the points corresponding to each candidate point according to corresponding rules. For example, the rule may be: the interval between each candidate point does not exceed a preset value, which may be a pre-set value or may depend on the specific situation. The embodiment of the present invention does not impose specific restrictions. Then, according to the size of the screen display area, all points are converted into corresponding coordinates in the screen display area. The specific conversion formula may be:

[0049]

[0050]

[0051] Wherein, pointx is the value of the horizontal coordinate obtained by converting the horizontal coordinate x corresponding to a certain point into the value in the screen display area, Width is the width of the screen display area, x0 is the total unit corresponding to the width of the grid, and [] indicates rounding. pointy is the value of the vertical coordinate y corresponding to a certain point into the value in the screen display area, Hight is the height of the screen display area, y0 is the total unit corresponding to the height of the grid, preferably, the size of x0 and y0 can be the same, and the size of Width and Hight can be the same, so that calculation is convenient.

[0052] After the terminal converts all points into corresponding coordinates in the screen display area according to the size of the screen display area, the screen display area can be divided into different display areas according to the distance relative to the center point of the screen. The number of display areas is not limited in the embodiment of the present invention, and the candidate points corresponding to the coordinates included in the different display areas are determined at the same time, that is, which candidate points are included in the different display areas. After determining the candidate points corresponding to the coordinates included in the different display areas, the terminal can display the information corresponding to the interested users at the corresponding candidate point positions in the different display areas according to the number of interested users to be displayed and the number of candidate points corresponding to the different display areas. Exemplarily, assuming that the total number of interested users is 10, there are 3 different display areas, namely the first display area, the second display area and the third display area, wherein the number of candidate points included in the first display area is 4, the number of candidate points included in the second display area is 6, and the number of candidate points included in the third display area is 10, the number of interested users to be displayed corresponding to the first display area is 3, the number of interested users to be displayed corresponding to the second display area is 4, and the number of interested users to be displayed corresponding to the third display area is 3, then the information corresponding to the first 3 interested users among the interested users can be displayed at any 3 candidate point positions in the first display area, the information corresponding to the 4th to 7th interested users among the interested users can be displayed at any 4 candidate point positions in the second display area, and the information corresponding to the last 3 interested users among the interested users can be displayed at any 3 candidate point positions in the third display area.

[0053] Preferably, when the terminal determines the candidate points corresponding to the coordinates included in different display areas, the embodiment of the present invention does not impose specific restrictions on the order of the coordinates included in the different display areas. That is, assuming that a certain display area includes the coordinates of 5 candidate points, then when arranging these 5 coordinates, the order can be randomly disrupted.

[0054] For example, Figure 1B The schematic diagram of the screen display area and candidate points in the method provided in the first embodiment of the present invention exemplarily shows one of the distribution modes. Figure 1B As shown:

[0055] Figure 1BThe black dots in the center grid in the figure represent target users, and the white dots represent candidate points. Taking the black dots as the reference, the radius of the inner circle display area is 2.5 times the diagonal length of the small grid, the radius of the middle circle display area is 4.5 times the diagonal length of the small grid, and the radius of the outer circle display area is 6.5 times the diagonal length of the small grid. There are 4 candidate points in the inner circle display area, 13 candidate points in the middle circle display area, and 17 candidate points in the outer circle display area. The corresponding position of each candidate point in the small grid may be different. For example, some candidate points are at the center of the small grid, and some candidate points are at the midpoint of a certain edge of the small grid (each small grid corresponds to four edges). The specific position of the candidate point can be selected according to the actual situation, and the embodiment of the present invention does not limit this.

[0056] It should be noted that, in the embodiment of the present invention, there is no restriction on which grid the target user and the candidate point are located in, and they can be selected according to actual conditions.

[0057] In an embodiment of the present invention, the candidate points included in different display areas are determined in the above-mentioned manner, and according to the number of interested users to be displayed and the number of candidate points corresponding to different display areas, the information corresponding to the interested users is displayed at the corresponding candidate point positions in different display areas, so that the information corresponding to the interested users can be arbitrarily displayed in the candidate points included in the corresponding display area, thereby achieving a random display effect.

[0058] In some embodiments, the display area of ​​the candidate point when displaying the information corresponding to the interested user does not overlap with the display areas of the information corresponding to the interested user displayed by other surrounding candidate points.

[0059] In an embodiment of the present invention, the display area of ​​a candidate point when displaying information corresponding to an interested user does not overlap with the display areas of information corresponding to interested users displayed at other surrounding candidate points, thereby providing a better user experience and avoiding unclear viewing of the information corresponding to the interested user due to overlapping display areas.

[0060] Embodiment 2

[0061] Figure 2 This is a flow chart of a user recommendation method in a social scenario provided by Embodiment 2 of the present invention. The embodiment of the present invention is optimized on the basis of the above embodiment. Optionally, this embodiment provides a detailed explanation of the process of determining the number of interested users to be displayed corresponding to different display areas.

[0062] See also Figure 2 The method of this embodiment includes but is not limited to the following steps:

[0063] S210, sending a request to the server to obtain interested users corresponding to the target user, so that the server screens other online users within a preset distance range relative to the target user according to the request, obtains interested users corresponding to the target user, and returns the interested users to the terminal.

[0064] S220, generating a first random number according to a random number generation algorithm, and taking the smaller number between the first random number and the number of interested users accommodated in the inner circle display area as the first number of interested users to be displayed corresponding to the inner circle display area.

[0065] The different display areas include an inner circle display area, a middle circle display area and an outer circle display area, the target user is located at the center of the screen display area, the radius of the middle circle display area is between the radius of the inner circle display area and the radius of the outer circle display area, and the radius of the inner circle display area is smaller than the radius of the outer circle display area. The random number generation algorithm may include the Monte Carlo method, the linear congruential algorithm, the square intercept method, etc.

[0066] Specifically, according to the random number generation algorithm, a first random number can be generated between 0 and the number of interested users accommodated in the inner circle display area, and the smaller number between the first random number and the number of interested users accommodated in the inner circle display area is used as the first number of interested users to be displayed corresponding to the inner circle display area, thereby ensuring that each interested user to be displayed corresponding to the inner circle display area has a corresponding display position.

[0067] S230, generating a second random number according to a random number generation algorithm, and taking the smaller number between the second random number and the number of interested users accommodated in the middle circle display area as the second number of interested users to be displayed corresponding to the middle circle display area.

[0068] Specifically, according to the random number generation algorithm, a second random number can be generated between 0 and the number of interested users accommodated in the middle circle display area, and the smaller number between the second random number and the number of interested users accommodated in the middle circle display area is used as the second number of interested users to be displayed corresponding to the middle circle display area, ensuring that each interested user to be displayed corresponding to the middle circle display area has a corresponding display position.

[0069] It should be noted that the embodiment of the present invention does not impose any specific limitation on the sizes of the first random number and the second random number.

[0070] Preferably, after generating the second random number according to the random number generation algorithm, the second random number can be added to one third of the total number of interested users to obtain the first value, and the smaller number between the first value and the number of interested users accommodated in the middle circle display area is used as the second number of interested users to be displayed corresponding to the middle circle display area. The second number determined by this method is closer to the actual situation and relatively more reasonable.

[0071] S240, subtract the first number and the second number from the total number of interested users to obtain a first difference, and use the smaller number between the first difference and the number of interested users accommodated in the outer circle display area as the third number of interested users to be displayed corresponding to the outer circle display area.

[0072] Specifically, the first number and the second number are subtracted from the total number of interested users to obtain the first difference, and the smaller number between the first difference and the number of interested users accommodated in the outer circle display area is used as the third number of interested users to be displayed corresponding to the outer circle display area, which can ensure that each interested user to be displayed corresponding to the outer circle display area has a corresponding display position.

[0073] S250, displaying information corresponding to interested users in different display areas according to the number of interested users to be displayed, wherein the number of interested users to be displayed includes a first number, a second number, and a third number of interested users to be displayed.

[0074] In the above S220 - S250 , when determining the number of interested users to be displayed corresponding to different display areas, it should be ensured that the sum of the first number, the second number and the third number is equal to the total number of interested users.

[0075] Specifically, after determining the first number of interested users to be displayed, the second number of interested users to be displayed, and the third number of interested users to be displayed, information corresponding to the first N interested users among the interested users is displayed in the inner circle display area, information corresponding to the N+1th to Mth interested users among the interested users is displayed in the middle circle display area, and information corresponding to the last P interested users among the interested users is displayed in the outer circle display area, where N is the value corresponding to the first number, M is the value corresponding to the sum of the first number and the second number, and P is the value corresponding to the third number.

[0076] Optionally, after displaying the information corresponding to the interested users in the different display areas according to the number of interested users to be displayed, it may also specifically include: sending a request to the server to determine whether the current interested user is online every first preset time; if the message returned by the server is that the current interested user is offline, replacing the current interested user.

[0077] The first preset time may be a preset value, such as 10 seconds, or may be determined according to specific circumstances, and the embodiment of the present invention does not impose any specific limitation. The current interested user may be understood as a certain interested user being displayed in the screen display area.

[0078] Specifically, the terminal sends a request to the server every first preset time to determine whether the current interested user is online, so that the server determines whether the current interested user is online. If the message returned by the server is that the current interested user is offline, the current interested user is replaced. The specific replacement method may be: the server returns a new interested user to the terminal, and then the terminal replaces the current interested user with the new interested user, and adds the information corresponding to the new interested user to the display position of the information corresponding to the current interested user.

[0079] In the embodiment of the present invention, the above-mentioned replacement method can not only realize the imperceptible replacement of offline interested users and reduce the rendering times of the terminal display interface, but also avoid the full page refresh causing the target user to be unable to find the last recommended interested users.

[0080] Preferably, when the method is applied to a live broadcast scenario, after displaying the information corresponding to the interested users in different display areas according to the number of interested users to be displayed, it may also specifically include: sending a request to the server to determine whether the current interested user is broadcasting live every first preset time; if the message returned by the server is that the current interested user has ended the live broadcast, replacing the current interested user.

[0081] In an embodiment of the present invention, through the above-mentioned replacement method, not only can the interested users who have ended the live broadcast be replaced imperceptibly, reducing the rendering times of the terminal display interface, but also the full page refresh can be avoided, resulting in the target user not being able to find the last recommended favorite room, that is, the live broadcast room.

[0082] Furthermore, when the method is applied to a live broadcast scenario, when displaying the information corresponding to the interested users in the different display areas according to the number of interested users to be displayed, it can also specifically include: displaying the live broadcast room titles corresponding to the preset number of interested users in the corresponding display area every second preset time.

[0083] The second preset time may be a preset value, such as 1 minute, or may be determined according to specific circumstances, which is not specifically limited in the embodiment of the present invention. Preferably, the value of the second preset time is greater than the value of the first preset time. The preset number may be a preset value, such as 5, or may be determined according to specific circumstances, which is not specifically limited in the embodiment of the present invention, but the preset number cannot exceed the total number of interested users displayed in the screen display area.

[0084] Specifically, the terminal can use a counter to display the live room titles corresponding to a preset number of interested users in the corresponding display area every second preset time. For example, they can be displayed in the form of bubbles. The above display method can remind the target user and attract the target user's attention, thereby improving the target user's social experience.

[0085] The technical solution provided by this embodiment first sends a request to the server to obtain interested users corresponding to the target user, so that the server screens other online users within a preset distance range relative to the target user according to the request, obtains interested users corresponding to the target user, and returns the interested users to the terminal, then generates a first random number according to a random number generation algorithm, and uses the smaller number between the first random number and the number of interested users accommodated in the inner circle display area as the first number of interested users to be displayed corresponding to the inner circle display area, generates a second random number according to the random number generation algorithm, and uses the smaller number between the second random number and the number of interested users accommodated in the middle circle display area as the second number of interested users to be displayed corresponding to the middle circle display area, then subtracts the first number and the second number from the total number of interested users to obtain a first difference, and adds the first difference to the number of interested users accommodated in the outer circle display area. The smaller number among the number of users is used as the third number of interested users to be displayed corresponding to the outer circle display area, and finally the information corresponding to the interested users is displayed in different display areas according to the number of interested users to be displayed, wherein the number of interested users to be displayed includes the first number, the second number and the third number of interested users to be displayed, and the first number and the second number of interested users to be displayed are determined by a random number generation algorithm method, and then the third number is determined, so that the terminal can achieve a random effect when displaying the information corresponding to the interested users in different display areas, and because the screen display area is distributed in a grid format, the display area includes an inner circle display area, a middle circle display area and an outer circle display area, which can simulate the display in the form of a map to make the target user's perception of distance more accurate, thereby improving the conversion rate, achieving the purpose of attracting traffic, and conveniently displaying interested users to users.

[0086] Embodiment 3

[0087] Figure 3This is a schematic diagram of the structure of a user recommendation device in a social scenario provided by Embodiment 3 of the present invention. Figure 3 As shown, the device may include:

[0088] An interested user determination module 310 is used to send a request to the server to obtain interested users corresponding to the target user, so that the server screens other online users within a preset distance range relative to the target user according to the request, obtains interested users corresponding to the target user, and returns the interested users to the terminal;

[0089] A user number determination module 320 is used to determine the number of interested users to be displayed corresponding to the different display areas according to the total number of interested users and the number of interested users accommodated in the different display areas in the screen display area, wherein the screen display areas are distributed in a grid format, and the different display areas are distributed around the location of the target user;

[0090] The display module 330 is used to display the information corresponding to the interested users in the different display areas according to the number of interested users to be displayed.

[0091] The technical solution provided in this embodiment first sends a request to the server to obtain interested users corresponding to the target user, so that the server screens other online users within a preset distance range relative to the target user according to the request, obtains interested users corresponding to the target user, returns the interested users to the terminal, and then determines the number of interested users to be displayed corresponding to different display areas according to the total number of interested users and the number of interested users respectively accommodated in different display areas in the screen display area, wherein the screen display areas are distributed in a grid format, and the different display areas are distributed around the location of the target user. Finally, according to the number of interested users to be displayed, the information corresponding to the interested users is displayed in different display areas. Through the above solution, interested users can be conveniently displayed to users, optimizing the existing user recommendation method in social scenarios.

[0092] Furthermore, the above-mentioned interested user determination module 310 can be specifically used to: send a request for obtaining interested users corresponding to the target user to the server, so that the server, based on the request, filters other online users within a preset distance relative to the target user in a preset manner to obtain interested users, wherein the preset manner includes a screening method based on at least one of gender, occupation, age and historical behavior, and according to the different distances of the interested users relative to the target user, sort the interested users in order of distance from near to far, and return the sorted interested users to the terminal.

[0093] Furthermore, the user recommendation device in the above-mentioned social scenario may also include: a point determination module, which is used to create a grid of preset specifications and determine the candidate points in the grid for displaying the information corresponding to the interested users and the points corresponding to each candidate point before determining the number of interested users to be displayed corresponding to the different display areas according to the total number of interested users and the number of interested users accommodated in the different display areas in the screen display area according to the total number of interested users and the number of interested users accommodated in the different display areas in the screen display area; a coordinate determination module, which is used to convert all points into coordinates corresponding to the screen display area according to the size of the screen display area; a candidate point determination module, which is used to divide the screen display area into different display areas and determine the candidate points corresponding to the coordinates included in the different display areas; accordingly, the above-mentioned display module 330 can be specifically used to: display the information corresponding to the interested users at the corresponding candidate point positions in the different display areas according to the number of interested users to be displayed corresponding to the different display areas and the number of candidate points.

[0094] Furthermore, the display area of ​​the candidate point when displaying the information corresponding to the interested user does not overlap with the display areas of the information corresponding to the interested users displayed by other surrounding candidate points.

[0095] Further, the different display areas include an inner circle display area, a middle circle display area and an outer circle display area, wherein the target user is located at the center of the screen display area, the radius of the middle circle display area is between the radius of the inner circle display area and the radius of the outer circle display area, and the radius of the inner circle display area is smaller than the radius of the outer circle display area; accordingly, the user number determination module 320 can be specifically used to: generate a first random number according to a random number generation algorithm, and use the smaller number between the first random number and the number of interested users accommodated in the inner circle display area as a first number of interested users to be displayed corresponding to the inner circle display area; generate a second random number according to the random number generation algorithm, and use the smaller number between the second random number and the number of interested users accommodated in the middle circle display area as a second number of interested users to be displayed corresponding to the middle circle display area; subtract the first number and the second number from the total number of interested users to obtain a first difference, and use the smaller number between the first difference and the number of interested users accommodated in the outer circle display area as a third number of interested users to be displayed corresponding to the outer circle display area.

[0096] Furthermore, the user recommendation device in the above social scenario may also include: a first request module, which is used to send a request to the server to determine whether the current interested user is online every first preset time after displaying the information corresponding to the interested user in the different display areas according to the number of interested users to be displayed; and a replacement module, which is used to replace the current interested user if the message returned by the server is that the current interested user is offline.

[0097] Furthermore, the user recommendation device in the above social scenario may also include: a title display module, which is used to display the live broadcast room titles corresponding to a preset number of interested users in the corresponding display area every second preset time.

[0098] The user recommendation device in a social scenario provided in this embodiment can be applied to the user recommendation method in a social scenario provided in any of the above embodiments, and has corresponding functions and beneficial effects.

[0099] Embodiment 4

[0100] Figure 4 A schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention is shown in FIG. Figure 4 As shown, the electronic device includes a processor 410, a storage device 420 and a communication device 430; wherein the electronic device may be a terminal, and the number of the processor 410 in the electronic device may be one or more. Figure 4 A processor 410 is taken as an example; the processor 410, the storage device 420 and the communication device 430 in the electronic device can be connected via a bus or other means. Figure 4 The example of connecting through bus is taken in the following.

[0101] The storage device 420, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as the modules corresponding to the user recommendation method in social scenarios in the embodiment of the present invention (for example, the interested user determination module 310, the user number determination module 320 and the display module 330 in the user recommendation device in social scenarios). The processor 410 executes various functional applications and data processing of the electronic device by running the software programs, instructions and modules stored in the storage device 420, that is, realizes the user recommendation method in social scenarios described above.

[0102] The storage device 420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the storage device 420 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the storage device 420 may further include a memory remotely arranged relative to the processor 410, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0103] The communication device 430 is used to realize the network connection or mobile data connection between servers.

[0104] An electronic device provided in this embodiment can be used to execute the user recommendation method in a social scenario provided in any of the above embodiments, and has corresponding functions and beneficial effects.

[0105] Embodiment 5

[0106] Embodiment 5 of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the user recommendation method in a social scenario in any embodiment of the present invention is implemented. The method specifically includes:

[0107] Sending a request to a server to obtain interested users corresponding to a target user, so that the server screens other online users within a preset distance range relative to the target user according to the request, obtains interested users corresponding to the target user, and returns the interested users to the terminal;

[0108] Determine the number of interested users to be displayed corresponding to the different display areas according to the total number of interested users and the number of interested users respectively accommodated in different display areas in the screen display area, wherein the screen display areas are distributed in a grid format, and the different display areas are distributed around the location of the target user;

[0109] The information corresponding to the interested users is displayed in the different display areas according to the number of interested users to be displayed.

[0110] Of course, the storage medium containing computer executable instructions provided by an embodiment of the present invention is not limited to the method operations described above, and the computer executable instructions can also execute related operations in the user recommendation method in a social scenario provided by any embodiment of the present invention.

[0111] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (FLASH), a hard disk or an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0112] It is worth noting that in the embodiment of the user recommendation device in the above social scenario, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0113] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A user recommendation method in a social scenario, characterized in that: Applied to a terminal, the method comprises: Sending a request to a server to obtain interested users corresponding to a target user, so that the server screens other online users within a preset distance range relative to the target user according to the request, obtains interested users corresponding to the target user, and returns the interested users to the terminal; Determine the number of interested users to be displayed corresponding to the different display areas according to the total number of interested users and the number of interested users respectively accommodated in different display areas in the screen display area, wherein the screen display areas are distributed in a grid format, and the different display areas are distributed around the location of the target user; Displaying information corresponding to the interested users in the different display areas according to the number of interested users to be displayed; Before determining the number of interested users to be displayed corresponding to the different display areas according to the total number of interested users and the number of interested users accommodated in the different display areas in the screen display area, the method further includes: Creating a grid of preset specifications, and determining candidate points in the grid for displaying information corresponding to interested users and points corresponding to each candidate point; According to the size of the screen display area, convert all points into corresponding coordinates in the screen display area; Dividing the screen display area into different display areas, and determining candidate points corresponding to coordinates included in the different display areas; Correspondingly, displaying the information corresponding to the interested users in the different display areas according to the number of interested users to be displayed includes: According to the number of interested users to be displayed and the number of candidate points corresponding to the different display areas, the information corresponding to the interested users is displayed at the corresponding candidate point positions in the different display areas; After displaying the information corresponding to the interested users in the different display areas according to the number of interested users to be displayed, the method further includes: At first preset time intervals, sending a request to the server to determine whether the current interested user is online; If the message returned by the server is that the current interested user is offline, the current interested user is replaced with a new interested user, and the information corresponding to the new interested user is added to the display position of the information corresponding to the current interested user; wherein the new interested user is an interested user returned to the terminal by the server.

2. The method according to claim 1, characterized in that The step of screening other online users within a preset distance range relative to the target user according to the request to obtain interested users corresponding to the target user includes: According to the request, other online users within a preset distance from the target user are screened in a preset manner to obtain interested users, wherein the preset manner includes a screening manner based on at least one of gender, occupation, age, and historical behavior; Accordingly, returning the interested user to the terminal includes: According to different distances of the interested users relative to the target user, the interested users are sorted in order of distance from near to far, and the sorted interested users are returned to the terminal.

3. The method according to claim 1, characterized in that The display area of ​​the candidate point when displaying the information corresponding to the interested user does not overlap with the display areas of the information corresponding to the interested users displayed by other surrounding candidate points.

4. The method according to claim 1, characterized in that: The different display areas include an inner circle display area, a middle circle display area and an outer circle display area, wherein the target user is located at the center of the screen display area, the radius of the middle circle display area is between the radius of the inner circle display area and the radius of the outer circle display area, and the radius of the inner circle display area is smaller than the radius of the outer circle display area; Accordingly, determining the number of interested users to be displayed corresponding to the different display areas respectively according to the total number of interested users and the number of interested users respectively accommodated in the different display areas in the screen display area includes: Generate a first random number according to a random number generation algorithm, and use the smaller number between the first random number and the number of interested users accommodated in the inner circle display area as the first number of interested users to be displayed corresponding to the inner circle display area; Generate a second random number according to a random number generation algorithm, and use the smaller number between the second random number and the number of interested users accommodated in the middle circle display area as the second number of interested users to be displayed corresponding to the middle circle display area; Subtract the first number and the second number from the total number of interested users to obtain a first difference, and use the smaller number between the first difference and the number of interested users accommodated in the outer circle display area as the third number of interested users to be displayed corresponding to the outer circle display area.

5. The method according to any one of claims 1 to 4, characterized in that: When the method is applied to a live broadcast scenario, when displaying the information corresponding to the interested users in the different display areas according to the number of interested users to be displayed, it also includes: Every second preset time, the live broadcast room titles corresponding to a preset number of interested users are displayed in the corresponding display area.

6. A user recommendation device in a social scenario, characterized in that: Applied to a terminal, the device comprises: An interested user determination module is used to send a request to the server to obtain interested users corresponding to the target user, so that the server screens other online users within a preset distance range relative to the target user according to the request, obtains interested users corresponding to the target user, and returns the interested users to the terminal; A user number determination module, configured to determine the number of interested users to be displayed corresponding to the different display areas according to the total number of interested users and the number of interested users accommodated in the different display areas in the screen display area, wherein the screen display areas are distributed in a grid format, and the different display areas are distributed around the location of the target user; A display module, configured to display information corresponding to the interested users in the different display areas according to the number of interested users to be displayed; Wherein, the device further comprises: A point determination module, used for creating a grid of preset specifications and determining candidate points for displaying information corresponding to the interested users and the points corresponding to the candidate points in the grid before determining the number of interested users to be displayed corresponding to the different display areas according to the total number of interested users and the number of interested users accommodated in the different display areas in the screen display area; A coordinate determination module, used to convert all points into corresponding coordinates in the screen display area according to the size of the screen display area; A candidate point determination module, used to divide the screen display area into different display areas, and determine candidate points corresponding to coordinates included in the different display areas; Accordingly, the display module is specifically used to: display the information corresponding to the interested users at the corresponding candidate point positions in the different display areas according to the number of interested users to be displayed and the number of candidate points respectively corresponding to the different display areas; The device also includes: A first request module, configured to send a request to the server to determine whether the current interested user is online at a first preset time interval after displaying the information corresponding to the interested user in the different display areas according to the number of interested users to be displayed; A replacement module is used to replace the current interested user with a new interested user if the message returned by the server is that the current interested user is offline, and add the information corresponding to the new interested user to the display position of the information corresponding to the current interested user; wherein the new interested user is an interested user returned to the terminal by the server.

7. An electronic device, characterized in that: The electronic device comprises: one or more processors; A storage device 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 method according to any one of claims 1 to 5.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.