Disclosure of Invention
In order to solve the deficiencies of the prior art, at least one embodiment of the invention provides a method for maintaining a function recommendation table group, which is applied to an application program and comprises the following steps:
finding all recommendable items in an application program, and acquiring recommendable contents corresponding to the recommendable items;
creating at least two recommendation tables which are independent from each other, wherein the triggering mode and the recommendation mode corresponding to each recommendation table are different;
assigning each item of the recommendable content to any one of the recommendation tables;
and when the triggering condition of the recommendation table is met, sequentially acquiring recommendable contents with a first state of unrendered from the recommendation table as contents to be recommended corresponding to the triggering condition, and marking the states of the recommendable contents as recommended.
Based on the above technical solutions, the embodiments of the present invention may be further improved as follows.
Optionally, the maintenance method further includes:
and when the obtained recommendable content with the status of unrendered is located at the tail of the recommendation table, updating the statuses of all recommendable contents meeting preset conditions in the recommendation table to be unrendered.
Optionally, the updating of the states of all the recommendable contents in the recommendation table that satisfy the preset condition to be unrendered specifically includes:
confirming whether the recommendable content is periodically recommended content or one-time recommended content;
when the recommendable content is periodically recommended content, updating the state of the recommendable content to be unrendered;
when the recommendable content is one-time recommended content, judging whether the recommendable content is updated, and when the recommendable content is updated, updating the state of the recommendable content to be unrendered; or when the recommendable content is not updated, the state of the recommendable content is not updated.
Optionally, before the updating the state of the recommendable content to be unrendered, the method further includes:
acquiring the recommending time of the recommendable content for performing state updating and the time for performing state updating;
judging whether the recommendation interval duration of the recommendable content exceeds a preset value or not according to the recommendation time and the time for updating the state;
determining whether to cancel the updating of the state of the recommendable content according to whether the recommendation interval duration exceeds a preset value; when the recommendation interval duration exceeds a preset value, updating the state of the recommendable content to be unrendered, and resetting the recommendation time of the recommendable content;
or when the recommendation interval duration does not exceed a preset value, the state of the recommendable content is not updated.
Optionally, before distributing each item of recommendable content to any one of the recommendation tables, the method further includes:
creating a number of empty recommendable contents and placing the empty recommendable contents in all the recommendable contents.
Optionally, the allocating each item of recommendable content to any one of the recommendation tables specifically includes:
and according to the quantity of the recommendable contents, randomly and uniformly distributing all the recommendable contents to all the recommendation tables.
The embodiment of the invention also provides a function recommendation table group maintenance system, which is applied to an application program and comprises the following steps: the system comprises a data acquisition module, a creation module, a distribution module and a maintenance module;
the data acquisition module is used for finding all recommendable items in an application program and acquiring recommendable contents corresponding to the recommendable items;
the creating module is used for creating at least two recommendation tables which are independent from each other, wherein the triggering mode and the recommendation mode corresponding to each recommendation table are different;
the distribution module is used for distributing each item of the recommendable content to any one of the recommendation tables;
and the maintenance module is used for acquiring recommendable contents with a first state of unrendered in sequence from the recommendation table as contents to be recommended corresponding to the trigger condition when the trigger condition of the recommendation table is met, and marking the states of the recommendable contents as recommended.
Optionally, the maintenance system further includes: and the updating module is used for updating the states of all the recommendable contents meeting preset conditions in the recommendation table to be unrendered when the obtained recommendable contents with the unrendered states are positioned at the tail of the recommendation table.
Optionally, the update module includes: the first judging unit is used for confirming whether the recommendable content is periodically recommended content or one-time recommended content; when the recommendable content is one-time recommended content, judging whether the recommendable content is updated or not;
the updating module is specifically configured to update the state of the recommendable content to be unrendered when the recommendable content is a periodically recommended content; or when the recommendable content is one-time recommended content, judging whether the recommendable content is updated through a first judging unit, and when the recommendable content is updated, updating the state of the recommendable content to be unrendered; or when the recommendable content is not updated, the state of the recommendable content is not updated.
Optionally, the update module further includes: a second judgment unit, configured to acquire a recommendation time of the recommendable content for performing a status update and a time for performing the status update; judging whether the recommendation interval duration of the recommendable content exceeds a preset value or not according to the recommendation time and the time for updating the state;
the updating module is specifically configured to, when the recommendation interval duration exceeds a preset value, continue to update the state of the recommendable content, update the state of the recommendable content to an unrenominated state, and reset the recommendation time of the recommendable content; or when the recommendation interval duration does not exceed a preset value, the state updating of the recommendable content is cancelled, and the state of the recommendable content is not updated.
Optionally, the maintenance system further includes: and the empty object creating module is used for creating a plurality of empty recommendable contents and placing the empty recommendable contents in all the recommendable contents acquired by the data acquiring module.
Optionally, the distribution module is specifically configured to distribute all the recommendable contents randomly and uniformly to all the recommendation tables according to the number of the recommendable contents.
Compared with the prior art, the technical scheme of the invention has the following advantages: according to the embodiment of the invention, the recommendation tables with different trigger modes and recommendation modes are created, the recommendable contents are obtained and placed in the recommendation tables, the recommendation tables are triggered through different trigger modes, the contents to be recommended are pushed through different recommendation modes, the experience of a user in use is improved, and the user viscosity is improved.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
As shown in fig. 1, a method for maintaining a function recommendation table set provided in an embodiment of the present invention is applied to an application program, and includes:
s11, finding all recommendable items in the application program, and acquiring recommendable contents corresponding to the recommendable items;
specifically, different recommendation items of the application program are found, such as recommendation items of program update recommendation, system information recommendation, friend information recommendation and the like, recommendable content corresponding to the recommendation items is obtained according to the types of the recommendation items, the obtaining is performed according to the item types, the obtaining speed is increased, and the obtained recommendable content is convenient to arrange.
S12, creating at least two recommendation tables which are independent from each other, wherein the trigger mode and the recommendation mode corresponding to each recommendation table are different;
specifically, a plurality of recommendation tables are created to form a recommendation table group, the triggering mode and the triggered recommendation mode of each recommendation table are different, for example, two recommendation tables are created, where the triggering mode of one recommendation table is triggered when the number of times of entry of an application program is odd, the triggered recommendation mode is pop-up recommendation, the triggering mode of the other recommendation table is triggered when the number of times of entry of the application program is even, the triggered recommendation mode is mark recommendation, and mark recommendation is to perform digital marking or color marking on a control corresponding to recommendation content, so that when the recommendation tables are extended to more than two recommendation tables, the corresponding recommendation table is selected according to the number of times of entry, and through attributes of the recommendation tables, change of a mode of sending recommendations to a user can be realized, and experience of the user is improved.
S13, distributing each item of recommendable content to any one of the recommendation tables;
specifically, the recommendable content is distributed to a recommendation table, so that a user can acquire the recommendable content from the recommendation table for recommendation after triggering the recommendation table, and the circular pushing of the recommendable content in the recommendation table by a recommendation mode corresponding to the recommendation table is realized.
And S14, when the trigger condition of the recommendation table is met, sequentially acquiring recommendable contents with a first state of unrendered from the recommendation table, wherein the recommendable contents serve as contents to be recommended corresponding to the trigger condition, and the states of the recommendable contents are marked as recommended.
Specifically, when the recommendation table is triggered, the recommendable content whose first state is unrendered is obtained from the recommendation table, recommendation is performed in a recommendation manner corresponding to the recommendation table, the state of the recommendable content that has been recommended is marked as recommended, and the recommendable content next to the recommendable content is obtained and recommended next time the recommendation table is triggered.
In the embodiment, by finding the recommendable item in the application program, obtaining the recommendable content according to the recommendable item, improving the obtaining efficiency and facilitating the arrangement process of the obtained data, creating a plurality of recommendation tables with different trigger modes and recommendation modes, and sequentially distributing the recommendable content to different recommendation tables, it is realized that when the recommendation tables are triggered, the recommendable content is pushed in different recommendation modes, after the recommendable content is recommended, the state of the recommendable content is marked as recommended, and other unrendered content is conveniently obtained when the recommendation tables are triggered next time.
As shown in fig. 2, a method for maintaining a function recommendation table set according to another embodiment of the present invention is applied to an application program, and includes:
s21, finding all recommendable items in the application program, and acquiring recommendable contents corresponding to the recommendable items;
specifically, different recommendation items of the application program are found, such as recommendation items of program update recommendation, system information recommendation, friend information recommendation and the like, recommendable content corresponding to the recommendation items is obtained according to the types of the recommendation items, the obtaining is performed according to the item types, the obtaining speed is increased, and the obtained recommendable content is convenient to arrange.
S22, creating at least two recommendation tables which are independent from each other, wherein the trigger mode and the recommendation mode corresponding to each recommendation table are different;
specifically, a plurality of recommendation tables are created to form a recommendation table group, the triggering mode of each recommendation table is different from the triggered recommendation mode, and the change of the mode of sending recommendations to the user can be realized through the attributes of the recommendation tables, so that the experience of the user is improved.
S23, distributing each item of recommendable content to any one of the recommendation tables;
specifically, the recommendable content is distributed to a recommendation table, so that a user can acquire the recommendable content from the recommendation table for recommendation after triggering the recommendation table, and the circular pushing of the recommendable content in the recommendation table by a recommendation mode corresponding to the recommendation table is realized.
And S24, when the trigger condition of the recommendation table is met, sequentially acquiring recommendable contents with a first state of unrendered from the recommendation table, wherein the recommendable contents serve as contents to be recommended corresponding to the trigger condition, and the states of the recommendable contents are marked as recommended.
Specifically, when the recommendation table is triggered, the recommendable content whose first state is unrendered is obtained from the recommendation table, recommendation is performed in a recommendation manner corresponding to the recommendation table, the state of the recommendable content that has been recommended is marked as recommended, and the recommendable content next to the recommendable content is obtained and recommended next time the recommendation table is triggered.
And S25, when the acquired recommendable content is at the tail of the recommendation table, updating the states of all recommendable contents meeting the preset conditions in the recommendation table to be unrenominated.
Specifically, when the recommendable content obtained from the recommendation table is in an unrendered state and is located at the end of the recommendation table, that is, at this time, all recommendable contents in the recommendation table have been recommended once, the states of all recommendable contents in the recommendation table that satisfy a preset condition are updated to be unrendered, where the preset condition includes: the recommended content is not accepted by the user, if the recommended content is updated in version, the user is required to update the latest version to obtain better service, the recommended content needs to be repeatedly sent, if the user does not update according to recommendation, the state of the recommendable content needs to be updated to be unrendered, and when the recommendable content completing recommendation is completed or accepted by the user, the recommendable content is deleted, so that repeated recommendation of the completed recommendable content is avoided.
In the above embodiment, when the acquired recommendable content is located at the tail of the recommendation table, the state of the recommendable content meeting the preset condition in the recommendation table is updated to be unrenominated, so that the recommendable content in the recommendation table is pushed circularly.
As shown in fig. 3, a method for maintaining a function recommendation table set according to another embodiment of the present invention is applied to an application program, and includes:
s31, finding all recommendable items in the application program, and acquiring recommendable contents corresponding to the recommendable items;
specifically, different recommendation items of the application program are found, such as recommendation items of program update recommendation, system information recommendation, friend information recommendation and the like, recommendable content corresponding to the recommendation items is obtained according to the types of the recommendation items, the obtaining is performed according to the item types, the obtaining speed is increased, and the obtained recommendable content is convenient to arrange.
S32, creating at least two recommendation tables which are independent from each other, wherein the trigger mode and the recommendation mode corresponding to each recommendation table are different;
specifically, a plurality of recommendation tables are created to form a recommendation table group, the triggering mode of each recommendation table is different from the triggered recommendation mode, and the change of the mode of sending recommendations to the user can be realized through the attributes of the recommendation tables, so that the experience of the user is improved.
S33, distributing each item of recommendable content to any one of the recommendation tables;
specifically, the recommendable content is distributed to a recommendation table, so that a user can acquire the recommendable content from the recommendation table for recommendation after triggering the recommendation table, and the circular pushing of the recommendable content in the recommendation table by a recommendation mode corresponding to the recommendation table is realized.
And S34, when the trigger condition of the recommendation table is met, sequentially acquiring recommendable contents with a first state of unrendered from the recommendation table, wherein the recommendable contents serve as contents to be recommended corresponding to the trigger condition, and the states of the recommendable contents are marked as recommended.
Specifically, when the recommendation table is triggered, the recommendable content whose first state is unrendered is obtained from the recommendation table, recommendation is performed in a recommendation manner corresponding to the recommendation table, the state of the recommendable content that has been recommended is marked as recommended, and the recommendable content next to the recommendable content is obtained and recommended next time the recommendation table is triggered.
S351, when the acquired recommendable content in the unreported state is located at the tail of the recommendation table;
s352, confirming whether the recommendable content is periodically recommended content or one-time recommended content;
s353, when the recommendable content is the periodically recommended content, updating the state of the recommendable content to be unrendered;
s354, when the recommendable content is the one-time recommended content, judging whether the recommendable content is updated, and when the recommendable content is updated, updating the state of the recommendable content to be unrendered; or when the recommendable content is not updated, the state of the recommendable content is not updated.
In the above embodiment, the periodically recommended content indicates that a recommendation needs to be continuously sent for notification when the user does not complete the content, so as to avoid affecting the use of the user, such as notification of system version update, activity push, and the like, the once recommended content indicates that a notification is sent only once for the user, the recommended content is not displayed next time no matter whether the user completes the notification, but when the same type of once notification is updated again, a recommendation needs to be sent again for notification for the user, such as notification of system information, friend incoming and outgoing information, and whether the recommendable content needs to be recommended again is determined according to the type of the recommendable content, so that the number of times of unnecessary recommendations is reduced.
As shown in fig. 4, a method for maintaining a function recommendation table set according to another embodiment of the present invention is applied to an application program, and includes:
s41, before the status of the recommendable content is updated to be not recommended;
s42, acquiring the recommendation time of the recommendable content for performing the state update and the time for performing the state update;
s43, judging whether the recommendation interval duration of the recommendable content exceeds a preset value according to the recommendation time and the time for updating the state;
s44, determining whether to cancel the update of the state of the recommendable content according to whether the recommendation interval duration exceeds a preset value;
s45a, when the recommendation interval duration exceeds a preset value, updating the state of the recommendable content into an unrecommended state, and resetting the recommendation time of the recommendable content;
s45b, or when the recommendation interval duration does not exceed the preset value, the state of the recommendable content is not updated.
In the above embodiment, before the state of the recommendable content is updated to be unrendered, the recommendation time of the recommendable content needing to be updated is obtained, that is, the state of the recommendable content is marked as the recommended time, and the state updating time is the time when the state is updated from the recommended time to the unrendered time.
As shown in fig. 5, a method for maintaining a function recommendation table set according to another embodiment of the present invention is applied to an application program, and includes:
s51, finding all recommendable items in the application program, and acquiring recommendable contents corresponding to the recommendable items;
specifically, different recommendation items of the application program are found, such as recommendation items of program update recommendation, system information recommendation, friend information recommendation and the like, recommendable content corresponding to the recommendation items is obtained according to the types of the recommendation items, the obtaining is performed according to the item types, the obtaining speed is increased, and the obtained recommendable content is convenient to arrange.
S52, creating at least two recommendation tables which are independent from each other, wherein the trigger mode and the recommendation mode corresponding to each recommendation table are different;
specifically, a plurality of recommendation tables are created to form a recommendation table group, the triggering mode of each recommendation table is different from the triggered recommendation mode, and the change of the mode of sending recommendations to the user can be realized through the attributes of the recommendation tables, so that the experience of the user is improved.
S53, creating several empty recommendable contents, and placing the empty recommendable contents in all recommendable contents.
S54, distributing each item of recommendable content to any one of the recommendation tables;
specifically, the recommendable content is distributed to a recommendation table, so that a user can acquire the recommendable content from the recommendation table for recommendation after triggering the recommendation table, and the circular pushing of the recommendable content in the recommendation table by a recommendation mode corresponding to the recommendation table is realized.
And S55, when the trigger condition of the recommendation table is met, sequentially acquiring recommendable contents with a first state of unrendered from the recommendation table, wherein the recommendable contents serve as contents to be recommended corresponding to the trigger condition, and the states of the recommendable contents are marked as recommended.
Specifically, when the recommendation table is triggered, the recommendable content whose first state is unrendered is obtained from the recommendation table, recommendation is performed in a recommendation manner corresponding to the recommendation table, the state of the recommendable content that has been recommended is marked as recommended, and the recommendable content next to the recommendable content is obtained and recommended next time the recommendation table is triggered.
In the above embodiment, a plurality of empty recommendable contents are created and mixed in all recommendable contents, and in the recommendation table, if the empty recommendable contents are reached, no recommendation is sent, so that a recommendation interval is realized, interestingness of the user in use is improved, and user stickiness is improved.
In this embodiment, allocating each item of recommendable content to any one of the recommendation tables specifically includes:
and according to the quantity of the recommendable contents, randomly and uniformly distributing all the recommendable contents to all the recommendation tables.
As shown in fig. 6, an embodiment of the present invention further provides a function recommendation table group maintenance system, which is applied to an application program, and includes: the system comprises a data acquisition module, a creation module, a distribution module and a maintenance module; the maintenance system further includes: a null object creation module;
the data acquisition module is used for finding all recommendable items in the application program and acquiring recommendable contents corresponding to the recommendable items;
the device comprises a creating module, a recommending module and a judging module, wherein the creating module is used for creating at least two recommendation tables which are independent from each other, and the triggering mode and the recommending mode corresponding to each recommendation table are different;
and the empty object creating module is used for creating a plurality of empty recommendable contents and placing the empty recommendable contents in all recommendable contents acquired by the data acquiring module.
The distribution module is used for distributing each item of recommendable content to any one of the recommendation tables, specifically, distributing all recommendable contents to all recommendation tables randomly and uniformly according to the number of recommendable contents;
and the maintenance module is used for sequentially acquiring recommendable contents with a first state of unrendered from the recommendation table as contents to be recommended corresponding to the trigger condition when the trigger condition of the recommendation table is met, and marking the states of the recommendable contents as recommended.
And the updating module is used for updating the states of all the recommendable contents meeting preset conditions in the recommendation table to be unrendered when the obtained recommendable contents with the unrendered states are positioned at the tail of the recommendation table.
In a first embodiment provided by the present invention, the update module includes: a first judgment unit configured to determine whether the recommended content is a periodically recommended content or a one-time recommended content; when the recommendable content is one-time recommended content, judging whether the recommendable content is updated or not;
the updating module is specifically used for updating the state of the recommendable content to be unrendered when the recommendable content is periodically recommended; or when the recommendable content is the one-time recommended content, judging whether the recommendable content is updated through the first judging unit, and when the recommendable content is updated, updating the state of the recommendable content to be unrendered; or when the recommendable content is not updated, the state of the recommendable content is not updated.
In a second embodiment provided by the present invention, the update module further includes: the second judgment unit is used for acquiring the recommendation time of the recommendable content for performing the state update and the time for performing the state update; judging whether the recommendation interval duration of the recommendable content exceeds a preset value or not according to the recommendation time and the time for updating the state;
the updating module is specifically used for continuing to update the state of the recommendable content when the recommendation interval duration exceeds a preset value, updating the state of the recommendable content into an unrenominated state, and resetting the recommendation time of the recommendable content; or when the recommendation interval duration does not exceed the preset value, the state updating of the recommendable content is cancelled, and the state of the recommendable content is not updated.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.