CN104954231B - Method and device for sending and displaying recommendation information - Google Patents

Method and device for sending and displaying recommendation information Download PDF

Info

Publication number
CN104954231B
CN104954231B CN201410122839.2A CN201410122839A CN104954231B CN 104954231 B CN104954231 B CN 104954231B CN 201410122839 A CN201410122839 A CN 201410122839A CN 104954231 B CN104954231 B CN 104954231B
Authority
CN
China
Prior art keywords
information
recommendation information
current period
terminal
recommendation
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.)
Active
Application number
CN201410122839.2A
Other languages
Chinese (zh)
Other versions
CN104954231A (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410122839.2A priority Critical patent/CN104954231B/en
Publication of CN104954231A publication Critical patent/CN104954231A/en
Application granted granted Critical
Publication of CN104954231B publication Critical patent/CN104954231B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and a device for sending and displaying recommendation information, and belongs to the field of internet communication. The method comprises the following steps: receiving content identification information sent by a terminal, wherein the content identification information is used for identifying recommendation information cached by the terminal; acquiring recommendation information which is not cached by the terminal according to the content identification information; and sending the recommendation information which is not cached by the terminal to the terminal. The device comprises: the device comprises a receiving module, an obtaining module and a sending module. The invention can save network flow when sending the recommendation information.

Description

Method and device for sending and displaying recommendation information
Technical Field
The invention relates to the field of internet communication, in particular to a method and a device for sending and displaying recommendation information.
Background
At present, the quantity of information in the internet is increasing, in order to improve the probability of browsing the information by a user, a plurality of application platforms acquire information with a high user click rate and use the information as recommendation information, and when the user requests to acquire the recommendation information, the application platforms send the recommendation information to the user, so that the user selects one of the recommendation information to browse in detail.
Currently, there is a method for sending recommendation information, which may be: the method comprises the steps that firstly, an application platform obtains the click rate of each piece of information clicked by a user in the previous period, and the preset number of pieces of information with the highest click rate are used as recommendation information in the current period. When a terminal of a user logs in an application platform and the user requests to browse recommendation information, the terminal sends a request message for obtaining the recommendation information to the application platform, the application platform obtains the recommendation information in the current period and sends the recommendation information in the current period to the terminal, and the terminal receives and displays the recommendation information to the user.
In the process of implementing the invention, the inventor finds that the prior art has at least the following problems:
the terminal may request to acquire the recommendation information multiple times in a period, the application platform acquires the recommendation information in the period every time, the acquired recommendation information is the same every time, and the same acquired recommendation information is sent to the terminal every time, so that network traffic is wasted.
Disclosure of Invention
In order to save network traffic, the invention provides a method and a device for sending and displaying recommendation information. The technical scheme is as follows:
a method of sending recommendation information, the method comprising:
receiving content identification information sent by a terminal, wherein the content identification information is used for identifying recommendation information cached by the terminal;
acquiring recommendation information which is not cached by the terminal according to the content identification information;
and sending the recommendation information which is not cached by the terminal to the terminal.
A method of displaying recommendation information, the method comprising:
sending content identification information corresponding to recommendation information cached by a terminal to a server, so that the server acquires recommendation information which is not cached by the terminal;
determining each piece of recommendation information in the current period according to the recommendation information which is not cached by the terminal;
obtaining layout information for displaying each piece of recommended information in the current period;
and displaying each piece of recommendation information in the current period according to the layout information.
An apparatus for transmitting recommendation information, the apparatus comprising:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving content identification information sent by a terminal, and the content identification information is used for identifying recommendation information cached by the terminal;
the acquisition module is used for acquiring the recommendation information which is not cached by the terminal according to the content identification information;
and the sending module is used for sending the recommendation information which is not cached by the terminal to the terminal.
An apparatus to display recommendation information, the apparatus comprising:
the sending module is used for sending the content identification information corresponding to the recommendation information cached by the terminal to the server so that the server can obtain the recommendation information which is not cached by the terminal;
the determining module is used for determining each piece of recommendation information in the current period according to the recommendation information which is not cached by the terminal;
the acquisition module is used for acquiring layout information for displaying each piece of recommendation information in the current period;
and the display module is used for displaying each piece of recommendation information in the current period according to the layout information.
In the embodiment of the invention, content identification information sent by a terminal is received, and the content identification information is used for identifying recommendation information cached by the terminal; acquiring recommendation information which is not cached by the terminal according to the content identification information; and sending the recommendation information which is not cached by the terminal to the terminal. Because the recommendation information which is not cached in the terminal is obtained according to the content identification, and the recommendation information which is not cached in the terminal is sent to the terminal, the situation that the same recommendation information is obtained and sent to the terminal every time is avoided, and therefore network flow is saved.
Drawings
Fig. 1 is a flowchart of a method for sending recommendation information according to embodiment 1 of the present invention;
fig. 2-1 is a flowchart of a method for displaying recommendation information according to embodiment 2 of the present invention;
fig. 2-2 is a schematic diagram of displaying channel information according to embodiment 2 of the present invention;
fig. 2-3 are schematic diagrams of displaying label information provided in embodiment 2 of the present invention;
fig. 3 is a flowchart of a method for displaying recommendation information according to embodiment 3 of the present invention;
fig. 4 is a flowchart of a method for displaying recommendation information according to embodiment 4 of the present invention;
fig. 5 is a schematic structural diagram of an apparatus for sending recommendation information according to embodiment 5 of the present invention;
fig. 6 is a schematic structural diagram of an apparatus for displaying recommendation information according to embodiment 6 of the present invention;
fig. 7 is a schematic structural diagram of a server according to embodiment 7 of the present invention;
fig. 8 is a schematic structural diagram of a terminal according to embodiment 8 of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Example 1
Referring to fig. 1, an embodiment of the present invention provides a method for sending recommendation information, including:
step 101: receiving content identification information sent by a terminal, wherein the content identification information is used for identifying recommendation information cached by the terminal;
step 102: acquiring recommendation information which is not cached by the terminal according to the content identification information;
step 103: and sending the recommendation information which is not cached by the terminal to the terminal.
Preferably, the content identification information sent by the receiving terminal includes:
and receiving content identifications corresponding to all the recommendation information cached by the terminal and sent by the terminal.
Preferably, the obtaining of the recommendation information that is not cached by the terminal according to the content identification information includes:
acquiring a content identifier corresponding to all recommendation information in the current period;
and if the received content identification is different from the acquired content identification, determining all recommendation information in the current period as recommendation information which is not cached by the terminal.
Preferably, the content identification information sent by the receiving terminal includes:
and receiving a first list sent by the terminal, wherein the first list comprises a content identifier corresponding to each piece of recommendation information cached by the terminal.
Preferably, the obtaining of the recommendation information that is not cached by the terminal according to the content identification information includes:
acquiring a content identifier corresponding to each piece of recommended information in the current period and forming a second list;
acquiring content identifications which do not exist in the first list from the second list;
and determining the recommendation information corresponding to the acquired content identification as recommendation information which is not cached by the terminal.
Further, the method further comprises:
and acquiring the content identifier which does not exist in the second list from the first list, and determining the acquired content identifier as the content identifier of the recommendation information which does not exist in the current period.
Preferably, the sending the recommendation information that is not cached by the terminal to the terminal includes:
generating a recommendation response message, wherein the recommendation response message carries recommendation information which is not cached by the terminal;
and sending the recommendation response message to the terminal.
Further, before sending the recommendation response message to the terminal, the method further includes:
and adding a field in the recommendation response message, and setting the field to carry content identification information for identifying the recommendation information in the current period or setting the field to carry content identification of recommendation information which does not exist in the current period.
Further, after obtaining the recommendation information that the terminal does not cache, the method further includes:
and arranging each piece of recommendation information in the current period to obtain layout information for displaying each piece of recommendation information in the current period, and sending the layout information to the terminal so that the terminal displays each piece of recommendation information in the current period according to the layout information.
Preferably, the recommendation information is channel information,
arranging each piece of recommendation information in the current period to obtain layout information for displaying each piece of recommendation information in the current period, wherein the layout information comprises:
arranging each channel information in the current period to obtain a column number of a column and a row number of a row of each channel information in the current period;
the column number of the column and the row number of the row in which each channel information in the current period is located are determined as layout information for displaying each channel information in the current period.
Preferably, the recommendation information is tag information,
arranging each piece of recommendation information in the current period to obtain layout information for displaying each piece of recommendation information in the current period, wherein the layout information comprises:
respectively selecting a display unit corresponding to each label information according to the size of each label information in the current period;
arranging the display units corresponding to each label information to obtain the column number of the column and the row number of the row of each label information;
and determining the column number of the column where each label information is located, the row number of the row and the identification of the display unit corresponding to each label information as layout information for displaying each label information in the current period.
In the embodiment of the invention, content identification information sent by a terminal is received, and the content identification information is used for identifying recommendation information cached by the terminal; acquiring recommendation information which is not cached by the terminal according to the content identification information; and sending the recommendation information which is not cached by the terminal to the terminal. Because the recommendation information which is not cached in the terminal is obtained according to the content identification, and the recommendation information which is not cached in the terminal is sent to the terminal, the situation that the same recommendation information is obtained and sent to the terminal every time is avoided, and therefore network flow is saved.
Example 2
The embodiment of the invention provides a method for displaying recommendation information.
The server acquires a preset number of pieces of information with the highest user click rate in the previous period as recommendation information in the current period. If the recommendation information cached by the terminal is different from the recommendation information in the current period, the server sends all the recommendation information in the current period to the terminal according to the method provided by the embodiment of the invention.
Referring to fig. 2-1, the method specifically comprises:
step 201: the terminal sends a recommendation request message to the server, wherein the recommendation request message carries content identifications corresponding to all recommendation information cached by the terminal;
the terminal caches all the recommendation information obtained from the server last time, and the terminal can also cache one content identifier corresponding to all the recommendation information obtained from the server last time.
This step can be implemented in first and second ways, including:
firstly, a terminal acquires content identifications corresponding to all recommendation information cached by the terminal, and sends a recommendation request message to a server, wherein the recommendation request message carries the acquired content identifications.
For example, it is assumed that all recommendation information cached by the terminal is recommendation information 1, 2, 3, 4, 5, 6, 7, 8 and 9, and recommendation information 1, 2, 3, 4, 5, 6, 7, 8 and 9 corresponds to a content identifier M1. The terminal acquires content identifications M1 corresponding to all cached recommendation information 1, 2, 3, 4, 5, 6, 7, 8 and 9, and sends a recommendation request message to the server, wherein the recommendation request message carries the acquired content identifications M1.
Secondly, the terminal acquires all the cached recommendation information, calculates a content identifier corresponding to all the recommendation information through a preset algorithm according to all the acquired recommendation information, and sends a recommendation request message to the server, wherein the recommendation request message carries the calculated content identifier.
The preset Algorithm may be a hash Algorithm, and the terminal may calculate one MD5 (Message-Digest Algorithm5, information summarization Algorithm 5) value corresponding to all recommendation information through the hash Algorithm, and use the calculated MD5 value as the content identifier corresponding to all recommendation information.
For example, the terminal acquires all the recommendation information 1, 2, 3, 4, 5, 6, 7, 8 and 9 cached by the terminal, calculates one content identifier M1 corresponding to all the recommendation information 1, 2, 3, 4, 5, 6, 7, 8 and 9 according to all the acquired recommendation information 1, 2, 3, 4, 5, 6, 7, 8 and 9 through a preset algorithm, and sends a recommendation request message to the server, wherein the recommendation request message carries the calculated content identifier M1.
Step 202: the server receives a recommendation request message sent by the terminal and acquires a content identifier corresponding to all recommendation information in the current period;
when the server obtains a preset number of pieces of information with the highest user click rate in the previous period as the recommendation information in the current period, a content identifier is generated according to all the recommendation information in the current period, and only when the server changes the recommendation information in the current period, a content identifier is regenerated according to all the changed recommendation information.
For example, it is assumed that the recommendation information in the current period is recommendation information 1, 2, 4, 5, 7, 8, 10, 11 and 12, and the content corresponding to the recommendation information 1, 2, 4, 5, 7, 8, 10, 11 and 12 is identified as M2. The server receives a recommendation request message sent by the terminal, and acquires a content identifier M2 corresponding to all recommendation information 1, 2, 4, 5, 7, 8, 10, 11, and 12 in the current period.
After the server obtains the content identifier corresponding to the recommendation information in the current period, it determines whether the terminal caches the recommendation information in the current period according to the following operation of step 203.
Step 203: the server compares the content identification carried by the recommendation request message with the acquired content identification, and if the content identification carried by the recommendation request message is different from the acquired content identification, all recommendation information in the current period is determined as recommendation information which is not cached by the terminal;
specifically, the server compares the content identifier carried by the recommendation request message with the acquired content identifier, if the content identifier carried by the recommendation request message is different from the acquired content identifier, the recommendation information cached by the terminal is judged to be different from the recommendation information in the current period, and all the recommendation information in the current period is determined to be the recommendation information which is not cached by the terminal.
For example, the server compares the content identifier M1 carried in the recommendation request message with the obtained content identifier M2, and if the comparison result shows that the two are different, it determines that the recommendation information 1, 2, 3, 4, 5, 6, 7, 8, and 9 cached by the terminal is different from the recommendation information 1, 2, 4, 5, 7, 8, 10, 11, and 12 in the current period, and determines all the recommendation information 1, 2, 4, 5, 7, 8, 10, 11, and 12 in the current period as the recommendation information that the terminal does not cache.
If the content identifier carried by the recommendation request message is the same as the acquired content identifier, the recommendation information cached by the terminal is judged to be the same as the recommendation information in the current period, and the server sends a recommendation response message to the terminal, wherein the recommendation response message carries prompt information which is used for explaining that the recommendation information cached by the terminal is the same as the recommendation information in the current period. And the terminal receives the recommendation response message, acquires the cached recommendation information and displays the cached recommendation information to the user. And finishing the operation.
After determining that the terminal does not cache the recommendation information in the current period, the server sends the recommendation information in the current period, which is not cached by the terminal, to the terminal through the following operations in steps 204 and 205.
Step 204: the server generates a recommendation response message, wherein the recommendation response message carries recommendation information which is not cached by the terminal;
specifically, the server generates a recommendation information file according to the recommendation information not cached by the terminal in a preset format, and generates a recommendation response message, wherein the recommendation response message carries the recommendation information file.
The server and the terminal define the format of the recommended information file in advance, and the format may be a JSON (JavaScript Object Notation) format or the like.
For example, the server generates recommendation information files F1 according to a preset format for recommendation information 1, 2, 4, 5, 7, 8, 10, 11 and 12 that are not cached by the terminal, and generates a recommendation response message, wherein the recommendation response message carries the recommendation information file F1.
Step 205: the server adds a field in the recommendation response message, sets the field to carry content identification information for identifying the recommendation information in the current period, and sends the recommendation response message to the terminal;
specifically, the server adds a field in a recommendation information file carried by the recommendation response message, sets a content identifier corresponding to the recommendation information carried by the field in the current period, and sends the recommendation response message to the terminal.
For example, the server adds a field to the recommendation information file F1 carried in the recommendation response message, sets the content identifier M2 corresponding to the recommendation information 1, 2, 4, 5, 7, 8, 10, 11, and 12 carried in the field in the current period, and sends the recommendation response message to the terminal.
The content identification corresponding to all the recommendation information in the current period can be generated by the terminal according to all the recommendation information in the current period.
Step 206: the terminal receives a recommendation response message sent by the server, and determines each piece of recommendation information in the current period according to the recommendation response message;
specifically, the terminal receives a recommendation response message sent by the server, reads a recommendation information file carried by the recommendation response message, acquires each piece of recommendation information included in the recommendation information file in the current period, and replaces the cached recommendation information and content identification with the recommendation information and content identification included in the recommendation information file.
For example, the terminal receives a recommendation response message sent by the server, reads a recommendation information file F1 carried in the recommendation response message, acquires recommendation information 1, 2, 4, 5, 7, 8, 10, 11, and 12 included in the recommendation information file F1 in the current period, replaces the cached recommendation information 1, 2, 3, 4, 5, 6, 7, 8, and 9 with the recommendation information 1, 2, 4, 5, 7, 8, 10, 11, and 12 included in the recommendation information file F1, and replaces the cached content identifier M1 with the content identifier M2 included in the recommendation information file.
Further, if the recommendation response message does not carry the content identifier corresponding to the recommendation information in the current period, only the cached recommendation information is replaced with the recommendation information included in the recommendation information file in this step.
After the terminal receives each piece of recommendation information in the current period from the server, all pieces of recommendation information in the current period are displayed to the user through the following operations of steps 207 and 208.
Step 207: the terminal arranges each piece of recommendation information in the current period to obtain layout information for displaying each piece of recommendation information in the current period;
wherein the terminal is previously provided with display units of different widths and heights. The size of the recommendation information may be the height and width of the recommendation information. And when the recommendation information is displayed in a screen of the terminal, each recommendation information is separated by a preset width. There are two types of recommendation information, channel information and tag information. The size of each channel information is equal, and the size of each label information is unequal. For two different types of recommendation information, namely channel information and tag information, the step is respectively realized by a first different mode and a second different mode, specifically:
firstly, when the recommendation information is channel information, for each channel information in the current period, the terminal determines the number of display columns for displaying the channel information according to the size of each channel information, the width of a screen of the terminal and the preset width of the interval between each channel information. The terminal arranges each channel information in the current period according to the determined display column number to obtain the column number of the column and the row number of the row where each channel information in the current period is located, and determines the column number of the column and the row number of the row where each channel information in the current period is located as layout information for displaying each channel information in the current period.
For example, assuming that the width and height of each channel information are both 2, the width of the screen of the terminal is 8, and the preset width of the interval between each channel information is 0.5. For the channel information 1, 2, 4, 5, 7, 8, 10, 11 and 12 in the current period, the terminal determines that the number of display columns displaying the channel information is 3 according to that the width of each channel information is 2, the width 8 of the screen of the terminal and the preset width 0.5 of the interval between each channel information. The terminal arranges the channel information 1, 2, 4, 5, 7, 8, 10, 11 and 12 in the current period according to the determined display column number 3, and respectively obtains the column numbers and the row numbers of the columns where the channel information 1, 2, 4, 5, 7, 8, 10, 11 and 12 are located, as shown in table 1. The column number and the row number of each channel information shown in table 1 are determined as layout information for displaying each channel information in the current period.
TABLE 1
Channel information Layout information
1 Column 1, row 1
2 Column 2, row 1
4 Column 3, row 1
5 Column 1, row 2
7 Column 2, row 2
8 Column 3, row 2
10 Column 1, row 3
11 Column 2, row 3
12 Column 3, row 3
Secondly, when the recommended information is label information, for each piece of label information in the current period, the terminal respectively selects a display unit corresponding to each piece of label information according to the size of each piece of label information in the current period. And the terminal determines the number of display columns for displaying the label information according to the size of the display unit corresponding to each label information, the width of the screen of the terminal and the preset width of the interval between each pair of label information. And arranging the display units corresponding to each label information according to the determined display column number to obtain the column number of the column where each label information is located and the row number of the row, and determining the column number of the column where each label information is located, the row number of the row and the display unit corresponding to each label information as layout information for displaying each label information in the current period.
For example, the terminal selects a display unit corresponding to each tag information according to the size of the tag information 1, 2, 4, 5, 7, 8, 10, 11 and 12; as shown in table 2, the corresponding display cell 001 is selected for the label information 1, the corresponding display cell 002 is selected for the label information 2, and the details of the display cells corresponding to the label information 4, 5, 7, 8, 10, 11, and 12 are shown in table 2, but not listed here. The terminal determines that the number of display columns displaying the label information is 2 according to the sizes of the display units corresponding to the label information 1, 2, 4, 5, 7, 8, 10, 11 and 12, the width of the screen of the terminal is 8, and the preset width of the interval between each two label information is 0.5. Tag information 1, 2, 4, 5, 7, 8, 10, 11, and 12 are arranged according to the determined display column number 2, and column numbers and row numbers of columns and rows in which tag information 1, 2, 4, 5, 7, 8, 10, 11, and 12 are located are obtained, respectively, as shown in table 2. The column number and row number of each piece of label information shown in table 2 and the display unit corresponding to each label are determined to be layout information corresponding to each piece of label information for displaying the current week.
TABLE 2
Label information Size of tag information Display unit Layout information
1 Width of 3 and height of 2 001 Column 1, row 1
2 Width of 3 and height of 1 002 Column 2, row 1
4 Width of 3 and height of 1 003 Column 1, row 2
5 Width of 3 and height of 2 004 Column 2, row 2
7 Width of 4 and height of 1 005 Column 1, row 3
8 Width of 2 and height of 1 006 Column 2, row 3
10 Width of 2 and height of 1 007 Column 1, row 4
11 Width of 4 and height of 1 008 Column 2, row 4
12 Width of 5 and height of 1 009 Column 1, row 5
Step 208: and the terminal displays each piece of recommendation information in the current period according to the layout information of each piece of recommendation information in the current period.
The step is realized by a first different mode and a second different mode as follows for two different types of recommendation information, specifically:
first, when the recommendation information is channel information, one display unit is selected for each channel information in the current period, and since the size of each channel information is the same, the display unit corresponding to each channel information is the same. The terminal creates a display interface, respectively places a display unit corresponding to each channel information in the created display interface according to the column number of the column where each channel information is located and the row number of the row, and respectively loads and displays each channel information to the display unit corresponding to each channel information.
For example, one display unit is selected for each channel information in the current period, and since each channel information is the same size and has a width and height of 2, the display unit 002 having a width and height of 2 is selected. The terminal creates a display interface, respectively places a display unit corresponding to each channel information in the created display interface according to the column number of the column where each channel information is located and the row number of the row as shown in table 1, and respectively loads and displays each channel information to the display unit corresponding to each channel information, as shown in fig. 2-2.
Secondly, when the recommended information is label information, the terminal creates a display interface, for each label information in the current period, the terminal respectively places a display unit corresponding to each label information in the created display interface according to the column number and the row number of the column where each label information is located, and loads and displays each label information in the display unit corresponding to each label information.
For example, the terminal creates a display interface, the terminal places a display unit corresponding to each tag information in the created display interface according to the column number of the column and the row number of the row where each tag information is located in the current period as shown in table 2, and loads and displays each tag information in the display unit corresponding to each tag information, as shown in fig. 2-3.
In the embodiment of the present invention, after the server acquires each piece of recommendation information in the current period or acquires each piece of recommendation information in the current period in step 203, the server may arrange corresponding to each piece of recommendation information in the current period to obtain layout information for displaying each piece of recommendation information in the current period, and then send the layout information to the terminal, so that the terminal does not need to acquire the layout information and displays each piece of recommendation information in the current period according to the layout information after receiving the layout information.
For two different types of recommendation information, namely channel information and tag information, the server can obtain the layout information of each recommendation information in a first and a second different manners as follows:
firstly, when the recommendation information is channel information, the server arranges each channel information in the current period to obtain a column number and a row number of a column where each channel information in the current period is located, and determines the column number and the row number of the row where each channel information in the current period is located as layout information for displaying each channel information in the current period.
Secondly, when the recommended information is label information, the server respectively selects a display unit corresponding to each label information according to the size of each label information in the current period; arranging the display units corresponding to each label information to obtain the column number of the column and the row number of the row of each label information; and determining the column number of the column where each label information is located, the row number of the row and the identification of the display unit corresponding to each label information as layout information for displaying each label information in the current period.
In step 204, the recommended information file in JSON format is as follows:
data:
{
discovery:
{
{
name
showtype:0 Default, 1 shows Hot
writer's writing desk
pics picture
}
}
dmd5:'M2'
tag:
{
{
name
num is number of messages under label
hot door with hot 1
bgcolor: the background color giving a color value
}
}
tmd5:'M3'
}
The recommendation information may be divided into various types, such as the channel discovery and the hot tag shown above. Each piece of recommendation information comprises a plurality of parameters, and as shown above, the recommendation information of the channel discovery class comprises a plurality of parameters such as name, display type showtype, file writer, picture pics and the like; the recommended information of the hot tag class includes a name, a message number num, a hot identification hot, a background color bgcolor, and the like.
In step 205, a field is added to the recommendation information file as shown above, and the field is set to carry the content identifier corresponding to the recommendation information in the current period, as shown above, the field dmd5 is added, the field dmd5 is set to carry the content identifier M2 corresponding to the recommendation information of the channel discovery class, the field tmd5 is added, and the field tmd5 is set to carry the content identifier M3 corresponding to the recommendation information of the hot tag class.
In the embodiment of the invention, content identification information sent by a terminal is received, and the content identification information is used for identifying all recommendation information cached by the terminal; acquiring recommendation information which is not cached by the terminal according to the content identification information; and sending the recommendation information which is not cached by the terminal to the terminal. Because the recommendation information which is not cached in the terminal is obtained according to the content identification, and the recommendation information which is not cached in the terminal is sent to the terminal, the situation that the same recommendation information is obtained and sent to the terminal every time is avoided, and therefore network flow is saved.
Example 3
The embodiment of the invention provides a method for displaying recommendation information.
The server acquires a preset number of pieces of information with the highest user click rate in the previous period as recommendation information in the current period. If the recommendation information which is not cached by the terminal exists in the recommendation information in the current period, the server sends the recommendation information which is not cached by the terminal to the terminal according to the method provided by the embodiment of the invention.
Referring to fig. 3, the method specifically includes:
step 301: the terminal sends a recommendation request message to the server, wherein the recommendation request message carries a first list, and the first list comprises content identifications corresponding to each piece of recommendation information cached by the terminal;
the terminal caches each piece of recommendation information obtained from the server last time, and the terminal can also cache a content identifier corresponding to each piece of recommendation information obtained from the server last time.
This step can be implemented in first and second ways, including:
firstly, a terminal acquires content identification corresponding to each piece of recommendation information cached by the terminal, the acquired content identification corresponding to each piece of recommendation information forms a first list, and a recommendation request message is sent to a server, wherein the recommendation request message carries the first list.
For example, it is assumed that the recommendation information cached by the terminal is recommendation information 1, 2, 3, 4, 5, 6, 7, 8 and 9, and the content identifiers corresponding to the recommendation information 1, 2, 3, 4, 5, 6, 7, 8 and 9 are shown in table 3. The terminal respectively acquires the content identifiers corresponding to the cached recommendation information 1, 2, 3, 4, 5, 6, 7, 8 and 9, the acquired content identifiers form a first List List1, and a recommendation request message is sent to the server, wherein the recommendation request message carries the first List List 1.
TABLE 3
Recommendation information Content identification
1 M1
2 M2
3 M3
4 M4
5 M5
6 M6
7 M7
8 M8
9 M9
Secondly, the terminal acquires each piece of cached recommendation information, respectively calculates content identification corresponding to each piece of recommendation information through a preset algorithm according to each piece of acquired recommendation information, forms the calculated content identification corresponding to each piece of recommendation information into a first list, and sends a recommendation request message to the server, wherein the recommendation request message carries the first list.
The preset Algorithm may be a hash Algorithm, and the terminal may respectively calculate a MD5 (Message-Digest Algorithm5, information summarization Algorithm 5) value corresponding to each piece of recommendation information through the hash Algorithm, and use the calculated MD5 value corresponding to each piece of recommendation information as the content identifier corresponding to each piece of recommendation information.
For example, the terminal obtains recommendation information 1, 2, 3, 4, 5, 6, 7, 8, and 9 cached by the terminal, calculates content identifiers corresponding to the recommendation information 1, 2, 3, 4, 5, 6, 7, 8, and 9 respectively according to the obtained recommendation information 1, 2, 3, 4, 5, 6, 7, 8, and 9 respectively through a preset algorithm, as shown in table 3, combines the content identifiers corresponding to the calculated recommendation information 1, 2, 3, 4, 5, 6, 7, 8, and 9 respectively into a first List1, and sends a recommendation request message to the server, where the recommendation request message carries the first List 1.
Step 302: the server receives a recommendation request message sent by the terminal, acquires a content identifier corresponding to each recommendation message in the current period and forms a second list;
specifically, the server receives a recommendation request message sent by the terminal, acquires a content identifier corresponding to each piece of recommendation information in the current period, and forms a second list with the content identifiers corresponding to each piece of acquired recommendation information.
For example, it is assumed that the recommendation information in the current period is recommendation information 1, 2, 4, 5, 7, 8, 10, 11, and 12, and the content identifier corresponding to each recommendation information in the current period is shown in table 4. The server receives a recommendation request message sent by the terminal, respectively acquires content identifiers corresponding to recommendation information 1, 2, 4, 5, 7, 8, 10, 11, and 12 in the current period, and forms a second List2 with the acquired content identifiers.
TABLE 4
Recommendation information Content identification
1 M1
2 M2
4 M4
5 M5
7 M7
8 M8
10 M10
11 M11
12 M12
After the server obtains the content identifier corresponding to each piece of recommendation information in the current period, it determines whether the terminal caches the recommendation information in the current period through the operations of steps 303 and 304 as shown below.
Step 303: the server acquires the content identification which does not exist in the first list from the second list;
specifically, the server obtains a content identifier from the second list, searches the first list, and determines the content identifier as the content identifier to be obtained if the content identifier does not exist in the first list. And for each content identifier in the second list except the content identifier, acquiring the content identifier which does not exist in the first list together with the content identifier according to the operation.
For example, the server obtains a content identifier from the content identifiers M1, M2, M4, M5, M7, M8, M10, M11, and M12 included in the second List2, and assuming that the obtained content identifier is M10, searches the content identifiers M1, M2, M3, M4, M5, M6, M7, M8, and M9 included in the first List1, and determines that the content identifier M10 is a content identifier that needs to be obtained if the content identifier M10 does not exist in the first List 1. The content identifications M11 and M12 that do not exist in the first List1 are also obtained from the second List2 in the above-described manner.
If the content identifiers included in the first list and the content identifiers included in the second list are the same, the recommendation information cached by the terminal is judged to be the same as the recommendation information in the current period, the server sends a recommendation response message to the terminal, the recommendation response message carries prompt information, and the prompt information is used for indicating that the recommendation information cached by the terminal is the same as the recommendation information in the current period. And the terminal receives the recommendation response message, acquires the cached recommendation information and displays the cached recommendation information to the user. And finishing the operation.
Step 304: the server determines the recommendation information corresponding to the acquired content identification as recommendation information which is not cached by the terminal;
for example, the server determines the recommendation information 10, 11 and 12 corresponding to the acquired content identifiers M10, M11 and M12, respectively, as recommendation information that the terminal does not cache.
After determining that the terminal does not cache the recommendation information in the current period, the server further needs to determine the recommendation information cached by the terminal and not in the current period through the following step 305.
Step 305: the server acquires the content identification which does not exist in the second list from the first list, and determines the acquired content identification as the content identification of the recommendation information which does not exist in the current period;
specifically, the server obtains a content identifier from the first list, searches for the second list, determines that the content identifier is not the content identifier corresponding to the recommendation information in the current period if the content identifier does not exist in the second list because the content identifiers included in the second list are all the content identifiers corresponding to the recommendation information in the current period, and determines that the content identifier is the content identifier of the recommendation information which does not exist in the current period.
And judging whether each content identifier is the content identifier of the recommendation information which does not exist in the current period or not according to the operation of each content identifier except the content identifier in the first list and the content identifier.
For example, the server obtains a content identifier from the content identifiers M1, M2, M3, M4, M5, M6, M7, M8, and M9 included in the first List1, and assuming that the obtained content identifier is M3, searches for the content identifiers M1, M2, M4, M5, M7, M8, M10, M11, and M12 included in the second List2, and determines that the content identifier M3 does not exist in the second List2, determines that the content identifier M3 is not a content identifier corresponding to recommendation information in the current period, and determines that the content identifier M3 is a content identifier of recommendation information that does not exist in the current period. The content identifiers M6 and M9 that do not exist in the second List2 are also obtained from the first List1 in the above-described manner, and the obtained content identifiers M3, M6, and M9 are determined as the content identifiers of the recommendation information that does not exist in the current period.
After the server determines that the terminal does not cache the recommendation information in the current period and the terminal caches the recommendation information not in the current period, the server sends the terminal the recommendation information not cached in the current period and the content identifier of the recommendation information cached in the terminal not in the current period to the terminal through the following operations in steps 306 and 307.
Step 306: the server generates a recommendation response message, wherein the recommendation response message carries recommendation information which is not cached by the terminal;
specifically, the server generates a recommendation information file according to the recommendation information which is not cached by the terminal and a preset format, and generates a recommendation response message, wherein the recommendation response message carries the recommendation information file.
The server and the terminal define the format of the recommended information file in advance, and the format may be a JSON (JavaScript Object Notation) format or the like.
For example, the server generates a recommendation information file F1 according to a preset format for the recommendation information 10, 11, and 12 that the terminal does not cache, and generates a recommendation response message, where the recommendation information file F1 is carried in the recommendation response message.
Step 307: the server adds a field in the recommendation response message, sets the content identification of the recommendation information which does not exist in the field in the current period, and sends the recommendation response message to the terminal;
specifically, the server adds a field in a recommendation information file carried by the recommendation response message, sets a content identifier corresponding to the recommendation information which does not exist in the current period and sends the recommendation response message to the terminal.
For example, the server adds a field to the recommendation information file F1 carried in the recommendation response message, sets the content identifiers M3, M6, and M9 respectively corresponding to the recommendation information 3, 6, and 9 that does not exist in the current period in the field, and sends the recommendation response message to the terminal.
Step 308: the terminal receives a recommendation response message sent by the server, and determines each piece of recommendation information in the current period according to the recommendation response message;
specifically, the terminal receives a recommendation response message sent by the server, reads a recommendation information file carried by the recommendation response message, acquires recommendation information which is included in the recommendation information file and is not cached by the terminal, and removes the recommendation information which does not exist in the current period from the cached recommendation information according to a content identifier of the recommendation information which does not exist in the current period and is included in the recommendation information file. And determining the rest recommendation information and recommendation information which is not cached by the terminal as each recommendation information in the current period.
For example, the terminal receives a recommendation response message sent by the server, reads a recommendation information file F1 carried in the recommendation response message, acquires recommendation information 10, 11, and 12 included in the recommendation information file F1, and removes recommendation information 3, 6, and 9 that does not exist in the current period from the cached recommendation information 1, 2, 3, 4, 5, 6, 7, 8, and 9 according to content identifiers M3, M6, and M9 that respectively correspond to recommendation information 3, 6, and 9 that does not exist in the current period included in the recommendation information file F1. The remaining recommendation information 1, 2, 4, 5, 7 and 8 and the recommendation information 10, 11 and 12 not cached by the terminal are determined as each recommendation information in the current period.
Further, after the terminal determines each piece of recommendation information in the current period, the terminal updates the cached recommendation information to each piece of recommendation information in the current period.
After determining each piece of recommendation information in the current period, the terminal displays each piece of recommendation information in the current period to the user through the following operations of steps 309 and 310.
Step 309: the terminal arranges each piece of recommendation information in the current period to obtain layout information for displaying each piece of recommendation information in the current period;
wherein the terminal is previously provided with display units of different widths and heights. The size of the recommendation information may be the height and width of the recommendation information. And when the recommendation information is displayed in a screen of the terminal, each recommendation information is separated by a preset width. There are two types of recommendation information, channel information and tag information. The size of each channel information is equal, and the size of each label information is unequal. For two different types of recommendation information, namely channel information and tag information, the step is respectively realized by a first different mode and a second different mode, specifically:
firstly, when the recommendation information is channel information, for each channel information in the current period, the terminal determines the number of display columns for displaying the channel information according to the size of each channel information, the width of a screen of the terminal and the preset width of the interval between each channel information. The terminal arranges each channel information in the current period according to the determined display column number to obtain the column number of the column and the row number of the row of each channel information in the current period, and determines the column number of the column and the row number of the row of each channel information in the current period as layout information for displaying each channel information in the current period.
For example, assuming that the width and height of each channel information are both 2, the width of the screen of the terminal is 8, and the preset width of the interval between each channel information is 0.5. For the channel information 1, 2, 4, 5, 7, 8, 10, 11 and 12 in the current period, the terminal determines that the number of display columns displaying the channel information is 3 according to that the width of each channel information is 2, the width 8 of the screen of the terminal and the preset width 0.5 of the interval between each channel information. The terminal arranges the channel information 1, 2, 4, 5, 7, 8, 10, 11 and 12 in the current period according to the determined display column number 3, and respectively obtains the column numbers and the row numbers of the columns where the channel information 1, 2, 4, 5, 7, 8, 10, 11 and 12 are located, as shown in table 1. The column number and the row number of each channel information shown in table 1 are determined as layout information for displaying each channel information in the current period.
Secondly, when the recommended information is label information, for each piece of label information in the current period, the terminal respectively selects a display unit corresponding to each piece of label information according to the size of each piece of label information in the current period. And the terminal determines the number of display columns for displaying the label information according to the size of the display unit corresponding to each label information, the width of the screen of the terminal and the preset width of the interval between each pair of label information. And arranging the display units corresponding to each label information according to the determined display column number to obtain the column number of the column where each label information is located and the row number of the row, and determining the column number of the column where each label information is located, the row number of the row and the display unit corresponding to each label information as layout information for displaying each label information in the current period.
For example, the terminal selects a display unit corresponding to each tag information according to the size of the tag information 1, 2, 4, 5, 7, 8, 10, 11 and 12; as shown in table 2, the corresponding display cell 001 is selected for the label information 1, the corresponding display cell 002 is selected for the label information 2, and the details of the display cells corresponding to the label information 4, 5, 7, 8, 10, 11, and 12 are shown in table 2, but not listed here. The terminal determines that the number of display columns displaying the label information is 2 according to the sizes of the display units corresponding to the label information 1, 2, 4, 5, 7, 8, 10, 11 and 12, the width of the screen of the terminal is 8, and the preset width of the interval between each two label information is 0.5. Tag information 1, 2, 4, 5, 7, 8, 10, 11, and 12 are arranged according to the determined display column number 2, and column numbers and row numbers of columns and rows in which tag information 1, 2, 4, 5, 7, 8, 10, 11, and 12 are located are obtained, respectively, as shown in table 2. The column number and row number of each piece of label information shown in table 2 and the display unit corresponding to each label are determined to be layout information corresponding to each piece of label information for displaying the current week.
Step 310: and the terminal displays each piece of recommendation information in the current period according to the layout information of each piece of recommendation information in the current period.
The step is realized by a first different mode and a second different mode as follows for two different types of recommendation information, specifically:
first, when the recommendation information is channel information, one display unit is selected for each channel information in the current period, and since the size of each channel information is the same, the display unit corresponding to each channel information is the same. The terminal creates a display interface, respectively places a display unit corresponding to each channel information in the created display interface according to the column number of the column where each channel information is located and the row number of the row, and respectively loads and displays each channel information to the display unit corresponding to each channel information.
For example, one display unit is selected for each channel information in the current period, and since each channel information is the same size and has a width and height of 2, the display unit 002 having a width and height of 2 is selected. The terminal creates a display interface, respectively places a display unit corresponding to each channel information 1 in the created display interface according to the column number of the column where each channel information is located and the row number of the row as shown in table 1, and respectively loads and displays each channel information to the display unit corresponding to each channel information, as shown in fig. 2-2.
Secondly, when the recommended information is label information, the terminal creates a display interface, for each label information in the current period, the terminal respectively places a display unit corresponding to each label information in the created display interface according to the column number and the row number of the column where each label information is located, and loads and displays each label information in the display unit corresponding to each label information.
For example, the terminal creates a display interface, the terminal places a display unit corresponding to each tag information in the created display interface according to the column number of the column and the row number of the row where each tag information is located in the current period as shown in table 2, and loads and displays each tag information in the display unit corresponding to each tag information, as shown in fig. 2-3.
In the embodiment of the present invention, after the server acquires each piece of recommendation information in the current period or acquires recommendation information that is not cached by the terminal in step 304, the server may arrange corresponding to each piece of recommendation information in the current period to obtain layout information for displaying each piece of recommendation information in the current period, and then send the layout information to the terminal, so that the terminal does not need to acquire the layout information and displays each piece of recommendation information in the current period according to the layout information after receiving the layout information.
For two different types of recommendation information, namely channel information and tag information, the server can acquire layout information in a first different mode and a second different mode, specifically:
firstly, when the recommendation information is channel information, the server arranges each channel information in the current period to obtain a column number and a row number of a column where each channel information in the current period is located, and determines the column number and the row number of the row where each channel information in the current period is located as layout information for displaying each channel information in the current period.
Secondly, when the recommended information is label information, the server respectively selects a display unit corresponding to each label information according to the size of each label information in the current period; arranging the display units corresponding to each label information to obtain the column number of the column and the row number of the row of each label information; and determining the column number of the column where each label information is located, the row number of the row and the identification of the display unit corresponding to each label information as layout information for displaying each label information in the current period.
In step 306, the recommended information file in JSON format is as follows:
data:
{
discovery:
{
{
name
showtype:0 Default, 1 shows Hot
writer's writing desk
pics picture
}
}
dmd5:'M2'
tag:
{
{
name
num is number of messages under label
hot door with hot 1
bgcolor: the background color giving a color value
}
}
tmd5:'M3'
}
The recommendation information may be divided into various types, such as the channel discovery and the hot tag shown above. Each piece of recommendation information comprises a plurality of parameters, and as shown above, the recommendation information of the channel discovery class comprises a plurality of parameters such as name, display type showtype, file writer, picture pics and the like; the recommended information of the hot tag class includes a name, a message number num, a hot identification hot, a background color bgcolor, and the like.
In step 307, a field is added to the recommendation information file as described above, and the field is set to carry the content identifier corresponding to the recommendation information in the current period, as described above, the field dmd5 is added, the field dmd5 is set to carry the content identifier M2 corresponding to the recommendation information of the channel discovery class, the field tmd5 is added, and the field tmd5 is set to carry the content identifier M3 corresponding to the recommendation information of the hot tag class.
In the embodiment of the invention, a first list sent by a terminal is received, wherein the first list comprises a content identifier corresponding to each piece of recommendation information cached by the terminal; acquiring recommendation information which is not cached by the terminal according to the content identification included in the first list; and sending the recommendation information which is not cached by the terminal to the terminal. Because the recommendation information which is not cached by the terminal is obtained according to the content identification included in the first list, and the recommendation information which is not cached by the terminal is sent to the terminal, the situation that the same recommendation information is obtained and sent to the terminal every time is avoided, and therefore network flow is saved.
Example 4
Referring to fig. 4, an embodiment of the present invention provides a method for displaying recommendation information, including:
step 401: sending content identification information corresponding to the recommendation information cached by the terminal to a server, so that the server obtains the recommendation information which is not cached by the terminal;
step 402: determining each piece of recommendation information in the current period according to recommendation information which is not cached by the terminal;
step 403, obtaining layout information for displaying each piece of recommended information in the current period;
step 404: and displaying each piece of recommendation information in the current period according to the layout information.
Preferably, determining each piece of recommendation information in the current period according to recommendation information that is not cached by the terminal includes:
receiving a content identifier of non-existing recommendation information sent by a server in the current period;
removing the recommendation information which does not exist in the current period from the recommendation information cached by the terminal according to the content identification of the recommendation information which does not exist in the current period;
and determining the rest recommendation information and recommendation information which is not cached by the terminal as each recommendation information in the current period.
Preferably, the obtaining of the layout information for displaying each piece of recommendation information in the current period includes:
receiving layout information of each piece of recommendation information in the current period, which is sent by a server; alternatively, the first and second electrodes may be,
and arranging each piece of recommendation information in the current period to obtain layout information for displaying each piece of recommendation information in the current period.
Preferably, the recommendation information is channel information,
arranging each piece of recommendation information in the current period to obtain layout information for displaying each piece of recommendation information in the current period, wherein the layout information comprises:
arranging each channel information in the current period to obtain a column number of a column and a row number of a row of each channel information in the current period;
the column number of the column and the row number of the row in which each channel information in the current period is located are determined as layout information for displaying each channel information in the current period.
Preferably, the recommendation information is tag information,
arranging each piece of recommendation information in the current period to obtain layout information for displaying each piece of recommendation information in the current period, wherein the layout information comprises:
respectively selecting a display unit corresponding to each label information according to the size of each label information in the current period;
arranging the display units corresponding to each label information to obtain the column number of the column and the row number of the row of each label information;
and determining a column number of a column in which each label information is positioned, a row number of a row and a display unit corresponding to each label information as layout information for displaying each label information in the current period.
In the embodiment of the invention, the content identification information corresponding to the recommendation information cached by the terminal is sent to the server, so that the server obtains the recommendation information which is not cached by the terminal; determining each piece of recommendation information in the current period according to recommendation information which is not cached by the terminal; obtaining layout information for displaying each piece of recommended information in the current period; and displaying each piece of recommendation information in the current period according to the layout information. The server acquires the recommendation information which is not cached by the terminal according to the content identification and sends the recommendation information which is not cached by the terminal to the terminal, and the terminal determines each recommendation information in the current period according to the received recommendation information and displays each recommendation information in the current period, so that the situation that the same recommendation information is received from the server and displayed every time is avoided, and the network flow is saved.
Example 5
Referring to fig. 5, an embodiment of the present invention provides an apparatus for sending recommendation information, including:
a receiving module 501, configured to receive content identification information sent by a terminal, where the content identification information is used to identify recommendation information cached by the terminal;
an obtaining module 502, configured to obtain recommendation information that is not cached by the terminal according to the content identification information;
a sending module 503, configured to send the recommendation information that is not cached by the terminal to the terminal.
The content identification information is a content identification corresponding to all recommendation information cached by the terminal;
the obtaining module 502 includes:
the first obtaining unit is used for obtaining a content identifier corresponding to all recommendation information in the current period;
and the first determining unit is used for determining all recommendation information in the current period as the recommendation information which is not cached by the terminal if the received content identification is different from the acquired content identification.
The content identification information is a first list, and the first list comprises a content identification corresponding to each piece of recommendation information cached by the terminal;
the obtaining module 502 includes:
the second obtaining unit is used for obtaining a content identifier corresponding to each piece of recommendation information in the current period and forming a second list;
and the third acquisition unit is used for acquiring the content identifiers which do not exist in the first list from the second list and determining the recommendation information corresponding to the acquired content identifiers as the recommendation information which is not cached by the terminal.
Further, the apparatus further comprises:
and the acquisition determining module is used for acquiring the content identifier which does not exist in the second list from the first list, determining the acquired content identifier as the content identifier of the recommendation information which does not exist in the current period, and sending the content identifier of the recommendation information which does not exist in the current period to the terminal.
Further, the apparatus further comprises:
and the arrangement sending module is used for arranging each piece of recommendation information in the current period to obtain layout information for displaying each piece of recommendation information in the current period, and sending the layout information to the terminal so that the terminal displays each piece of recommendation information in the current period according to the layout information.
Wherein, the recommendation information is the channel information,
the arrangement transmission module includes:
the first arranging unit is used for arranging each channel information in the current period to obtain a column number of a column and a row number of a row of each channel information in the current period;
and a second determining unit configured to determine a column number of a column and a row number of a row in which each channel information in the current period is located as layout information for displaying each channel information in the current period.
Wherein, the recommendation information is label information,
the arrangement transmission module includes:
the selection unit is used for respectively selecting the display unit corresponding to each label information according to the size of each label information in the current period;
the second arrangement unit is used for arranging the display unit corresponding to each label information to obtain the column number of the column and the row number of the row of each label information;
and the third determining unit is used for determining the column number and the row number of the column where each piece of label information is located and the identification of the display unit corresponding to each piece of label information as the layout information for displaying each piece of label information in the current period.
In the embodiment of the invention, content identification information sent by a terminal is received, and the content identification information is used for identifying recommendation information cached by the terminal; acquiring recommendation information which is not cached by the terminal according to the content identification information; and sending the recommendation information which is not cached by the terminal to the terminal. Because the recommendation information which is not cached in the terminal is obtained according to the content identification, and the recommendation information which is not cached in the terminal is sent to the terminal, the situation that the same recommendation information is obtained and sent to the terminal every time is avoided, and therefore network flow is saved.
Example 6
Referring to fig. 6, an embodiment of the present invention provides an apparatus for displaying recommendation information, including:
a sending module 601, configured to send content identification information corresponding to recommendation information cached by the terminal to the server, so that the server obtains recommendation information that is not cached by the terminal;
a determining module 602, configured to determine each piece of recommendation information in a current period according to recommendation information that is not cached by the terminal;
an obtaining module 603, configured to obtain layout information for displaying each piece of recommendation information in a current period;
a display module 604, configured to display each piece of recommendation information in the current period according to the layout information.
Wherein the determining module 602 includes:
the first receiving unit is used for receiving the content identification of the recommendation information which does not exist in the current period and is sent by the server;
the removing unit is used for removing the recommendation information which does not exist in the current period from the recommendation information cached by the terminal according to the content identification of the recommendation information which does not exist in the current period;
and the determining unit is used for determining the rest recommendation information and the recommendation information which is not cached by the terminal as each recommendation information in the current period.
Wherein, the obtaining module 603 includes:
the second receiving unit is used for receiving the layout information of each piece of recommendation information in the current period, which is sent by the server; alternatively, the first and second electrodes may be,
and the arrangement unit is used for arranging each piece of recommendation information in the current period to obtain layout information for displaying each piece of recommendation information in the current period.
Wherein, the recommendation information is the channel information,
the arrangement unit includes:
the first arrangement subunit is used for arranging each channel information in the current period to obtain a column number of a column and a row number of a row of each channel information in the current period;
and the first determining subunit is used for determining the column number of the column and the row number of the row in which each channel information in the current period is positioned as the layout information for displaying each channel information in the current period.
Wherein, the recommendation information is label information,
the arrangement unit includes:
the selection subunit is used for respectively selecting a display unit corresponding to each label information according to the size of each label information in the current period;
the second arrangement subunit is used for arranging the display units corresponding to each piece of label information to obtain the column number of the column and the row number of the row of each piece of label information;
and the second determining subunit is used for determining the column number of the column in which each piece of label information is located, the row number of the row and the display unit corresponding to each piece of label information as the layout information for displaying each piece of label information in the current period.
In the embodiment of the invention, the content identification information corresponding to the recommendation information cached by the terminal is sent to the server, so that the server obtains the recommendation information which is not cached by the terminal; determining each piece of recommendation information in the current period according to recommendation information which is not cached by the terminal; obtaining layout information for displaying each piece of recommended information in the current period; and displaying each piece of recommendation information in the current period according to the layout information. The server acquires the recommendation information which is not cached by the terminal according to the content identification and sends the recommendation information which is not cached by the terminal to the terminal, and the terminal determines each recommendation information in the current period according to the received recommendation information and displays each recommendation information in the current period, so that the situation that the same recommendation information is received from the server and displayed every time is avoided, and the network flow is saved.
Example 7
Fig. 7 is a schematic structural diagram of a server according to an embodiment of the present invention. The server 1900, which may vary widely in configuration or performance, may include one or more Central Processing Units (CPUs) 1922 (e.g., one or more processors) and memory 1932, one or more storage media 1930 (e.g., one or more mass storage devices) storing applications 1942 or data 1944. Memory 1932 and storage medium 1930 can be, among other things, transient or persistent storage. The program stored in the storage medium 1930 may include one or more modules (not shown), each of which may include a series of instructions operating on a server. Still further, a central processor 1922 may be provided in communication with the storage medium 1930 to execute a series of instruction operations in the storage medium 1930 on the server 1900.
The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input-output interfaces 1958, one or more keyboards 1956, and/or one or more operating systems 1941, such as Windows Server, Mac OSXTM, UnixTM, LinuxTM, FreeBSDTM, etc.
Server 1900 may include memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors include instructions for:
receiving content identification information sent by a terminal, wherein the content identification information is used for identifying recommendation information cached by the terminal;
acquiring recommendation information which is not cached by the terminal according to the content identification information;
and sending the recommendation information which is not cached by the terminal to the terminal.
Preferably, the content identification information sent by the receiving terminal includes:
and receiving content identifications corresponding to all the recommendation information cached by the terminal and sent by the terminal.
Preferably, the obtaining of the recommendation information that is not cached by the terminal according to the content identification information includes:
acquiring a content identifier corresponding to all recommendation information in the current period;
and if the received content identification is different from the obtained content identification, determining the obtained recommendation information as recommendation information which is not cached by the terminal.
Preferably, the content identification information sent by the receiving terminal includes:
and receiving a first list sent by the terminal, wherein the first list comprises a content identifier corresponding to each piece of recommendation information cached by the terminal.
Preferably, the obtaining of the recommendation information that is not cached by the terminal according to the content identification information includes:
acquiring a content identifier corresponding to each piece of recommended information in the current period and forming a second list;
acquiring content identifications which do not exist in the first list from the second list;
and determining the recommendation information corresponding to the acquired content identification as recommendation information which is not cached by the terminal.
Preferably, the method further comprises:
and acquiring the content identification which does not exist in the second list from the first list, determining the acquired content identification as the content identification of the recommendation information which does not exist in the current period, and sending the content identification of the recommendation information which does not exist in the current period to the terminal.
Preferably, the sending the recommendation information that is not cached by the terminal to the terminal includes:
generating a recommendation response message, wherein the recommendation response message carries recommendation information which is not cached by the terminal;
and sending the recommendation response message to the terminal.
Preferably, before sending the recommendation response message to the terminal, the method further includes:
and adding a field in the recommendation response message, wherein the set field carries content identification information for identifying the recommendation information in the current period or carries the content identification of the recommendation information which does not exist in the current period.
Further, after obtaining the recommendation information that the terminal does not cache, the method further includes:
and arranging each piece of recommendation information in the current period to obtain layout information for displaying each piece of recommendation information in the current period, and sending the layout information to the terminal so that the terminal displays each piece of recommendation information in the current period according to the layout information.
Preferably, the recommendation information is channel information,
arranging each piece of recommendation information in the current period to obtain layout information for displaying each piece of recommendation information in the current period, wherein the layout information comprises:
arranging each channel information in the current period to obtain a column number of a column and a row number of a row of each channel information in the current period;
the column number of the column and the row number of the row in which each channel information in the current period is located are determined as layout information for displaying each channel information in the current period.
Preferably, the recommendation information is tag information,
arranging each piece of recommendation information in the current period to obtain layout information for displaying each piece of recommendation information in the current period, wherein the layout information comprises:
respectively selecting a display unit corresponding to each label information according to the size of each label information in the current period;
arranging the display units corresponding to each label information to obtain the column number of the column and the row number of the row of each label information;
and determining the column number of the column where each label information is located, the row number of the row and the identification of the display unit corresponding to each label information as layout information for displaying each label information in the current period.
In the embodiment of the invention, content identification information sent by a terminal is received, and the content identification information is used for identifying recommendation information cached by the terminal; acquiring recommendation information which is not cached by the terminal according to the content identification information; and sending the recommendation information which is not cached by the terminal to the terminal. Because the recommendation information which is not cached in the terminal is obtained according to the content identification, and the recommendation information which is not cached in the terminal is sent to the terminal, the situation that the same recommendation information is obtained and sent to the terminal every time is avoided, and therefore network flow is saved.
Example 8
Referring to fig. 8, a schematic structural diagram of a terminal with a touch-sensitive surface according to an embodiment of the present invention is shown, where the terminal may be used to implement the method for displaying recommendation information provided in the above-described embodiment. Specifically, the method comprises the following steps:
the terminal 900 may include RF (Radio Frequency) circuitry 110, memory 120 including one or more computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, audio circuitry 160, a WiFi (wireless fidelity) module 170, a processor 180 including one or more processing cores, and a power supply 190. Those skilled in the art will appreciate that the terminal structure shown in fig. 8 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information from a base station and then sends the received downlink information to the one or more processors 180 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 110 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the RF circuitry 110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (short messaging Service), etc.
The memory 120 may be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by operating the software programs and modules stored in the memory 120. The memory 120 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 by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal 900, and the like. Further, the memory 120 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 volatile solid state storage device. Accordingly, the memory 120 may further include a memory controller to provide the processor 180 and the input unit 130 with access to the memory 120.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to a user and various graphical user interfaces of the terminal 900, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in FIG. 8, touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The terminal 900 can also include at least one sensor 150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the terminal 900 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor may detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the mobile phone is stationary, and may be used for applications of recognizing gestures of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and tapping), and other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor that may be configured in the terminal 900, which are not described herein again.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and terminal 900. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuitry 160 may also include an earbud jack to provide communication of peripheral headphones with the terminal 900.
WiFi belongs to a short-distance wireless transmission technology, and the terminal 900 can help a user send and receive e-mails, browse web pages, access streaming media, and the like through the WiFi module 170, and it provides wireless broadband internet access for the user. Although fig. 8 shows the WiFi module 170, it is understood that it does not belong to the essential constitution of the terminal 900 and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the terminal 900, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal 900 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the mobile phone. Optionally, processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
Terminal 900 also includes a power supply 190 (e.g., a battery) for powering the various components, which may preferably be logically coupled to processor 180 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal 900 may further include a camera, a bluetooth module, etc., which will not be described herein. Specifically, in this embodiment, the display unit of the terminal 900 is a touch screen display, the terminal 900 further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
sending content identification information corresponding to the recommendation information cached by the terminal to a server, so that the server obtains the recommendation information which is not cached by the terminal;
determining each piece of recommendation information in the current period according to recommendation information which is not cached by the terminal;
obtaining layout information for displaying each piece of recommended information in the current period;
and displaying each piece of recommendation information in the current period according to the layout information.
Preferably, determining each piece of recommendation information in the current period according to recommendation information that is not cached by the terminal includes:
receiving a content identifier of non-existing recommendation information sent by a server in the current period;
removing the recommendation information which does not exist in the current period from the recommendation information cached by the terminal according to the content identification of the recommendation information which does not exist in the current period;
and determining the rest recommendation information and recommendation information which is not cached by the terminal as each recommendation information in the current period.
Preferably, the obtaining of the layout information for displaying each piece of recommendation information in the current period includes:
receiving layout information of each piece of recommendation information in the current period, which is sent by a server; alternatively, the first and second electrodes may be,
and arranging each piece of recommendation information in the current period to obtain layout information for displaying each piece of recommendation information in the current period.
Preferably, the recommendation information is channel information,
arranging each piece of recommendation information in the current period to obtain layout information for displaying each piece of recommendation information in the current period, wherein the layout information comprises:
arranging each channel information in the current period to obtain a column number of a column and a row number of a row of each channel information in the current period;
the column number of the column and the row number of the row in which each channel information in the current period is located are determined as layout information for displaying each channel information in the current period.
Preferably, the recommendation information is tag information,
arranging each piece of recommendation information in the current period to obtain layout information for displaying each piece of recommendation information in the current period, wherein the layout information comprises:
respectively selecting a display unit corresponding to each label information according to the size of each label information in the current period;
arranging the display units corresponding to each label information to obtain the column number of the column and the row number of the row of each label information;
and determining a column number of a column in which each label information is positioned, a row number of a row and a display unit corresponding to each label information as layout information for displaying each label information in the current period.
In the embodiment of the invention, the content identification information corresponding to the recommendation information cached by the terminal is sent to the server, so that the server obtains the recommendation information which is not cached by the terminal; determining each piece of recommendation information in the current period according to recommendation information which is not cached by the terminal; obtaining layout information for displaying each piece of recommended information in the current period; and displaying each piece of recommendation information in the current period according to the layout information. The server acquires the recommendation information which is not cached by the terminal according to the content identification and sends the recommendation information which is not cached by the terminal to the terminal, and the terminal determines each recommendation information in the current period according to the received recommendation information and displays each recommendation information in the current period, so that the situation that the same recommendation information is received from the server and displayed every time is avoided, and the network flow is saved.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (25)

1. A method for sending recommendation information, the method comprising:
receiving content identification information sent by a terminal, wherein the content identification information is used for identifying recommendation information cached by the terminal;
acquiring recommendation information which is not cached by the terminal according to the content identification information;
sending recommendation information which is not cached by the terminal to the terminal, so that the terminal obtains different display units respectively corresponding to the recommendation information according to the recommendation information, obtains layout information for displaying the recommendation information according to the display units, the display units are used for loading the recommendation information, respectively placing the display units corresponding to each recommendation information according to the preset width of the interval between each recommendation information in the current period in a created display interface according to the layout information, respectively loading the recommendation information to the corresponding display units and displaying the recommendation information, and the terminal is provided with the display units with different widths and heights in advance.
2. The method according to claim 1, wherein the content identification information is a content identification corresponding to all recommended information cached by the terminal;
the obtaining of the recommendation information that is not cached by the terminal according to the content identification information includes:
acquiring a content identifier corresponding to all recommendation information in the current period;
and if the received content identification is different from the acquired content identification, determining all recommendation information in the current period as recommendation information which is not cached by the terminal.
3. The method according to claim 1, wherein the content identification information is a first list, and the first list includes a content identification corresponding to each piece of recommendation information cached by the terminal;
the obtaining of the recommendation information that is not cached by the terminal according to the content identification information includes:
acquiring a content identifier corresponding to each piece of recommended information in the current period and forming a second list;
and acquiring the content identification which does not exist in the first list from the second list, and determining the recommendation information corresponding to the acquired content identification as the recommendation information which is not cached by the terminal.
4. The method of claim 3, wherein the method further comprises:
and acquiring the content identifier which does not exist in the second list from the first list, determining the acquired content identifier as the content identifier of the recommendation information which does not exist in the current period, and sending the content identifier of the recommendation information which does not exist in the current period to the terminal.
5. The method of claim 1, wherein the method further comprises:
and arranging each piece of recommendation information in the current period to obtain layout information for displaying each piece of recommendation information in the current period, and sending the layout information to the terminal to enable the terminal to display each piece of recommendation information in the current period according to the layout information.
6. The method of claim 5, wherein the recommendation information is channel information,
the arranging each piece of recommendation information in the current period to obtain layout information for displaying each piece of recommendation information in the current period includes:
arranging each channel information in the current period to obtain a column number of a column and a row number of a row of each channel information in the current period;
and determining the column number of the column and the row number of the row of each channel information in the current period as layout information for displaying each channel information in the current period.
7. The method of claim 5, wherein the recommendation information is tag information,
the arranging each piece of recommendation information in the current period to obtain layout information for displaying each piece of recommendation information in the current period includes:
respectively selecting a display unit corresponding to each label information according to the size of each label information in the current period;
arranging the display units corresponding to each piece of label information to obtain the column number of the column and the row number of the row of each piece of label information;
and determining the column number and the row number of the column where each piece of label information is located and the identification of the display unit corresponding to each piece of label information as the layout information for displaying each piece of label information in the current period.
8. A method of displaying recommendation information, the method comprising:
sending content identification information corresponding to recommendation information cached by a terminal to a server, so that the server acquires recommendation information which is not cached by the terminal;
determining each piece of recommendation information in the current period according to the recommendation information which is not cached by the terminal;
acquiring display units corresponding to different pieces of recommendation information according to the recommendation information, and acquiring layout information for displaying each piece of recommendation information in the current period according to the display units, wherein the display units are used for loading the recommendation information;
according to the layout information, respectively placing display units corresponding to each piece of recommendation information in a created display interface according to the preset width of the interval between each piece of recommendation information in the current period, respectively loading the recommendation information to the corresponding display units and displaying, wherein the terminal is provided with the display units with different widths and heights in advance.
9. The method of claim 8, wherein the determining each piece of recommendation information in a current period according to recommendation information that is not cached by the terminal comprises:
receiving a content identifier of non-existing recommendation information sent by a server in the current period;
removing the recommendation information which does not exist in the current period from the recommendation information cached by the terminal according to the content identification of the recommendation information which does not exist in the current period;
and determining the rest recommendation information and recommendation information which is not cached by the terminal as each recommendation information in the current period.
10. The method of claim 8, wherein the obtaining layout information for displaying each piece of recommended information in the current period comprises:
receiving layout information of each piece of recommendation information in the current period, which is sent by a server; alternatively, the first and second electrodes may be,
and arranging each piece of recommended information in the current period to obtain layout information for displaying each piece of recommended information in the current period.
11. The method of claim 10, wherein the recommendation information is channel information,
the arranging each piece of recommendation information in the current period to obtain layout information for displaying each piece of recommendation information in the current period includes:
arranging each channel information in the current period to obtain a column number of a column and a row number of a row of each channel information in the current period;
and determining the column number of the column and the row number of the row of each channel information in the current period as layout information for displaying each channel information in the current period.
12. The method of claim 10, wherein the recommendation information is tag information,
the arranging each piece of recommendation information in the current period to obtain layout information for displaying each piece of recommendation information in the current period includes:
respectively selecting a display unit corresponding to each label information according to the size of each label information in the current period;
arranging the display units corresponding to each piece of label information to obtain the column number of the column and the row number of the row of each piece of label information;
and determining the column number and the row number of the column where each piece of label information is located and the display unit corresponding to each piece of label information as layout information for displaying each piece of label information in the current period.
13. An apparatus for transmitting recommendation information, the apparatus comprising:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving content identification information sent by a terminal, and the content identification information is used for identifying recommendation information cached by the terminal;
the acquisition module is used for acquiring the recommendation information which is not cached by the terminal according to the content identification information;
the sending module is used for sending the recommendation information which is not cached by the terminal to the terminal so that the terminal can obtain different display units respectively corresponding to the recommendation information according to the recommendation information and obtain layout information for displaying the recommendation information according to the display units, the display units are used for loading the recommendation information, the display units corresponding to each recommendation information are respectively placed in a created display interface according to the preset width of the interval between each recommendation information according to the layout information, the recommendation information is respectively loaded to the corresponding display units and displayed, and the terminal is provided with the display units with different widths and heights in advance.
14. The apparatus according to claim 13, wherein the content identification information is a content identification corresponding to all recommended information cached by the terminal;
the acquisition module includes:
the first obtaining unit is used for obtaining a content identifier corresponding to all recommendation information in the current period;
a first determining unit, configured to determine all pieces of recommendation information in the current period as recommendation information that is not cached by the terminal if the received content identifier is different from the obtained content identifier.
15. The apparatus according to claim 13, wherein the content identification information is a first list, and the first list includes a content identification corresponding to each piece of recommendation information cached by the terminal;
the acquisition module includes:
the second obtaining unit is used for obtaining a content identifier corresponding to each piece of recommendation information in the current period and forming a second list;
a third obtaining unit, configured to obtain, from the second list, a content identifier that does not exist in the first list, and determine recommendation information corresponding to the obtained content identifier as recommendation information that is not cached by the terminal.
16. The apparatus of claim 15, wherein the apparatus further comprises:
an obtaining and determining module, configured to obtain a content identifier that does not exist in the second list from the first list, determine the obtained content identifier as a content identifier of recommendation information that does not exist in a current period, and send the content identifier of the recommendation information that does not exist in the current period to the terminal.
17. The apparatus of claim 13, wherein the apparatus further comprises:
and the arrangement sending module is used for arranging each piece of recommendation information in the current period to obtain layout information for displaying each piece of recommendation information in the current period, and sending the layout information to the terminal so that the terminal displays each piece of recommendation information in the current period according to the layout information.
18. The apparatus of claim 17, wherein the recommendation information is channel information,
the permutation sending module comprises:
the first arranging unit is used for arranging each channel information in the current period to obtain a column number of a column and a row number of a row of each channel information in the current period;
and the second determining unit is used for determining the column number of the column and the row number of the row in which each channel information in the current period is positioned as layout information for displaying each channel information in the current period.
19. The apparatus of claim 17, wherein the recommendation information is tag information,
the permutation sending module comprises:
the selection unit is used for respectively selecting the display unit corresponding to each label information according to the size of each label information in the current period;
the second arrangement unit is used for arranging the display unit corresponding to each piece of label information to obtain the column number of the column and the row number of the row of each piece of label information;
and a third determining unit, configured to determine, as the layout information for displaying each piece of label information in the current period, a column number of a column where each piece of label information is located, a row number of a row, and an identifier of a display unit corresponding to each piece of label information.
20. An apparatus for displaying recommendation information, the apparatus comprising:
the sending module is used for sending the content identification information corresponding to the recommendation information cached by the terminal to the server so that the server can obtain the recommendation information which is not cached by the terminal;
the determining module is used for determining each piece of recommendation information in the current period according to the recommendation information which is not cached by the terminal;
the acquisition module is used for acquiring display units corresponding to different pieces of recommendation information according to the recommendation information, and acquiring layout information for displaying each piece of recommendation information in the current period according to the display units, wherein the display units are used for loading the recommendation information;
and the display module is used for respectively placing display units corresponding to each piece of recommended information in the created display interface according to the preset width of the interval between each piece of recommended information in the current period according to the layout information, loading the recommended information to the corresponding display units respectively and displaying the recommended information, and the terminal is provided with display units with different widths and heights in advance.
21. The apparatus of claim 20, wherein the determining module comprises:
the first receiving unit is used for receiving the content identification of the recommendation information which does not exist in the current period and is sent by the server;
a removing unit, configured to remove, according to the content identifier of the recommendation information that does not exist in the current period, the recommendation information that does not exist in the current period from the recommendation information cached by the terminal;
and the determining unit is used for determining the rest recommendation information and the recommendation information which is not cached by the terminal as each recommendation information in the current period.
22. The apparatus of claim 20, wherein the acquisition module comprises:
the second receiving unit is used for receiving the layout information of each piece of recommendation information in the current period, which is sent by the server; alternatively, the first and second electrodes may be,
and the arrangement unit is used for arranging each piece of recommendation information in the current period to obtain layout information for displaying each piece of recommendation information in the current period.
23. The apparatus of claim 22, wherein the recommendation information is channel information,
the arrangement unit includes:
the first arrangement subunit is configured to arrange each piece of channel information in the current period to obtain a column number of a column and a row number of a row of each piece of channel information in the current period;
and the first determining subunit is used for determining the column number of the column where each channel information in the current period is located and the row number of the row as layout information for displaying each channel information in the current period.
24. The apparatus of claim 22, wherein the recommendation information is tag information,
the arrangement unit includes:
the selecting subunit is used for respectively selecting a display unit corresponding to each label information according to the size of each label information in the current period;
the second arrangement subunit is configured to arrange the display unit corresponding to each piece of label information to obtain a column number of a column where each piece of label information is located and a row number of a row;
and a second determining subunit, configured to determine, as the layout information for displaying each piece of label information in the current period, a column number of a column where each piece of label information is located, a row number of a row, and a display unit corresponding to each piece of label information.
25. A computer-readable storage medium storing a program configured to execute, by a processor, the method of transmitting recommendation information according to any one of claims 1 to 7, or the method of displaying recommendation information according to any one of claims 8 to 12.
CN201410122839.2A 2014-03-28 2014-03-28 Method and device for sending and displaying recommendation information Active CN104954231B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410122839.2A CN104954231B (en) 2014-03-28 2014-03-28 Method and device for sending and displaying recommendation information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410122839.2A CN104954231B (en) 2014-03-28 2014-03-28 Method and device for sending and displaying recommendation information

Publications (2)

Publication Number Publication Date
CN104954231A CN104954231A (en) 2015-09-30
CN104954231B true CN104954231B (en) 2020-01-10

Family

ID=54168603

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410122839.2A Active CN104954231B (en) 2014-03-28 2014-03-28 Method and device for sending and displaying recommendation information

Country Status (1)

Country Link
CN (1) CN104954231B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106210127B (en) * 2016-08-15 2019-07-16 腾讯科技(深圳)有限公司 A kind of information processing method, server and client
CN107580038B (en) * 2017-08-28 2021-08-13 北京博瑞彤芸科技股份有限公司 Expert recommendation method and system
CN114117195A (en) * 2020-08-31 2022-03-01 北京达佳互联信息技术有限公司 Content recommendation method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262497A (en) * 2008-04-21 2008-09-10 深圳市迅雷网络技术有限公司 A content push method, system and device
CN102137306A (en) * 2011-01-17 2011-07-27 深圳市同洲电子股份有限公司 Method and device for displaying web content on television
CN103269370A (en) * 2013-05-22 2013-08-28 北京奇虎科技有限公司 Display method, client terminal, server and system for extending and recommending browser
CN103647803A (en) * 2013-11-22 2014-03-19 北京奇虎科技有限公司 A method for a mobile terminal to subscribe content and an apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262497A (en) * 2008-04-21 2008-09-10 深圳市迅雷网络技术有限公司 A content push method, system and device
CN102137306A (en) * 2011-01-17 2011-07-27 深圳市同洲电子股份有限公司 Method and device for displaying web content on television
CN103269370A (en) * 2013-05-22 2013-08-28 北京奇虎科技有限公司 Display method, client terminal, server and system for extending and recommending browser
CN103647803A (en) * 2013-11-22 2014-03-19 北京奇虎科技有限公司 A method for a mobile terminal to subscribe content and an apparatus

Also Published As

Publication number Publication date
CN104954231A (en) 2015-09-30

Similar Documents

Publication Publication Date Title
US10516640B2 (en) Group message updating and displaying method, apparatus, and terminal
CN107094294B (en) Network connection method and device
CN104852885B (en) Method, device and system for verifying verification code
CN105786878B (en) Display method and device of browsing object
US10691328B2 (en) Method and apparatus for switching the display state between messaging records and contacts information
US20170316781A1 (en) Remote electronic service requesting and processing method, server, and terminal
CN104778055B (en) Method and device for displaying progress bar
US9977651B2 (en) Mobile terminal and image processing method thereof
CN105302452B (en) Operation method and device based on gesture interaction
US20170318061A1 (en) Method, device, and system for managing information recommendation
CN106293738B (en) Expression image updating method and device
CN105227598B (en) Resource sharing method, device and system based on cloud storage
CN106682189B (en) File name display method and device
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN107317828B (en) File downloading method and device
CN104954231B (en) Method and device for sending and displaying recommendation information
CN106302101B (en) Message reminding method, terminal and server
US20210143926A1 (en) Fm channel finding and searching method, mobile terminal and storage apparatus
CN105095161B (en) Method and device for displaying rich text information
CN106374988B (en) Method, device and terminal for configuring inter-downlink-band carrier aggregation
WO2015124060A1 (en) Login interface displaying method and apparatus
CN105159655B (en) Behavior event playing method and device
CN107256108B (en) Screen splitting method, device and computer readable storage medium
CN108924357A (en) A kind of method, apparatus and terminal that adjustment terminal desktop is shown
CN109688548B (en) VOLTE frequency band sharing method, server, mobile terminal and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant