CN107391590B - Theme list updating method and device, electronic equipment and storage medium - Google Patents

Theme list updating method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN107391590B
CN107391590B CN201710499281.3A CN201710499281A CN107391590B CN 107391590 B CN107391590 B CN 107391590B CN 201710499281 A CN201710499281 A CN 201710499281A CN 107391590 B CN107391590 B CN 107391590B
Authority
CN
China
Prior art keywords
theme
list
amount
download amount
target
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
CN201710499281.3A
Other languages
Chinese (zh)
Other versions
CN107391590A (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.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201710499281.3A priority Critical patent/CN107391590B/en
Publication of CN107391590A publication Critical patent/CN107391590A/en
Application granted granted Critical
Publication of CN107391590B publication Critical patent/CN107391590B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

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

Abstract

The embodiment of the invention provides a method and a device for updating a theme list, electronic equipment and a storage medium, wherein the method comprises the following steps: determining a target theme in a theme list at the current moment; the target theme is any one of themes configured with the pre-download amount; the theme list is obtained by updating the sequence of the themes in the theme list according to the pre-download amount as a first priority and the preset attribute as a second priority; determining the current downloading amount of the target theme; judging whether the current downloading amount is larger than the pre-downloading amount corresponding to the target theme or not; if so, removing the pre-download amount configured for the target theme, taking the pre-download amount as a first priority, and updating the sequence of the themes in the theme list according to the preset attribute as a second priority. The embodiment of the invention can improve the probability that the theme arranged behind the theme list is viewed by the user.

Description

Theme list updating method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for updating a topic list, an electronic device, and a storage medium.
Background
In real life, users often download themes such as pictures, music or videos using the internet.
In the prior art, some website platforms update the sequence of topics according to attributes of the topics to form a topic list, and display the formed topic list to a user, where the attributes of the topics include, but are not limited to, download amount or update time.
However, in general, a user may consider a subject ranked in front to be good relative to a subject ranked in back, or a reading habit of the user is generally from top to bottom, which may cause the following problems: the probability that the subject ranked behind is viewed by the user is low.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for updating a theme list, electronic equipment and a storage medium, so as to improve the probability that the theme arranged behind the theme list is viewed by a user.
In order to achieve the above object, an embodiment of the present invention provides an update method of a topic list, where the method includes:
determining a target theme in a theme list at the current moment; the target theme is any one of themes configured with the pre-download amount; the theme list is obtained by updating the sequence of the themes in the theme list according to the pre-download amount as a first priority and the preset attribute as a second priority;
determining the current downloading amount of the target theme;
judging whether the current downloading amount is larger than the pre-downloading amount corresponding to the target theme or not;
if so, removing the pre-download amount configured for the target theme, taking the pre-download amount as a first priority, and updating the sequence of the themes in the theme list according to the preset attribute as a second priority.
In a specific implementation manner provided in the embodiment of the present invention, the determining manner of the pre-download amount corresponding to the target theme includes:
calculating the average downloading amount of the target theme in a preset time period;
calculating the sum of the average downloading amount and a preset expected value;
and determining the sum obtained by calculation as the pre-download amount corresponding to the target theme.
In a specific implementation manner provided in the embodiment of the present invention, after the step of determining whether the current download amount is greater than the pre-download amount corresponding to the target theme, the method further includes:
initializing the list of topics when a predetermined time is reached.
In a specific implementation manner provided in the embodiment of the present invention, the step of initializing the topic list includes:
emptying the downloading amount of each first type theme and each second type theme in the theme list, wherein the first type theme is a theme with a pre-downloading amount configured in the theme list when a preset time is reached, and the second type theme is a theme processed by removing the pre-downloading amount before the preset time;
configuring corresponding pre-download amount for each second type theme;
and updating the sequence of all the themes in the theme list according to the first priority of the pre-download amount and the second priority of the preset attribute.
In a specific implementation manner provided by the embodiment of the present invention, the step of determining the current download amount of the target theme includes:
determining the moment of initializing the theme list last time as a first moment;
and determining the downloading quantity of the target theme between the first moment and the current moment as the current downloading quantity.
In a specific implementation manner provided in the embodiment of the present invention, the preset attributes are: update time or download amount.
The embodiment of the invention also provides a device for updating the theme list, which comprises:
the first determining module is used for determining a target theme in the theme list at the current moment; the target theme is any one of themes configured with the pre-download amount; the theme list is obtained by updating the sequence of the themes in the theme list according to the pre-download amount as a first priority and the preset attribute as a second priority;
the second determining module is used for determining the current downloading amount of the target theme;
the judging module is used for judging whether the current downloading amount is larger than the pre-downloading amount corresponding to the target theme or not;
and the removing module is used for removing the pre-download amount configured for the target theme when the judgment result of the judging module is yes, and updating the sequence of the themes in the theme list according to the pre-download amount as a first priority and the preset attribute as a second priority.
In a specific implementation manner provided in the embodiment of the present invention, the apparatus further includes:
a third determining module, configured to determine a pre-download amount corresponding to the target theme;
the third determining module includes:
the first calculation unit is used for calculating the average downloading amount of the target theme in a preset time period;
the second calculation unit is used for calculating the sum of the average downloading amount and a preset expected value;
and the first determining unit is used for determining the sum obtained by calculation as the pre-download amount corresponding to the target theme.
In a specific implementation manner provided in the embodiment of the present invention, the apparatus further includes:
and the initialization module is used for initializing the theme list when a preset moment is reached.
In a specific implementation manner provided in the embodiment of the present invention, the initialization module includes:
an emptying unit, configured to empty the download amount of each first-class theme and each second-class theme in the theme list, where the first-class theme is a theme with a pre-download amount configured in the theme list when a predetermined time is reached, and the second-class theme is a theme with a pre-download amount removed before the predetermined time;
the configuration unit is used for configuring the corresponding pre-download amount for each second type theme;
and the sorting unit is used for updating the sequence of all the themes in the theme list according to the pre-download amount as the first priority and the preset attribute as the second priority.
In a specific implementation manner provided in the embodiment of the present invention, the second determining module includes:
the second determining unit is used for determining the moment of initializing the theme list last time as the first moment;
and the third determining unit is used for determining the downloading quantity of the target theme between the first moment and the current moment as the current downloading quantity.
In a specific implementation manner provided in the embodiment of the present invention, the preset attributes are: update time or download amount.
The embodiment of the invention also provides electronic equipment which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the steps of the method when executing the program stored in the memory.
An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, and the computer program implements the method steps when being executed by a processor.
According to the method, the device, the electronic device and the storage medium for updating the theme list, provided by the embodiment of the invention, the theme list is obtained by updating the sequence of the themes in the theme list according to the pre-download amount as the first priority and the preset attribute as the second priority, and the target theme in the theme list at the current moment is any one of the themes configured with the pre-download amount, namely the target theme is arranged at the front position in the theme list; when the current download amount of the target theme is larger than the pre-download amount corresponding to the target theme, removing the pre-download amount configured for the target theme, taking the pre-download amount as a first priority, and updating the sequence of the themes in the theme list according to the preset attribute as a second priority.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for updating a topic list according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an apparatus for updating a topic list according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to achieve the above object, an embodiment of the present invention provides an updating method for a theme list, where the method is applied to an electronic device, and the electronic device may be a server or a terminal device. In the embodiment of the invention, the terminal device can be an intelligent robot, an intelligent mobile phone or a tablet computer.
Fig. 1 is a flowchart of a method for updating a topic list according to an embodiment of the present invention, where the method includes steps S110 to S140:
s110, determining a target theme in the theme list at the current moment; the target theme is any one of themes configured with the pre-download amount; the theme list is obtained by updating the sequence of the themes in the theme list according to the pre-download amount as the first priority and the preset attribute as the second priority.
In this embodiment, the subject includes, but is not limited to, a picture, music, or a video.
In order to improve the probability that the topics arranged behind the topic list are viewed by the user, in this embodiment, a manner of pre-configuring a pre-download amount for all or part of the topics in the topic list is adopted, and the order of the topics in the topic list is updated to form the topic list according to the pre-download amount as a first priority and according to a preset attribute as a second priority. The preset attribute may be update time, download amount, or theme type.
For example, when a theme list is initially established, website administrators may freely select a plurality of themes, configure a pre-download amount for the themes, combine the pre-download amount with other themes without the pre-download amount, and update the sequence of the themes according to the pre-download amount as a first priority and a preset attribute as a second priority to form the theme list.
It should be noted that the target theme is any one of the themes configured with the pre-download amount, and when all the themes in the theme list are configured with the pre-download amount, the target theme may be any one of all the themes in the theme list; when a part of topics in the topic list is configured with the pre-download amount, the target topic may be any one of the part of topics in the topic list.
Taking the case that part of the topics in the topic list are configured with the pre-download amount as an example, because the topic list is obtained by updating the order of the topics in the topic list according to the pre-download amount as the first priority and the preset attribute as the second priority, the topics configured with the pre-download amount are all ranked at the front position in the topic list, and the topics not configured with the pre-download amount are all ranked at the rear position in the topic list, so that the target topic is located at the front position in the topic list at the current time.
In this embodiment, a loop manner is adopted, and at the start time of each loop, the theme list is already in an initialized state, that is, the download amount of the theme configured with the pre-download amount is in an empty state; when the loop is finished, the theme list is initialized again, so that the theme list is reset to the initialized state, and then the next loop is started.
In this embodiment, the execution time of step S110 is the current time, and the current time may be in the process of the mth cycle (M is any positive integer).
And S120, determining the current downloading amount of the target theme.
In a specific implementation manner provided by the embodiment of the present invention, the step S120 may include steps a1 to a 2:
a1, determining the time of last initialization of the theme list as the first time.
In this embodiment, the time when the topic list is initialized last time is the end time of the M-1 th loop (i.e., the start time of the M-th loop), and this time may be used as the first time.
A2, determining the downloading quantity of the target theme between the first time and the current time as the current downloading quantity.
For example, from the first time to the current time, the download amount of the target theme downloaded by the user is 100, and then the current download amount is 100. It should be noted that the current download amount corresponds to the download amount in the current mth cycle.
In this embodiment, the electronic device may obtain the download amount of the target theme in the existing manner, which is not described herein again.
S130, judging whether the current download amount is larger than the pre-download amount corresponding to the target theme, if so, executing the step S140.
In this embodiment, the determining process of determining whether the current downloading amount is greater than the pre-downloading amount corresponding to the target theme may be a real-time determining process or a periodic determining process. And when the judgment result is negative, the position of the theme list where the target theme is located can be refused to be changed.
In a specific implementation manner provided by the embodiment of the present invention, the step of configuring the pre-download amount for the target theme includes steps B1 to B3:
and B1, calculating the average downloading amount of the target theme in a preset time period.
In this embodiment, the predetermined time period may be a specific time period, such as 1/2017 to 3/1/2017; the predetermined time period may also be a certain time period of a fixed length before the current time, for example, if the current time is day 2017, 6 and 14, the predetermined time period may be from 2017, 3 and 13 to 2017, 6 and 13.
Specifically, the electronic device obtains a total download amount of the target theme within a predetermined time period, and obtains an average download amount by setting the total download amount to a duration of the predetermined time period. For example, if the duration of the predetermined time period is 3 months, and the total download amount of the target theme in the predetermined time period is 3000, the average download amount is 1000.
And B2, calculating the sum of the average downloading amount and a preset expected value.
In this embodiment, the preset expected value is a downloading amount of the target theme which may be increased in the next time, and the expected value may be obtained according to an increment of the downloading amount in the unit time period.
For example, if the amount of downloading of the target theme per month is increased by about 200 month by month, the expected value may be determined to be 200.
And B3, determining the sum obtained by calculation as the pre-download amount corresponding to the target theme.
For example, if the average download amount is 1000 and the expected value is 200, the obtained total 1200 is determined as the pre-download amount corresponding to the target topic.
In this embodiment, each topic is provided with an identification information, the identification information may be a name of the topic or ID (IDentity) information of the topic, and the configuration of the preset download amount for the target topic may be implemented by configuring the preset download amount for the identification information.
In this embodiment, the sum of the average download amount and the preset expected value is used as the pre-download amount, and the pre-download amount configured for the target theme is configured for the target theme, so that the pre-download amount configured for the target theme better conforms to the actual situation. Meanwhile, when the sequence of the theme with the pre-download amount configured in the theme list is updated, the updating can be performed according to the sequence of the configured pre-download amount from large to small, and the more the corresponding pre-download amount is, the more the theme is in front, the more the theme is considered to be superior, so that a user can conveniently mine the superior theme.
In another implementation manner provided by the embodiment of the present invention, the download amount of the target theme on the day before the current time may also be used as the pre-download amount of the target theme.
And S140, removing the pre-download amount configured for the target theme, and updating the sequence of the themes in the theme list according to the pre-download amount as a first priority and the preset attribute as a second priority.
In this embodiment, removing the pre-download amount configured for the target theme refers to: this property of the pre-download amount of the target theme configuration is removed. And updating the sequence of the themes in the theme list according to the fact that the pre-download amount is the first priority and the preset attribute is the second priority, so that the target theme cannot be ranked at the front position of the theme list according to the pre-download amount as the first priority due to the fact that the attribute of the pre-download amount is lost, the target theme can be ranked at the rear position of the theme list according to the preset attribute as the second priority, and meanwhile, corresponding meetings of the themes between the next position of the current position of the target theme and the position of the reordered theme list carry forwards, so that the theme behind the theme list is provided with the opportunity of being discovered by the user, and the probability of the theme behind the theme list being viewed by the user is improved.
According to the method for updating the theme list, provided by the embodiment of the invention, the theme list is obtained by updating the sequence of the themes in the theme list according to the pre-download amount as the first priority and the preset attribute as the second priority, and the target theme in the theme list at the current moment is any one of the themes configured with the pre-download amount, namely the target theme is arranged at the front position in the theme list; when the current download amount of the target theme is larger than the pre-download amount corresponding to the target theme, removing the pre-download amount configured for the target theme, taking the pre-download amount as a first priority, and updating the sequence of the themes in the theme list according to the preset attribute as a second priority.
In another implementation manner provided in the embodiment of the present invention, after step S130, the method further includes:
initializing the list of topics when a predetermined time is reached.
In this embodiment, the predetermined time is a certain time that is set fixedly. For example, the predetermined time may be 2017, 1, 0, minute, 0 second. The predetermined timing may also be one of a plurality of timings set in advance. For example, the predetermined time may be any one of 0 minute and 0 second at 1/0/2017, 0 minute and 0 second at 2/0/2017 or 0 minute and 0 second at 5/0/2017.
The predetermined time may also be a time periodically set at a fixed time length. For example, the starting time is set to be 0 min 0 s at 1 month, 1 day, 0 h 0 s at 2017, the time periodically set at 1 day with a fixed time duration is set to be 0 min 0 s at 1 month, 2 days, 0 min 0 s at 3 months, 0 s at 3 months, 0 min 0 s at 1 month, 4 days, 0 s at 2017, and the like.
It should be noted that, in this embodiment, the electronic device initializes the theme list as long as the preset time is reached, regardless of whether the determination result of step S130 is yes or no.
In a first specific implementation manner provided in the embodiment of the present invention, the step of initializing the topic list includes steps C1 to C3:
and C1, emptying the downloading amount of each first type theme and each second type theme in the theme list.
Specifically, the first type of theme is a theme with a pre-download amount configured in a theme list when a predetermined time is reached, and the second type of theme is a theme with a pre-download amount removed before the predetermined time.
For example, assuming that 100 topics exist in a topic list at the start time of a current cycle (the start time of an mth cycle), where 10 topics are configured with a pre-download amount, 90 topics are not configured with a pre-download amount, and before a predetermined time is reached, 2 topics configured with a pre-download amount are processed by removing the pre-download amount, 8 topics exist in the topic list and are configured with a pre-download amount, 92 topics are not configured with a pre-download amount, the 8 topics configured with a pre-download amount are determined as a first-class topic, and the 2 topics processed by removing the pre-download amount are determined as a second-class topic.
Specifically, the emptying of the download amount of each first-class theme and each second-class theme means: and updating the download amount of each first type theme and each second type theme to be 0.
And C2, configuring the corresponding pre-download amount for each second type theme.
Specifically, since each second-type theme configuration has removed the corresponding pre-download amount, the corresponding pre-download amount needs to be reconfigured, and the updating can be performed again according to the order in which the pre-download amount is the first priority. And each first-class theme is still configured with the corresponding pre-downloading amount, and the pre-downloading amount does not need to be reconfigured.
And C3, updating the sequence of all the themes in the theme list according to the pre-download amount as the first priority and the preset attribute as the second priority.
Specifically, the electronic device updates the sequence of all the topics in the topic list according to the pre-download amount as the first priority and the preset attribute as the second priority again, so that the topic list can return to the initialization state again.
In this embodiment, by initializing the theme list, the theme configured with the pre-download amount can be returned to the front position in the theme list again, and a function of mining a better theme again according to the pre-download amount can be provided for the user again.
In order to describe the update method of the topic list in the embodiment of the present invention in detail, in the embodiment, the following description is made by way of example:
the theme list is in an initialization state at the time of 0 minute and 0 second at a certain day, namely the theme list is updated according to the pre-download amount as a first priority and the preset attribute as a second priority, and the download amounts of all the themes configured with the pre-download amount are in an empty state. When the download amount of a certain theme reaches the corresponding pre-download amount, removing the pre-download amount configured for the theme, taking the pre-download amount as a first priority, and updating the sequence of the themes in the theme list according to the preset attribute as a second priority, wherein the theme can move backwards from the current position in the theme list, the theme between the next position of the current position and the position of the theme list where the theme is located after reordering can carry forwards correspondingly, and then the position of the theme is not changed any more. Before reaching 24 hours and 0 minutes and 0 seconds, all positions of the theme reaching the pre-download amount in the theme list are moved backwards, and some of the following themes are continuously carried forwards. When the time reaches 24 hours, 0 minute and 0 second, emptying the downloading amount of each first type theme and each second type theme in the theme list, configuring the corresponding pre-downloading amount for each second type theme, and updating the sequence of all the themes in the theme list according to the pre-downloading amount as the first priority and the preset attribute as the second priority so as to enable the theme list to reach an initialization state. By the mode, the user can view the better theme which reaches the pre-downloading amount firstly and can view the worse theme which does not finish the pre-downloading amount finally in a priority mode; meanwhile, the time for the user to check is reduced, and the mining of better themes is quickly realized.
In another implementation manner provided by the embodiment of the present invention, before the step S110, the method further includes a step D1 to a step D2:
d1, receiving an instruction for asking a theme list sent by the client;
in this embodiment, the electronic device is specifically a server. The server stores the topic list and updates the topic list in real time (or periodically). It should be noted that, a plurality of topic lists may be stored in the server, and each topic list corresponds to one topic list identification information. And after the client sends an instruction for asking for the theme list to the server, the server receives the instruction.
And D2, sending the theme list to the client according to the instruction, so that the client caches the received theme list.
Specifically, the instruction for requesting the theme list may include identification information of the client and identification information of the theme list, the server finds the corresponding theme list according to the identification information of the theme list in the instruction, and sends the found theme list to the corresponding client according to the identification information of the client. The client loads the acquired theme list by using listview, and caches the theme locally (or stores the theme in a database) by using a caching technology.
For example, the client may be a locker application store, the theme list is displayed in the locker application store through a cache, and after the user exits the locker application store by pressing a back key, the user may locally take out the theme list for displaying when entering the locker application store, so that the loading speed may be increased, and the user traffic may be saved. The validity period of the cacheable theme list can be 24 hours, and after 24 hours, when the user exits the locker application store and enters the locker application store again, the user needs to initiate a request to the server again to obtain the theme list.
The interactive instruction between the server and the client can be compiled through the PHP language, a system architecture between the server and the client can be constructed through a thinPHP framework, a data interface of the server can be constructed through a go or gin framework, a redis caching technology is used, a theme list pulled down by a user is cached in the server, and the speed is returned when the request is made again, so that the processing efficiency can be improved.
When the server updates the sequence of the theme, the server can also set a sorting key for the sequence of the pre-downloading amount, the updating time and the like of the theme. After the client side obtains the theme list from the server, the user can click the corresponding sorting key according to needs to reorder the themes corresponding to the theme list, and the efficiency of inquiring the themes is improved.
Other extranet servers can also interact with the server to obtain the theme list. Specifically, the server adds the IP address of the extranet server to a white list, the extranet server obtains the topic list of the server, and the extranet server synchronizes with the data of the server every 2 hours to update the obtained topic list.
Operation and maintenance personnel can also access the server through the client or the extranet server under the condition that the server sorting rule is not changed, so that the theme list sorting is controlled, the working efficiency is improved, and meanwhile, the building engineering code does not need to be changed after the sorting is modified.
Corresponding to the embodiment of the method, the invention also provides a device for updating the theme list. Fig. 2 is a schematic structural diagram of an apparatus for updating a topic list according to an embodiment of the present invention, where the apparatus includes:
a first determining module 210, configured to determine a target topic in the topic list at the current time; the target theme is any one of themes configured with the pre-download amount; the theme list is obtained by updating the sequence of the themes in the theme list according to the pre-download amount as a first priority and the preset attribute as a second priority;
a second determining module 220, configured to determine a current downloading amount of the target topic;
a determining module 230, configured to determine whether the current downloading amount is greater than a pre-downloading amount corresponding to the target theme;
a removing module 240, configured to, when the determination result of the determining module 230 is yes, remove the pre-download amount configured for the target topic, and update the sequence of the topics in the topic list according to the pre-download amount as a first priority and according to a preset attribute as a second priority.
According to the device for updating the theme list, which is provided by the embodiment of the invention, the theme list is obtained by updating the sequence of the themes in the theme list according to the pre-download amount as the first priority and the preset attribute as the second priority, and the target theme in the theme list at the current moment is any one of the themes configured with the pre-download amount, namely the target theme is arranged at the front position in the theme list; when the current download amount of the target theme is larger than the pre-download amount corresponding to the target theme, removing the pre-download amount configured for the target theme, taking the pre-download amount as a first priority, and updating the sequence of the themes in the theme list according to the preset attribute as a second priority.
In another implementation manner provided in the embodiment of the present invention, the apparatus further includes:
a third determining module, configured to determine a pre-download amount corresponding to the target theme;
the third determining module includes:
the first calculation unit is used for calculating the average downloading amount of the target theme in a preset time period;
the second calculation unit is used for calculating the sum of the average downloading amount and a preset expected value;
and the first determining unit is used for determining the sum obtained by calculation as the pre-download amount corresponding to the target theme.
In this embodiment, the sum of the average download amount and the preset expected value is used as the pre-download amount, and the pre-download amount configured for the target theme is configured for the target theme, so that the pre-download amount configured for the target theme better conforms to the actual situation. Meanwhile, when the sequence of the theme with the pre-download amount configured in the theme list is updated, the updating can be performed according to the sequence of the configured pre-download amount from large to small, and the more the corresponding pre-download amount is, the more the theme is in front, the more the theme is considered to be superior, so that a user can conveniently mine the superior theme.
In another implementation manner provided in the embodiment of the present invention, the apparatus further includes:
and the initialization module is used for initializing the theme list when a preset moment is reached.
In this embodiment, by initializing the theme list, the theme configured with the pre-download amount can be returned to the front position in the theme list again, and a function of mining a better theme again according to the pre-download amount can be provided for the user again.
In another implementation manner provided by the embodiment of the present invention, the initialization module includes:
an emptying unit, configured to empty the download amount of each first-class theme and each second-class theme in the theme list, where the first-class theme is a theme with a pre-download amount configured in the theme list when a predetermined time is reached, and the second-class theme is a theme with a pre-download amount removed before the predetermined time;
the configuration unit is used for configuring the corresponding pre-download amount for each second type theme;
and the sorting unit is used for updating the sequence of all the themes in the theme list according to the pre-download amount as the first priority and the preset attribute as the second priority.
In another implementation manner provided by the embodiment of the present invention, the second determining module includes:
the second determining unit is used for determining the moment of initializing the theme list last time as the first moment;
and the third determining unit is used for determining the downloading quantity of the target theme between the first moment and the current moment as the current downloading quantity.
In another implementation manner provided in the embodiment of the present invention, the preset attribute is: update time or download amount.
Corresponding to the method embodiment, the embodiment of the invention also provides electronic equipment. Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, where the electronic device includes: a processor 310, a communication interface 320, a memory 330 and a communication bus 340, wherein the processor 310, the communication interface 320 and the memory 330 are communicated with each other through the communication bus 340,
a memory 330 for storing a computer program;
the processor 310 is configured to implement the method for updating the theme list according to the embodiment of the present invention when executing the program stored in the memory 330.
Specifically, the method for updating the theme list includes
Determining a target theme in a theme list at the current moment; the target theme is any one of themes configured with the pre-download amount; the theme list is obtained by updating the sequence of the themes in the theme list according to the pre-download amount as a first priority and the preset attribute as a second priority;
determining the current downloading amount of the target theme;
judging whether the current downloading amount is larger than the pre-downloading amount corresponding to the target theme or not;
if so, removing the pre-download amount configured for the target theme, taking the pre-download amount as a first priority, and updating the sequence of the themes in the theme list according to the preset attribute as a second priority.
According to the electronic device provided by the embodiment of the invention, the theme list is obtained by updating the sequence of the themes in the theme list according to the pre-download amount as the first priority and the preset attribute as the second priority, and the target theme in the theme list at the current moment is any one of the themes configured with the pre-download amount, namely the target theme is arranged at the front position in the theme list; when the current download amount of the target theme is larger than the pre-download amount corresponding to the target theme, removing the pre-download amount configured for the target theme, taking the pre-download amount as a first priority, and updating the sequence of the themes in the theme list according to the preset attribute as a second priority.
Other implementation manners of the method for updating the theme list are the same as those of the theme list provided in the foregoing method embodiment, and are not described herein again.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a network Processor (Ne word Processor, NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
Corresponding to the above method embodiments, the embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the method for updating the theme list provided in the embodiment of the present invention.
Specifically, the method for updating the theme list includes:
determining a target theme in a theme list at the current moment; the target theme is any one of themes configured with the pre-download amount; the theme list is obtained by updating the sequence of the themes in the theme list according to the pre-download amount as a first priority and the preset attribute as a second priority;
determining the current downloading amount of the target theme;
judging whether the current downloading amount is larger than the pre-downloading amount corresponding to the target theme or not;
if so, removing the pre-download amount configured for the target theme, taking the pre-download amount as a first priority, and updating the sequence of the themes in the theme list according to the preset attribute as a second priority.
When the application program stored in the storage medium provided in the embodiment of the present invention runs, since the theme list is obtained by updating the sequence of the themes in the theme list according to the pre-download amount as the first priority and the preset attribute as the second priority, the target theme in the theme list at the current time is any one of the themes configured with the pre-download amount, that is, the target theme is arranged at the earlier position in the theme list; when the current download amount of the target theme is larger than the pre-download amount corresponding to the target theme, removing the pre-download amount configured for the target theme, taking the pre-download amount as a first priority, and updating the sequence of the themes in the theme list according to the preset attribute as a second priority.
Other implementation manners of the method for updating the theme list are the same as those of the theme list provided in the foregoing method embodiment, and are not described herein again.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the device, the electronic apparatus, and the storage medium embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A method for updating a subject list, the method comprising:
determining a target theme in a theme list at the current moment; the target theme is any one of themes configured with the pre-download amount; the theme list is obtained by updating the sequence of the themes in the theme list according to the pre-download amount as a first priority and the preset attribute as a second priority;
determining the current downloading amount of the target theme;
judging whether the current downloading amount is larger than the pre-downloading amount corresponding to the target theme or not;
if so, removing the pre-download amount configured for the target theme, and updating the sequence of the themes in the theme list according to the pre-download amount as a first priority and the preset attribute as a second priority;
after the step of determining whether the current download amount is greater than the pre-download amount corresponding to the target theme, the method further includes:
initializing the theme list when a predetermined time is reached;
the step of initializing the topic list includes:
emptying the downloading amount of each first type theme and each second type theme in the theme list, wherein the first type theme is a theme with a pre-downloading amount configured in the theme list when a preset time is reached, and the second type theme is a theme processed by removing the pre-downloading amount before the preset time;
configuring corresponding pre-download amount for each second type theme;
and updating the sequence of all the themes in the theme list according to the first priority of the pre-download amount and the second priority of the preset attribute.
2. The method according to claim 1, wherein the determining manner of the pre-download amount corresponding to the target theme comprises:
calculating the average downloading amount of the target theme in a preset time period;
calculating the sum of the average downloading amount and a preset expected value;
and determining the sum obtained by calculation as the pre-download amount corresponding to the target theme.
3. The method of claim 1, wherein the step of determining the current download amount of the target topic comprises:
determining the moment of initializing the theme list last time as a first moment;
and determining the downloading quantity of the target theme between the first moment and the current moment as the current downloading quantity.
4. The method according to any one of claims 1 to 3, wherein the preset attributes are: update time or download amount.
5. An apparatus for updating a topic list, the apparatus comprising:
the first determining module is used for determining a target theme in the theme list at the current moment; the target theme is any one of themes configured with the pre-download amount; the theme list is obtained by updating the sequence of the themes in the theme list according to the pre-download amount as a first priority and the preset attribute as a second priority;
the second determining module is used for determining the current downloading amount of the target theme;
the judging module is used for judging whether the current downloading amount is larger than the pre-downloading amount corresponding to the target theme or not;
the removing module is used for removing the pre-download amount configured for the target theme when the judgment result of the judging module is yes, and updating the sequence of the themes in the theme list according to the pre-download amount as a first priority and the preset attribute as a second priority;
the device further comprises:
the initialization module is used for initializing the theme list when a preset moment is reached;
the initialization module comprises:
an emptying unit, configured to empty the download amount of each first-class theme and each second-class theme in the theme list, where the first-class theme is a theme with a pre-download amount configured in the theme list when a predetermined time is reached, and the second-class theme is a theme with a pre-download amount removed before the predetermined time;
the configuration unit is used for configuring the corresponding pre-download amount for each second type theme;
and the sorting unit is used for updating the sequence of all the themes in the theme list according to the pre-download amount as the first priority and the preset attribute as the second priority.
6. The apparatus of claim 5, further comprising:
a third determining module, configured to determine a pre-download amount corresponding to the target theme;
the third determining module includes:
the first calculation unit is used for calculating the average downloading amount of the target theme in a preset time period;
the second calculation unit is used for calculating the sum of the average downloading amount and a preset expected value;
and the first determining unit is used for determining the sum obtained by calculation as the pre-download amount corresponding to the target theme.
7. The apparatus of claim 5, wherein the second determining module comprises:
the second determining unit is used for determining the moment of initializing the theme list last time as the first moment;
and the third determining unit is used for determining the downloading quantity of the target theme between the first moment and the current moment as the current downloading quantity.
8. The apparatus according to any one of claims 5 to 7, wherein the predetermined attribute is: update time or download amount.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 4 when executing a program stored in the memory.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 4.
CN201710499281.3A 2017-06-27 2017-06-27 Theme list updating method and device, electronic equipment and storage medium Active CN107391590B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710499281.3A CN107391590B (en) 2017-06-27 2017-06-27 Theme list updating method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710499281.3A CN107391590B (en) 2017-06-27 2017-06-27 Theme list updating method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN107391590A CN107391590A (en) 2017-11-24
CN107391590B true CN107391590B (en) 2020-12-18

Family

ID=60332841

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710499281.3A Active CN107391590B (en) 2017-06-27 2017-06-27 Theme list updating method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107391590B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109240302B (en) * 2018-09-30 2022-04-22 北京金山安全软件有限公司 Method and device for using robot racing car, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103312872A (en) * 2012-03-12 2013-09-18 联想(北京)有限公司 Method and electronic equipment for displaying unprocessed information
CN104239587A (en) * 2014-10-17 2014-12-24 北京字节跳动网络技术有限公司 Method and device for refreshing news list
CN106227597A (en) * 2016-07-15 2016-12-14 乐视控股(北京)有限公司 Task priority treating method and apparatus
CN106326003A (en) * 2016-08-11 2017-01-11 中国科学院重庆绿色智能技术研究院 Operation scheduling and computing resource allocation method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7716704B2 (en) * 2001-06-12 2010-05-11 Thomson Licensing Television program selection apparatus and method
CN101729693B (en) * 2008-10-27 2013-07-10 华为技术有限公司 Method, device and system for improving processing priority
US10437894B2 (en) * 2015-05-07 2019-10-08 TCL Research America Inc. Method and system for app search engine leveraging user reviews

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103312872A (en) * 2012-03-12 2013-09-18 联想(北京)有限公司 Method and electronic equipment for displaying unprocessed information
CN104239587A (en) * 2014-10-17 2014-12-24 北京字节跳动网络技术有限公司 Method and device for refreshing news list
CN106227597A (en) * 2016-07-15 2016-12-14 乐视控股(北京)有限公司 Task priority treating method and apparatus
CN106326003A (en) * 2016-08-11 2017-01-11 中国科学院重庆绿色智能技术研究院 Operation scheduling and computing resource allocation method

Also Published As

Publication number Publication date
CN107391590A (en) 2017-11-24

Similar Documents

Publication Publication Date Title
CN106484858B (en) hot content pushing method and device
JP7192103B2 (en) DATA PROCESSING METHOD AND APPARATUS, AND COMPUTING NODE
CN110012217B (en) Method and device for determining acquisition resolution and electronic equipment
US11146660B2 (en) Information packet download method for preventing high concurrency, electronic device and storage medium
CN107968842B (en) News pushing method, device and equipment based on distributed system
CN101840418A (en) User word library synchronous update method, update server and input method system
US20170178202A1 (en) Advertisement display method, terminal device and a non-transitory computer-readable storage medium
CN111367922B (en) Data updating method and related equipment
CN104866339A (en) Distributed persistent management method, system and device of FOTA data
CN111741110B (en) Message pushing system and method
CN107508914A (en) A kind of accurate method for pushing of message and system based on cloud computing analysis
CN112473131A (en) Method and device for realizing game running and computer readable storage medium
CN107391590B (en) Theme list updating method and device, electronic equipment and storage medium
CN108874876B (en) Message pushing method, computer readable storage medium and terminal equipment
CN115599478A (en) Method and device for preloading data and electronic equipment
CN114327710A (en) Function management method, management device, terminal equipment and readable storage medium
CN111383038A (en) Advertisement display method and device of mobile terminal, mobile terminal and storage medium
CN108959393B (en) Dynamic picture processing method, device and storage medium
CN106550021B (en) Push method and device for push message
CN111510771B (en) Selection method, system, device and medium of definition switching algorithm
CN116841713A (en) Task scanning method, device, electronic equipment and storage medium
CN110874759A (en) Multimedia resource processing method and device, storage medium and electronic device
CN110083405B (en) Function starting method and device
CN114329071A (en) Gesture enhanced display method and device, electronic equipment and storage medium
CN109327740B (en) Popularization application operation method of terminal, terminal and computer readable storage medium

Legal Events

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