Interactive window display method and device, electronic equipment and storage medium

文档序号:7270 发布日期:2021-09-17 浏览:29次 中文

1. An interactive window display method, the method comprising:

under the condition of receiving an interactive window display request which is sent by a client and carries a user identifier, acquiring content data to be displayed;

calling a pushing weight of the interactive window pattern series corresponding to the user identification aiming at any preset interactive window pattern series;

screening out target interaction window pattern series from all the interaction window pattern series according to the pushing weight;

combining the content data to be displayed with the target interactive window pattern series to obtain interactive window data;

and returning the interactive window data to the client so that the client generates an interactive window according to the interactive window data for displaying.

2. The method of claim 1, further comprising:

receiving operation feedback information of the user on the interactive window, wherein the operation feedback information comprises feedback data and a user identifier;

and updating the pushing weight of the target interaction window style series corresponding to the user identification according to the feedback data.

3. The method according to claim 2, wherein the updating the push weight of the target interactive window style series corresponding to the user identifier according to the feedback data comprises:

determining a weight variation value corresponding to feedback data according to a mapping relation between preset feedback data and the weight variation value;

calculating the pushing weight of the target interaction window pattern series corresponding to the user identification and the weight variation value according to a preset algorithm to obtain a new pushing weight of the target main pushing interaction window pattern series corresponding to the user identification.

4. The method of claim 1, wherein the filtering out the target series of interactive window patterns from all the series of interactive window patterns according to the push weight comprises:

acquiring the maximum target push weight from all the push weights, and acquiring an interactive window style series corresponding to the target push weight;

if the number of the interactive window pattern series corresponding to the target pushing weight is equal to one, determining the interactive window pattern series corresponding to the target pushing weight as a target interactive window pattern series;

and if the number of the interactive window pattern series corresponding to the target push weight is more than one, randomly selecting one interactive window pattern series from the interactive window pattern series corresponding to the target push weight as a target interactive window pattern series.

5. The method of claim 4, wherein, if the number of the interactive window pattern series corresponding to the target push weight is greater than one, randomly selecting one interactive window pattern series from the interactive window pattern series corresponding to the target push weight as the target interactive window pattern series comprises:

if the number of the interactive window pattern series corresponding to the target pushing weight is more than one, sequencing the interactive window pattern series corresponding to the target pushing weight;

generating target random numbers which are not more than the number of the interactive window pattern series corresponding to the target pushing weight by using a preset random number generation algorithm, and determining an arrangement sequence corresponding to the target random numbers as a target sequence;

and determining the interactive window pattern series with the arrangement sequence being the target sequence as a target interactive window pattern series.

6. The method according to claim 1, wherein after the retrieving, for any preset series of interactive window styles, the push weight of the series of interactive window styles corresponding to the user identifier, and before the screening out the target series of interactive window styles from all the series of interactive window styles according to the push weight, the method further comprises:

determining the current moment;

if the current time is within a preset time range, determining a main push interactive window pattern series corresponding to the preset time range from all interactive window pattern series according to the mapping relation between the preset time range and the interactive window pattern series;

and changing the pushing weight of the main pushing interaction window style series corresponding to the user identification into a preset target value.

7. The method of claim 1, wherein the target interactive window pattern series comprises presentation patterns for different content element combinations, and the presentation patterns comprise pattern data of each content element in the content element combination corresponding to the presentation patterns;

the combining the content data to be displayed and the target interactive window style series to obtain interactive window data comprises:

determining a target content element combination corresponding to the content data to be displayed according to content elements contained in the content data to be displayed;

determining a target display style corresponding to the target content element combination from the target interaction window style series;

for data corresponding to any content element in the content data to be displayed, packaging the data corresponding to the content element and style data corresponding to the content element in the target display style to obtain element display data of the content element;

and packaging the element display data corresponding to all content elements in the obtained content data to be displayed to obtain the interactive window data.

8. An interactive window display device, the device comprising:

the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring content data to be displayed under the condition of receiving an interactive window display request which is sent by a client and carries a user identifier;

the calling module is used for calling the pushing weight of the interactive window pattern series corresponding to the user identification aiming at any preset interactive window pattern series;

the screening module is used for screening the target interaction window pattern series from all the interaction window pattern series according to the pushing weight;

the combination module is used for combining the content data to be displayed and the target interactive window pattern series to obtain interactive window data;

and the sending module is used for returning the interactive window data to the client so that the client generates an interactive window according to the interactive window data for displaying.

9. An electronic device, comprising: at least one processor and memory;

the processor is configured to execute the interactive window displaying program stored in the memory to implement the interactive window displaying method according to any one of claims 1 to 7.

10. A storage medium storing one or more programs which, when executed, implement the interactive window presentation method of any one of claims 1-7.

Background

With the development of internet technology, users can search and play videos on the internet at any time for watching. In the video playing process, in order to increase the interactivity and interestingness of user watching and simultaneously realize the flow guide function in the video playing process, some interactive windows can be popped up when the video is played, the video playing device is used for the functions of activity promotion, advertisement marketing, information prompt and the like, and the video playing device mainly comprises a small amount of content elements such as characters, pictures, buttons and the like.

When the interactive window is displayed, in order to avoid the user experience of forcibly watching the interactive window, the interactive window is generally displayed in the corner of the screen, and when the user is concentrated on the video to watch, the user usually notices the style of the interactive window first when the interactive window appears, so that the style of the interactive window can be continuously updated in the related technology to obtain more attention of the user.

However, in the related art, interactive windows of the same style can be uniformly pushed, individual preferences of users are different, reactions of different users may also be different for the style of the same interactive window, and even bad experiences may be brought to some users.

Disclosure of Invention

In order to solve the problems that reactions of different users may be different for the same type of interactive window due to different individual preferences of the users in the related art, and even bad experiences are brought to some users, the application provides an interactive window display method, an interactive window display device, electronic equipment and a storage medium.

According to a first aspect of the present application, there is provided an interactive window display method, the method comprising:

under the condition of receiving an interactive window display request which is sent by a client and carries a user identifier, acquiring content data to be displayed;

calling a pushing weight of the interactive window pattern series corresponding to the user identification aiming at any preset interactive window pattern series;

screening out target interaction window pattern series from all the interaction window pattern series according to the pushing weight;

combining the content data to be displayed with the target interactive window pattern series to obtain interactive window data;

and returning the interactive window data to the client so that the client generates an interactive window according to the interactive window data for displaying.

In an optional embodiment, the method further comprises:

receiving operation feedback information of the user on the interactive window, wherein the operation feedback information comprises feedback data and a user identifier;

and updating the pushing weight of the target interaction window style series corresponding to the user identification according to the feedback data.

In an optional embodiment, the updating, according to the feedback data, the push weight of the target interaction window style series corresponding to the user identifier includes:

determining a weight variation value corresponding to feedback data according to a mapping relation between preset feedback data and the weight variation value;

calculating the pushing weight of the target interaction window pattern series corresponding to the user identification and the weight variation value according to a preset algorithm to obtain a new pushing weight of the target main pushing interaction window pattern series corresponding to the user identification.

In an optional embodiment, the filtering out a target interactive window pattern series from all the interactive window pattern series according to the push weight includes:

acquiring a maximum target push weight from push weights corresponding to all the user identifications, and acquiring an interaction window style series corresponding to the target push weight;

if the number of the interactive window pattern series corresponding to the target pushing weight is equal to one, determining the interactive window pattern series corresponding to the target pushing weight as a target interactive window pattern series;

and if the number of the interactive window pattern series corresponding to the target push weight is more than one, randomly selecting one interactive window pattern series from the interactive window pattern series corresponding to the target push weight as a target interactive window pattern series.

In an optional embodiment, if the number of the interactive window pattern series corresponding to the target push weight is greater than one, randomly selecting one interactive window pattern series from the interactive window pattern series corresponding to the target push weight as a target interactive window pattern series, includes:

if the number of the interactive window pattern series corresponding to the target pushing weight is more than one, sequencing the interactive window pattern series corresponding to the target pushing weight;

generating target random numbers which are not more than the number of the interactive window pattern series corresponding to the target pushing weight by using a preset random number generation algorithm, and determining an arrangement sequence corresponding to the target random numbers as a target sequence;

and determining the interactive window pattern series with the arrangement sequence being the target sequence as a target interactive window pattern series.

In an optional embodiment, after the retrieving, for any preset interactive window pattern series, a push weight of the interactive window pattern series corresponding to the user identifier, and before the screening out a target interactive window pattern series from all the interactive window pattern series according to the push weight, the method further includes:

determining the current moment;

if the current time is within a preset time range, determining a main push interactive window pattern series corresponding to the preset time range from all interactive window pattern series according to the mapping relation between the preset time range and the interactive window pattern series;

and changing the pushing weight of the main pushing interaction window style series corresponding to the user identification into a preset target value.

In an optional embodiment, the target interactive window pattern series includes a display pattern for different content element combinations, and the display pattern includes pattern data of each content element in the content element combination corresponding to the display pattern;

the combining the content data to be displayed and the target interactive window style series to obtain interactive window data comprises:

determining a target content element combination corresponding to the content data to be displayed according to content elements contained in the content data to be displayed;

determining a target display style corresponding to the target content element combination from the target interaction window style series;

for data corresponding to any content element in the content data to be displayed, packaging the data corresponding to the content element and style data corresponding to the content element in the target display style to obtain element display data of the content element;

and packaging the element display data corresponding to all content elements in the obtained content data to be displayed to obtain the interactive window data.

According to a second aspect of the present application, there is provided an interactive window display device, the device comprising:

the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring content data to be displayed under the condition of receiving an interactive window display request which is sent by a client and carries a user identifier;

the calling module is used for calling the pushing weight of the interactive window pattern series corresponding to the user identification aiming at any preset interactive window pattern series;

the screening module is used for screening the target interaction window pattern series from all the interaction window pattern series according to the pushing weight;

the combination module is used for combining the content data to be displayed and the target interactive window pattern series to obtain interactive window data;

and the sending module is used for returning the interactive window data to the client so that the client generates an interactive window according to the interactive window data for displaying.

In an optional embodiment, the apparatus further comprises:

the receiving module is used for receiving operation feedback information of the user on the interactive window, wherein the operation feedback information comprises feedback data and a user identifier;

and the updating module is used for updating the pushing weight of the target interaction window style series corresponding to the user identification according to the feedback data.

In an optional embodiment, the update module comprises:

the first determining unit is used for determining a weight variation value corresponding to the feedback data according to a mapping relation between preset feedback data and the weight variation value;

and the calculating unit is used for calculating the pushing weight of the target interaction window pattern series corresponding to the user identifier and the weight variation value according to a preset algorithm to obtain a new pushing weight of the target main pushing interaction window pattern series corresponding to the user identifier.

In an alternative embodiment, the screening module comprises:

the acquisition unit is used for acquiring the maximum target push weight from the push weights corresponding to all the user identifications and acquiring an interactive window style series corresponding to the target push weight;

a second determining unit, configured to determine, if the number of the interaction window pattern series corresponding to the target push weight is equal to one, the interaction window pattern series corresponding to the target push weight as a target interaction window pattern series;

and the third determining unit is used for randomly selecting one interactive window pattern series from the interactive window pattern series corresponding to the target push weight as the target interactive window pattern series if the number of the interactive window pattern series corresponding to the target push weight is more than one.

In an optional embodiment, the third determining unit comprises:

the sequencing unit is used for sequencing the interactive window pattern series corresponding to the target pushing weight if the number of the interactive window pattern series corresponding to the target pushing weight is more than one;

the first determining subunit is used for generating target random numbers, the number of which is not more than the number of the interaction window pattern series corresponding to the target pushing weight, by using a preset random number generation algorithm, and determining the arrangement sequence corresponding to the target random numbers as a target sequence;

and the second determining subunit is used for determining the interactive window pattern series with the arrangement sequence being the target sequence as the target interactive window pattern series.

In an optional embodiment, the apparatus further comprises:

the first determining module is used for determining the current moment;

the second determining module is used for determining a main push interactive window pattern series corresponding to the preset time range from all the interactive window pattern series according to the mapping relation between the preset time range and the interactive window pattern series if the current time is within the preset time range;

and the changing module is used for changing the pushing weight of the main pushing interaction window style series corresponding to the user identification into a preset target value.

In an optional embodiment, the target interactive window pattern series includes a display pattern for different content element combinations, and the display pattern includes pattern data of each content element in the content element combination corresponding to the display pattern;

the combination module includes:

a fourth determining unit, configured to determine, according to content elements included in the content data to be displayed, a target content element combination corresponding to the content data to be displayed;

a fifth determining unit, configured to determine, from the target interaction window pattern series, a target display pattern corresponding to the target content element combination;

the first packaging unit is used for packaging data corresponding to any content element in content data to be displayed and style data corresponding to the content element in the target display style to obtain element display data of the content element;

and the second packaging unit is used for packaging the element display data corresponding to all content elements in the obtained content data to be displayed to obtain the interactive window data.

According to a third aspect of the present application, there is provided an electronic device comprising: at least one processor and memory;

the processor is configured to execute the interactive window display program stored in the memory, so as to implement the interactive window display method according to the first aspect of the present application.

According to a fourth aspect of the present application, there is provided a storage medium storing one or more programs which, when executed, implement the interactive window presentation method according to the first aspect of the present application.

The technical scheme provided by the application can comprise the following beneficial effects: the method comprises the steps of obtaining content data to be displayed under the condition that an interactive window display request carrying a user identification and sent by a client is received, calling a push weight of the interactive window type series corresponding to the user identification aiming at any preset interactive window type series, screening a target interactive window type series from all the interactive window type series according to the push weight, combining the content data to be displayed and the target interactive window type series to obtain interactive window data, and finally returning the interactive window data to the client so that the client generates an interactive window according to the interactive window data to display. Based on this, for different users, the pushing weight corresponding to the user can be set for each interactive window pattern series to match the preference of the user, so that the client generates an interactive window according to the interactive window data pushed by the scheme of the application, the interactive window pattern takes the difference of different users into consideration, the preference of the user can be better met, and the user experience is improved.

It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.

Fig. 1 is a schematic flowchart illustrating an interactive window displaying method according to an embodiment of the present application;

FIG. 2 is a flowchart illustrating a process of changing a push weight of a main push interactive window style set according to an embodiment of the present application;

FIG. 3 is a flow chart illustrating a process for filtering a series of object-interaction window styles according to an embodiment of the present application;

FIG. 4 is a flowchart illustrating randomly selecting a target interaction window pattern series from the interaction window pattern series corresponding to the target push weight according to an embodiment of the present application;

FIG. 5 is a flowchart illustrating combining content data to be displayed with a target interactive window style set according to an embodiment of the present application;

FIG. 6 is a flowchart illustrating a process for updating a push weight for an interactive window style set according to an embodiment of the present application;

fig. 7 is a signaling flow diagram of an interactive frame display method according to another embodiment of the present application;

FIG. 8 is a schematic structural diagram of an interactive window display device according to another embodiment of the present application;

fig. 9 is a schematic structural diagram of an electronic device according to another embodiment of the present application.

Detailed Description

Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

Referring to fig. 1, fig. 1 is a schematic flowchart illustrating an interactive window displaying method according to an embodiment of the present application.

As shown in fig. 1, the method for displaying an interactive window provided in this embodiment may include:

step S101, under the condition that an interactive window display request which is sent by a client and carries a user identification is received, content data to be displayed are obtained.

In this step, the interactive window display request carries a user identifier, where the user identifier may be user account information of logging in the client, or other information that can uniquely identify a login user of the client.

In addition, the content data to be displayed may be stored in a database, and when the content data to be displayed is obtained, the corresponding content data to be displayed may be obtained according to the requested time period, for example, the content data to be displayed in the database is mapped to different time periods, and the content data to be displayed corresponding to the time period is obtained when the requested time is in which time period.

Of course, the content data may be obtained according to the preference of the user for the content data, and during the obtaining, the corresponding type may be queried according to the user identifier, and then the content data to be displayed of the type may be obtained from the database.

And S102, aiming at any preset interactive window pattern series, calling a pushing weight of the interactive window pattern series corresponding to the user identification.

In this step, there may be a plurality of preset interactive window pattern series, and specifically, the preset interactive window pattern series may be divided into a plurality of parallel interactive window pattern series according to the color system and shape of the interactive window and different content element combinations included therein, for example, an interactive window pattern of a rectangular frame, which is yellow in color and includes pattern data of at least one content element of three content elements of a picture, a text, and a button, is classified as one interactive window pattern series.

In a specific example, there are 3 content elements such as pictures, text and buttons, and there are 7 content element combinations: picture (C1); text (C2); a button (C3); pictures and words (C4); text and buttons (C5); pictures and buttons (C6); pictures, text and buttons (C7).

Then the interactive window styles belonging to the same color system and shape and having the content element combinations in 7 can be grouped into the same interactive window style series as shown in table 1.

TABLE 1

Wherein, S1, S2, S3 and S4 represent the series of interactive window styles, and S1C1 represents the display style of the C1 content combination in the series of interactive window styles.

Each interactive window style series is provided with corresponding pushing weight aiming at different users, the pushing weight can be predetermined by the system according to user preference data, the user preference data can be data such as shapes and colors which are preferred by the users, and the data can be obtained in a user-selected mode or can be obtained according to daily operation of the users.

Of course, the push weight may also be an initial value preset by the system, and then the value of the push weight is updated according to the operation feedback of the user on the interactive window, which will be specifically described in the subsequent process and will not be described herein again.

In a specific example, the mapping relationship between the push weight and the user identifier of each interactive window style series may be as shown in table 2.

Series of User identification A User identification B User identification C User identification D User identification E
S1 0.9 0.6 0.1 0.6 0.5
S2 0.6 0.9 0.5 0.1 0.9
S3 0.9 0.4 0.9 0.2 0.6
S4 0.3 0.1 0.6 0.9 0.3
…… …… …… …… …… ……

TABLE 2

If the user identifier carried in the interactive window display request received in step S101 is the user identifier a, then in this step, the push weight 0.9 of S1, the push weight 0.6 of S2, the push weight 0.9 of S3, and the push weight 0.3 of S4 may be retrieved from table 2.

Certainly, the interaction window pattern series that needs to be mainly pushed in a certain time period may be encountered sometimes, and then after the pushing weight is retrieved in step S102, the value of the pushing weight of the interaction window pattern series that is mainly pushed may also be changed to improve the pushing probability of the interaction window pattern series that is mainly pushed.

Specifically, referring to fig. 2, fig. 2 is a schematic flowchart illustrating a process of changing a push weight of a main push interactive window style series according to an embodiment of the present application.

As shown in fig. 2, the process of changing the push weight of the main push interactive window style series provided by this embodiment may include:

step S201, determining the current time.

The current time may be the time when the present step is executed, or the time when the push weight is obtained in step S102.

Step S202, if the current time is within the preset time range, determining a main push interactive window pattern series corresponding to the preset time range from all interactive window pattern series according to the mapping relation between the preset time range and the interactive window pattern series.

It should be noted that this step may be completed by using a monitoring event, a monitoring event is set for the preset time range, after the current time is determined in step S201, the monitoring event is used to determine whether the current time is within the preset time range, and if so, the main push interaction window pattern series corresponding to the preset time range is determined from all the interaction window pattern series according to the mapping relationship between the preset time range and the interaction window pattern series.

Of course, in order to increase the diversity of the main-push interactive window pattern series, multiple interactive window pattern series may be mapped with one time range, and multiple time ranges may exist, and there may be overlap between the multiple time ranges.

In one specific example, the mapping of the time range to the series of interactive window styles may be as follows

Shown in table 3.

Time horizon Interactive window pattern series
a S1、S3
b S4
c S2
…… ……

TABLE 3

After determining the current time, it can be sequentially checked in which time range the current time is, for example, the current time is in the time range c, so that it can be known from table 3 that the main push interactive window pattern series determined from all the interactive window pattern series is S3.

Step S203, changing the push weight of the main push interaction window style series corresponding to the user identification to a preset target value.

In order to avoid the source push weight being changed, in this step, the push weight of the main push interaction window style series corresponding to the user identifier called in step S102 is changed. It should be noted that, in this embodiment, the main push interaction window pattern series belongs to one of all existing interaction window pattern series, and if the main push interaction window pattern series determined in this embodiment does not exist, it may be, but is not limited to, report an error, so that the operation and maintenance personnel actively add the relevant data of the main push interaction window pattern series.

In addition, in this step, the preset target value may be determined according to the range of the pushing weight, and if the pushing weight is a value between 0 and 1, the preset target value may be directly set to 1, or may be a relatively large value between 0 and 1, such as 0.9, 0.8, and the like.

And S103, screening out target interactive window pattern series from all interactive window pattern series according to the pushing weight.

In this step, the interaction window style series with the largest push weight is generally used as the target interaction window style series, specifically, refer to fig. 3, where fig. 3 is a schematic flow diagram of screening the target interaction window style series according to an embodiment of the present application.

As shown in fig. 3, in this embodiment, the process of screening the target interaction window pattern series may include:

step S301, obtaining the maximum target push weight from the push weights corresponding to all the user identifications, and obtaining an interactive window style series corresponding to the target push weight.

After the push weight of each interactive window style series corresponding to the user identifier is obtained, the push weight with the largest numerical value is determined to serve as the target push weight, and specific methods for selecting the maximum value are various, such as a quick search method, a first-order and later-value-taking method and the like.

After the target push weight with the largest numerical value is found, the interactive window style series corresponding to the target push weight can be obtained. Since a plurality of target push weights with the largest numerical value may occur, a plurality of interactive window pattern series may be acquired at this time, and therefore, different processes for determining the target interactive window pattern series may be executed according to the number of the acquired interactive window pattern series.

Step S302, if the number of the interactive window pattern series corresponding to the target push weight is equal to one, determining the interactive window pattern series corresponding to the target push weight as the target interactive window pattern series.

In this step, since the number of the interactive window pattern series corresponding to the target push weight is equal to one, the interactive window pattern series corresponding to the target push weight is directly determined as the target interactive window pattern series.

Step S303, if the number of the interactive window pattern series corresponding to the target push weight is more than one, randomly selecting one interactive window pattern series from the interactive window pattern series corresponding to the target push weight as a target interactive window pattern series.

In this step, the number of the interaction window pattern series corresponding to the target push weight is greater than one, and in order to make the occurrence probabilities of the interaction window pattern series the same, in this embodiment, a random selection mode may be adopted to randomly select one interaction window pattern series from the interaction window pattern series corresponding to the target push weight as the target interaction window pattern series.

Referring to fig. 4, fig. 4 is a schematic flow chart illustrating a process of randomly selecting a target interaction window pattern series from interaction window pattern series corresponding to a target push weight according to an embodiment of the present application.

As shown in fig. 4, the process of randomly selecting a target interaction window pattern series from the interaction window pattern series corresponding to the target push weight according to this embodiment may include:

step S401, if the number of the interactive window pattern series corresponding to the target push weight is more than one, sequencing the interactive window pattern series corresponding to the target push weight.

In this step, the sorting is to set a sequence number for each interactive window pattern series corresponding to the target push weight, and of course, the sequence number may be a continuous positive integer starting from 1. When sequencing is carried out, sequencing can be carried out according to the uploading time of the interactive window pattern series, currently, sequencing can also be carried out randomly, and serial numbers are set.

Step S402, generating target random numbers which are not more than the number of the interactive window pattern series corresponding to the target pushing weight by using a preset random number generation algorithm, and determining the arrangement sequence corresponding to the target random numbers as a target sequence.

It should be noted that, in this step, when the random number is generated by using the random number generation algorithm, the random number needs to be generated according to the number of the interaction window pattern series corresponding to the target push weight, where the number of the interaction window pattern series corresponding to the target push weight is used as an upper limit value of the random number generation algorithm, and the generated target random number needs to be not greater than the number of the interaction window pattern series corresponding to the target push weight.

Since in step S401, a sequence number, i.e. an arrangement order, has been set for each interactive window pattern series corresponding to the target push weight, where the sequence number is a continuous positive integer starting from 1, and the generated target random number is not greater than the number of the interactive window pattern series corresponding to the target push weight, for convenience of comparison, a condition may be set for a random number generation algorithm, so that the generated random number is a positive integer, and at this time, the generated target random number inevitably corresponds to an arrangement order, and then the arrangement order is taken as a target order.

Of course, no condition may be set for the random number generation algorithm, and at this time, a target random number with a decimal may be generated, and at this time, integers at both ends of the target random number may be taken, and the absolute value of the difference between the integers at both ends and the target random number is compared to be smaller, and the arrangement order corresponding to the smaller corresponding integer may be used as the target order.

Step S403, determining the interactive window pattern series with the target sequence as the target interactive window pattern series.

In this step, the interactive window pattern series with the target sequence is determined as the target interactive window pattern series, and since the target sequence is obtained according to the target random number and the probability of generating any number by the random number generation algorithm is the same, in the process of determining the target interactive window pattern series in this embodiment, the probability of determining each interactive window pattern series corresponding to the target push weight as the target interactive window pattern series is the same.

And step S104, combining the content data to be displayed and the target interactive window style series to obtain interactive window data.

It should be noted that the target interactive window pattern series includes a display pattern for different content element combinations, and the display pattern includes pattern data of each content element in the content element combination corresponding to the display pattern. As shown in table 1, C1 and the like indicate the content element combination S1C1 indicates the presentation style of the C1 content element combination.

Specifically, referring to fig. 5, fig. 5 is a flowchart illustrating a process of combining to-be-displayed content data and a target interactive window style set according to an embodiment of the present application.

As shown in fig. 5, the process of combining the content data to be displayed and the target interactive window style set provided by this embodiment may include:

combining the content data to be displayed with the target interactive window pattern series to obtain interactive window data, comprising:

step S501, determining a target content element combination corresponding to the content data to be displayed according to the content elements contained in the content data to be displayed.

The content data to be displayed may include data corresponding to at least one content element, and thus corresponds to a content element combination, for example, the content data to be displayed including two content elements, i.e., a picture and a button, corresponds to the content element combination of C6 (shown in table 1).

Step S502, determining a target display style corresponding to the target content element combination from the target interaction window style series.

In this step, after the target interactive window pattern series and the target content element combination are obtained, the target display pattern corresponding to the target content element combination can be directly combined. For example, if the target content element combination is C6 and the target interactive window style is S1, the presentation style is S1C6 as shown in table 1.

Specifically, the presentation style may include a plurality of style data, such as background color data and style data corresponding to each content element. For example, in S1C6, the style data may include background color data, picture style data, and button style data.

Step S503, for data corresponding to any content element in the content data to be displayed, encapsulating the data corresponding to the content element and the style data corresponding to the content element in the target presentation style to obtain element display data of the content element.

In this step, the packaging may be packaging of the data of each content element and the corresponding style data, specifically, adding a link, an id, or the data itself of the data of the content element to a corresponding data position in the style data to obtain the element display data of each content element.

Step S504, element display data corresponding to all content elements in the obtained content data to be displayed are packaged to obtain interactive window data.

The encapsulation in this step may refer to combining the element display data corresponding to each of all content elements in the content data to be displayed according to a certain data format, thereby obtaining the interactive window data. Specifically, the data format may have the position of each element display data in the interactive window data.

And S105, returning the interactive window data to the client so that the client generates an interactive window according to the interactive window data for displaying.

In this embodiment, when an interactive window display request carrying a user identifier sent by a client is received, to-be-displayed content data is acquired, then, for any preset interactive window pattern series, a push weight of the interactive window pattern series corresponding to the user identifier is retrieved, then, according to the push weight, a target interactive window pattern series is screened from all the interactive window pattern series, after the to-be-displayed content data and the target interactive window pattern series are combined, the interactive window data can be acquired, and finally, the interactive window data is returned to the client, so that the client generates an interactive window according to the interactive window data to display. Based on this, for different users, the pushing weight corresponding to the user can be set for each interactive window pattern series to match the preference of the user, so that the client generates an interactive window according to the interactive window data pushed by the scheme of the application, the interactive window pattern takes the difference of different users into consideration, the preference of the user can be better met, and the user experience is improved.

In addition, in order to make the push weight more match with the preference of the user, the push weight of the interactive window style series can be updated through the operation feedback information of the user. Specifically, referring to fig. 6, fig. 6 is a schematic flowchart illustrating a process of updating a push weight of an interactive window style set according to an embodiment of the present application.

As shown in fig. 6, the pushing weight for updating the interactive window style series provided by this embodiment may include:

step S601, receiving operation feedback information of the user on the interactive window sent by the client, wherein the operation feedback information comprises feedback data and a user identifier.

In this step, the client generates corresponding operation feedback information according to the operation of the user on the interactive window, and performs feedback, where the operation feedback information includes feedback data and a user identifier. The feedback data may include, but is not limited to, an identifier corresponding to a certain operation and an identifier of a target interactive window style series of the operation.

It should be noted that, the following cases 3 may be provided for the user to operate the interactive window, and specifically, the following cases may be as shown in table 4.

Operation mark Operation of Weight variation value
1 Actively clicking content in interactive window 5%
2 The user has no operation, and the interactive window disappears after being displayed for a period of time -2%
3 Active closing of interactive windows -5%

TABLE 4

And step S602, updating the pushing weight of the target interaction window style series corresponding to the user identification according to the feedback data.

In this step, the specific update process may be as follows:

step one, determining a weight variation value corresponding to feedback data according to a mapping relation between preset feedback data and the weight variation value. The mapping relationship between the preset feedback data and the weight variation value can be as shown in table 4, and if the feedback data is "1", the corresponding weight variation value is 5%.

And step two, calculating the push weight and the weight change value of the target interaction window pattern series corresponding to the user identification according to a preset algorithm to obtain a new push weight of the target interaction window pattern series corresponding to the user identification.

It should be noted that the preset algorithm in this step may be an addition, and after the calculation, the value obtained by calculation is replaced with the value of the original pushing weight.

In a specific example, if the user identifier is a and the target interactive window pattern series is S1, it can be known from table 2 that the original push weight is 0.9, and if the identifier of the operation in the feedback data is "1", then 0.9+ 5% to 0.95 can be calculated, and then the push weight corresponding to the user identifier is a and the target interactive window pattern series is S1 in table 2 is changed to 0.95.

Referring to fig. 7, fig. 7 is a signaling flow diagram illustrating an interactive frame displaying method according to another embodiment of the present application.

As shown in fig. 7, the present embodiment mainly relates to three-terminal interaction, namely, a client, a server and a database, wherein a user operates at the client, the client logs in an account of the user, after the user controls video playing of the client, the user requests interactive window data (i.e., an interactive window display request) from the server in the video playing process, the server queries content data (i.e., content data to be displayed) from the database after receiving the interactive window display request (i.e., step S101), then the server queries a weight of a variety of formula series corresponding to a user identifier in the interactive window display request from the database (i.e., step S102), then calculates and selects the formula series, and obtains style data of the selected formula series (i.e., step S103), and then combines the content data and the style data (i.e., step S104) to obtain the interactive window data, and returning to the client (step S105), and generating an interactive window by the client according to the interactive window data and displaying the interactive window to the user.

The client generates operation feedback data according to the operation feedback of the user and uploads the operation feedback data to the server (step S601), and then the server updates the weight of the user to the style series according to the operation feedback data (step S602).

The process of this embodiment is specifically described in the foregoing embodiments, and is not described herein again.

Referring to fig. 8, fig. 8 is a schematic structural diagram of an interactive window display device according to another embodiment of the present application.

As shown in fig. 8, the interactive window display device provided in this embodiment may include:

an obtaining module 801, configured to obtain content data to be displayed when receiving an interactive window display request carrying a user identifier sent by a client;

the retrieving module 802 is configured to retrieve, for any preset interaction window pattern series, a pushing weight of the interaction window pattern series corresponding to the user identifier;

the screening module 803 is configured to screen a target interaction window pattern series from all interaction window pattern series according to the pushing weight;

the combination module 804 is used for combining the content data to be displayed and the target interactive window pattern series to obtain interactive window data;

the sending module 805 is configured to return the interactive window data to the client, so that the client generates an interactive window according to the interactive window data to display the interactive window.

In an alternative embodiment, the apparatus further comprises:

the receiving module is used for receiving operation feedback information of a user on the interactive window, wherein the operation feedback information comprises feedback data and a user identifier;

and the updating module is used for updating the pushing weight of the target interaction window style series corresponding to the user identification according to the feedback data.

In an alternative embodiment, the update module comprises:

the first determining unit is used for determining a weight variation value corresponding to the feedback data according to a mapping relation between preset feedback data and the weight variation value;

and the calculating unit is used for calculating the pushing weight and the weight change value of the target interaction window pattern series corresponding to the user identification according to a preset algorithm to obtain a new pushing weight of the target interaction window pattern series corresponding to the user identification.

In an alternative embodiment, the screening module comprises:

the acquisition unit is used for acquiring the maximum target push weight from the push weights corresponding to all the user identifications and acquiring an interactive window style series corresponding to the target push weight;

the second determining unit is used for determining the interactive window pattern series corresponding to the target pushing weight as the target interactive window pattern series if the number of the interactive window pattern series corresponding to the target pushing weight is equal to one;

and the third determining unit is used for randomly selecting one interactive window pattern series from the interactive window pattern series corresponding to the target push weight as the target interactive window pattern series if the number of the interactive window pattern series corresponding to the target push weight is more than one.

In an alternative embodiment, the third determination unit includes:

the sequencing unit is used for sequencing the interactive window pattern series corresponding to the target pushing weight if the number of the interactive window pattern series corresponding to the target pushing weight is more than one;

the first determining subunit is used for generating target random numbers which are not more than the number of the interactive window pattern series corresponding to the target pushing weight by using a preset random number generation algorithm, and determining the arrangement sequence corresponding to the target random numbers as a target sequence;

and the second determining subunit is used for determining the interactive window pattern series with the arrangement sequence as the target interactive window pattern series.

In an alternative embodiment, the apparatus further comprises:

the first determining module is used for determining the current moment;

the second determining module is used for determining a main push interactive window pattern series corresponding to the preset time range from all the interactive window pattern series according to the mapping relation between the preset time range and the interactive window pattern series if the current time is within the preset time range;

and the changing module is used for changing the pushing weight of the main pushing interaction window style series corresponding to the user identification into a preset target value.

In an optional embodiment, the target interactive window pattern series includes a display pattern for different content element combinations, and the display pattern includes pattern data of each content element in the content element combination corresponding to the display pattern;

the combination module comprises:

the fourth determining unit is used for determining a target content element combination corresponding to the content data to be displayed according to the content elements contained in the content data to be displayed;

the fifth determining unit is used for determining a target display style corresponding to the target content element combination from the target interactive window style series;

the first packaging unit is used for packaging the data corresponding to the content element and the style data corresponding to the content element in the target display style for the data corresponding to any content element in the content data to be displayed to obtain the element display data of the content element;

and the second packaging unit is used for packaging the element display data corresponding to all the content elements in the obtained content data to be displayed to obtain the interactive window data.

Referring to fig. 9, fig. 9 is a schematic structural diagram of an electronic device according to another embodiment of the present application.

As shown in fig. 9, the electronic device provided in this embodiment includes: at least one processor 901, memory 902, at least one network interface 903, and other user interfaces 904. Various components in the electronic device 900 are coupled together by a bus system 905. It is understood that the bus system 905 is used to enable communications among the components. The bus system 905 includes a power bus, a control bus, and a status signal bus, in addition to a data bus. For clarity of illustration, however, the various buses are labeled in fig. 9 as bus system 905.

The user interface 904 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, among others.

It is to be understood that the memory 902 in embodiments of the present invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic random access memory (ddr Data Rate SDRAM, ddr SDRAM), Enhanced Synchronous SDRAM (ESDRAM), synchlronous SDRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 902 described herein is intended to comprise, without being limited to, these and any other suitable types of memory.

In some embodiments, memory 902 stores the following elements, executable units or data structures, or a subset thereof, or an expanded set thereof: an operating system 9021 and a second application 9022.

The operating system 9021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is configured to implement various basic services and process hardware-based tasks. The second application 9022 includes various second applications, such as a Media Player (Media Player), a Browser (Browser), and the like, for implementing various application services. A program implementing the method of an embodiment of the present invention may be included in the second application 9022.

In the embodiment of the present invention, the processor 901 is configured to execute the method steps provided by the method embodiments by calling a program or an instruction stored in the memory 902, which may be a program or an instruction stored in the second application 9022.

The method disclosed in the above embodiments of the present invention may be applied to the processor 901, or implemented by the processor 901. The processor 901 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be implemented by integrated logic circuits of hardware or instructions in the form of software in the processor 901. The Processor 901 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software elements in the decoding processor. The software elements may be located in ram, flash, rom, prom, or eprom, registers, among other storage media that are well known in the art. The storage medium is located in the memory 902, and the processor 901 reads the information in the memory 902, and completes the steps of the above method in combination with the hardware thereof.

It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented in one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions of the present Application, or a combination thereof.

For a software implementation, the techniques herein may be implemented by means of units performing the functions herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.

The embodiment of the invention also provides a storage medium (computer readable storage medium). The storage medium herein stores one or more programs. Among others, the storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.

When one or more programs in the storage medium can be executed by one or more processors, the interactive window displaying method executed on the electronic device side is realized.

The processor is configured to execute the interactive window display program stored in the memory, so as to implement the steps of the method for displaying an interactive window provided in the foregoing embodiment executed on the electronic device side. With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar parts in other embodiments may be referred to for the content which is not described in detail in some embodiments.

It should be noted that, in the description of the present application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present application, the meaning of "a plurality" means at least two unless otherwise specified.

Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.

It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.

It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.

In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.

The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.

In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:登录方法及其装置、计算机存储介质及计算机设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!