Disclosure of Invention
The present application is directed to solving, at least to some extent, one of the technical problems in the related art.
To this end, an embodiment of an aspect of the present application provides a client logout control method, where the method includes: when a client quit instruction is obtained, judging whether the time interval between the current time and the time of obtaining the quit instruction at the previous time is greater than a threshold value; if the time interval between the current time and the time of obtaining the quit instruction last time is larger than a threshold value, sending a content obtaining request to a server, wherein a content request identifier carried in the obtaining request is used for representing that the request is generated by the quit instruction; refreshing the current display interface of the client according to the content returned by the server; and if the time interval between the current time and the time of obtaining the quit instruction last time is smaller than the threshold value, closing the display interface of the client.
According to the client quitting control method provided by the embodiment of the application, when a client quitting instruction sent by a user is obtained, whether the time interval between the current time and the time when the quitting instruction is obtained last time is larger than a threshold value or not is judged, if the time interval is larger than the threshold value, a content obtaining request is sent to a server, then the current display interface of the client is refreshed according to the content returned by the server, and if the time interval is smaller than the threshold value, the display interface of the client is closed. Therefore, when the user clicks the quit key for the first time within a certain time period, the content of the current display interface is automatically updated, the diversity of quitting the display interface is increased, the probability of finding the interested content by the user is increased, and conditions are provided for retaining the user amount for the application and improving the profit ratio of the application.
In addition, the client logout control method proposed by the above embodiment of the present application may further have the following additional technical features:
optionally, in an embodiment of the present application, before sending the content obtaining request to the server, the method further includes: determining the attribute of the page currently displayed by the client; the sending of the content acquisition request to the server includes: and sending a content acquisition request to the server according to the attribute of the currently displayed page.
Optionally, in an embodiment of the present application, the determining an attribute of a page currently displayed by the client includes: determining the type of the currently displayed page of the client, the field of the currently displayed page, the content contained in the currently displayed page and/or the style of the currently displayed page.
Optionally, in another embodiment of the present application, the refreshing the current display interface of the client includes: refreshing the current display interface of the client according to the content which is returned by the server and is matched with the historical use record of the user; and/or refreshing the current display interface of the client according to the content that the current click information returned by the server meets the preset condition.
Optionally, in an embodiment of the present application, the refreshing a current display interface of the client according to the content returned by the server and matched with the historical usage record of the user includes: according to the historical use record of the user, determining target content included in the content returned by the server and a target display mode of the target content; and displaying the target content on the current display interface in the target display mode.
Optionally, in an embodiment of the present application, the content returned by the server includes a video file; the refreshing the current display interface of the client according to the content returned by the server comprises the following steps: determining a target display area of the video file in the client; and playing the video file in a target display area in the client.
Optionally, in an embodiment of the present application, the content returned by the server includes N video files, where N is a positive integer greater than 1; the determining the target display area of the video file in the client comprises: and determining N target display areas corresponding to the N video files respectively according to the click rates corresponding to the N video files respectively.
Another embodiment of the present application provides a client logout control method, including: acquiring a content acquisition request sent by a client, wherein the acquisition request carries a content request identifier; judging whether the content request identification carried in the acquisition request represents that the request is generated by an exit instruction of a user; if yes, determining the content returned to the client according to a preset rule.
The client quitting control method provided by the embodiment of the application comprises the steps of firstly obtaining a content obtaining request sent by a client, then judging whether a content request identifier carried in the obtaining request is generated by a quitting instruction of a user or not, and if so, determining content returned by the client according to a preset rule. Therefore, when the user clicks the quit key for the first time within a certain time period, the content of the current display interface is automatically updated, the diversity of quitting the display interface is increased, the probability of finding the interested content by the user is increased, and conditions are provided for retaining the user amount for the application and improving the profit ratio of the application.
In addition, the client logout control method proposed by the above embodiment of the present application may further have the following additional technical features:
optionally, in an embodiment of the present application, the obtaining request further carries a page attribute currently displayed by the client; the determining the content returned to the client according to the preset rule comprises: and determining the content returned to the client according to the attribute of the currently displayed page.
Optionally, in another embodiment of the present application, the determining, according to a preset rule, content to be returned to the client includes: determining contents returned to the client according to the click information of each content at the current moment; and/or determining the use record of the user according to the user identification corresponding to the client carried in the acquisition request; and determining the content returned to the client according to the use record of the user.
Optionally, in another embodiment of the present application, the content returned to the client is determined to include a video file; after the determining the content returned to the client, the method further includes: and returning the image interchange format file corresponding to the video file to the client.
In another aspect, an embodiment of the present application provides a client, including: the first judgment module is used for judging whether the time interval between the current time and the time of obtaining the quitting instruction at the previous time is greater than a threshold value or not when the sent client quitting instruction is obtained; the first processing module is used for sending a content acquisition request to the server if a time interval between the current time and the time of acquiring the quit instruction last time is greater than a threshold value, wherein a content request identifier carried in the acquisition request is used for representing that the request is generated by the quit instruction; the refreshing module is used for refreshing the current display interface of the client according to the content returned by the server; and the second processing module is used for closing the display interface of the client if the time interval between the current moment and the moment of obtaining the exit instruction last time is less than a threshold value.
According to the client, when the client quitting instruction sent by the user is obtained, whether the time interval between the current time and the time when the quitting instruction is obtained last time is larger than a threshold value or not is judged, if the time interval is larger than the threshold value, a content obtaining request is sent to the server, then the current display interface of the client is refreshed according to the content returned by the server, and if the time interval is smaller than the threshold value, the display interface of the client is closed. Therefore, when the user clicks the quit key for the first time within a certain time period, the content of the current display interface is automatically updated, the diversity of quitting the display interface is increased, the probability of finding the interested content by the user is increased, and conditions are provided for retaining the user amount for the application and improving the profit ratio of the application.
In addition, the client proposed by the above embodiment of the present application may further have the following additional technical features:
optionally, in another embodiment of the present application, the method further includes: the first determining module is used for determining the attribute of the page currently displayed by the client; the first processing module is specifically configured to: and sending a content acquisition request to the server according to the attribute of the currently displayed page.
Optionally, in another embodiment of the present application, the first determining module is specifically configured to: determining the type of the currently displayed page of the client, the field of the currently displayed page, the content contained in the currently displayed page and/or the style of the currently displayed page.
Optionally, in another embodiment of the present application, the refresh module is specifically configured to: refreshing the current display interface of the client according to the content which is returned by the server and is matched with the historical use record of the user; and/or refreshing the current display interface of the client according to the content that the current click information returned by the server meets the preset condition.
Optionally, in another embodiment of the present application, the refresh module is specifically configured to: according to the historical use record of the user, determining target content included in the content returned by the server and a target display mode of the target content; and displaying the target content on the current display interface in the target display mode.
Optionally, in another embodiment of the present application, the content returned by the server includes a video file; the refresh module is further configured to: determining a target display area of the video file in the client; and playing the video file in a target display area in the client.
Optionally, in another embodiment of the present application, the content returned by the server includes N video files, where N is a positive integer greater than 1; the refresh module is specifically configured to: and determining N target display areas corresponding to the N video files respectively according to the click rates corresponding to the N video files respectively.
In another aspect of the present application, an embodiment of the present application provides a server, where an obtaining module is configured to obtain a content obtaining request sent by a client, where the obtaining request carries a content request identifier; a second judging module, configured to judge whether the content request identifier carried in the acquisition request represents that the request is generated by an exit instruction of a user; and the second determining module is used for determining the content returned to the client according to a preset rule if the client is in the normal state.
The server provided by the embodiment of the application firstly obtains a content obtaining request sent by a client, then judges whether a content request identifier carried in the obtaining request is generated by a quitting instruction of a user or not, and determines the content returned by the client according to a preset rule if the content request identifier is generated by the quitting instruction of the user. Therefore, when the user clicks the quit key for the first time within a certain time period, the content of the current display interface is automatically updated, the diversity of quitting the display interface is increased, the probability of finding the interested content by the user is increased, and conditions are provided for retaining the user amount for the application and improving the profit ratio of the application.
In addition, the server proposed in the above embodiment of the present application may further have the following additional technical features:
optionally, in an embodiment of the present application, the obtaining request further carries a page attribute currently displayed by the client; the second determining module is specifically configured to: and determining the content returned to the client according to the attribute of the currently displayed page.
Optionally, in another embodiment of the present application, the second determining module is specifically configured to: determining contents returned to the client according to the click information of each content at the current moment; and/or determining the use record of the user according to the user identification corresponding to the client carried in the acquisition request; and determining the content returned to the client according to the use record of the user.
Optionally, in another embodiment of the present application, the content returned to the client is determined to include a video file; the server, further comprising: and the return module is used for returning the image interchange format file corresponding to the video file to the client.
In yet another embodiment of the present application, a computer device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the computer device implements the client logout control method according to the first embodiment or the client logout control method according to the second embodiment.
According to the computer equipment provided by the embodiment of the application, when the client quitting instruction sent by the user is obtained, whether the time interval between the current time and the time when the quitting instruction is obtained last time is larger than a threshold value or not is judged, if the time interval is larger than the threshold value, a content obtaining request is sent to the server, then the current display interface of the client is refreshed according to the content returned by the server, and if the time interval is smaller than the threshold value, the display interface of the client is closed. Therefore, when the user clicks the quit key for the first time within a certain time period, the content of the current display interface is automatically updated, the diversity of quitting the display interface is increased, the probability of finding the interested content by the user is increased, and conditions are provided for retaining the user amount for the application and improving the profit ratio of the application.
A further aspect of the present application provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the method for controlling client logout described in the first aspect of the present application, or the method for controlling client logout described in the second aspect of the present application.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
The embodiments in the application mainly aim at the problems that in the prior art, when a user quits a currently used application, the user needs to continuously click the quit key twice to completely quit, and the quit of the application process is single in implementation mode and poor in user experience, and a client quit control method is provided.
According to the client quitting control method, when a client quitting instruction sent by a user is obtained, the client judges whether a time interval between the current time and the time when the quitting instruction is obtained last time is larger than a threshold value, if the time interval is larger than the threshold value, a content obtaining request is sent to a server, wherein a content request identification carried in the obtaining request is used for representing that the request is generated by the quitting instruction of the user, then the current display interface of the client is refreshed according to the content returned by the server, and if the time interval is smaller than the threshold value, the display interface of the client is closed. Therefore, when the user clicks the quit key for the first time within a certain time period, the content of the current display interface is automatically updated, the diversity of quitting the display interface is increased, the probability of finding the interested content by the user is increased, and conditions are provided for retaining the user amount for the application and improving the profit ratio of the application.
A client logout control method, a client, a server, and a computer device according to embodiments of the present application are described below with reference to the drawings.
First, referring to fig. 1, a specific description is given of a client logout control method provided in an embodiment of the present application. The client exit control method of the present embodiment is applied to a client, and the client is taken as an example to be described below.
Fig. 1 is a flowchart illustrating a client logout control method according to an embodiment of the present disclosure.
As shown in fig. 1, the client logout control method of the present application may include the following steps:
step 101, when the client exit instruction is acquired, judging whether a time interval between the current time and the time when the exit instruction is acquired last time is larger than a threshold value, if so, executing step 102, otherwise, executing step 104.
Specifically, the method for controlling exit of the client provided by this embodiment may be executed by the client provided by this application to control the running process of the client.
The client of the embodiment can be installed in any terminal with an Android operating system. For example, the present invention is not limited to a smart phone, a Personal Digital Assistant (PDA), a tablet computer (PDA), etc.
In specific implementation, a listener of a return key can be set in a terminal system, and a client exit instruction sent by a user is monitored through the listener. When the listener monitors a client quit instruction sent by a user, the listener can send the monitored sending time of the quit instruction and the currently running client information to the processing unit, so that the processing unit makes a difference between the sending time of the quit instruction and the previous time of obtaining the quit instruction according to the quit instruction, and the time interval between the current time and the previous time of obtaining the quit instruction is obtained. And then comparing the time interval with a threshold value to determine whether the time interval is greater than the threshold value, if the time interval is greater than the threshold value, determining that the quitting instruction at the current moment is the quitting instruction of the user in unit time and sending the quitting instruction of the client for the first time, and if not, sending the quitting instruction of the client for the second time in unit time.
It should be noted that, in the present embodiment, the threshold may be adaptively set according to the actual usage, such as 2 seconds(s), and the like, and is not particularly limited herein.
Step 102, sending a content obtaining request to the server, wherein a content request identifier carried in the obtaining request is used for representing that the request is generated by the quitting instruction.
The content request identifier may be preset or may be set by a user in a self-defined manner, for example, the content request identifier generated by the exit instruction of the user is set to 202 in the self-defined manner, and the embodiment is not particularly limited to this.
Specifically, when it is determined that the obtained client exit instruction is sent for the first time in unit time by the user, the client sends a content obtaining request carrying a content request identifier to the server, so that the server obtains the corresponding content according to the content request identifier carried in the content obtaining request.
When the server receives a content acquisition request sent by the client, the server can firstly analyze the content acquisition request to acquire a content request identifier carried in the content acquisition request. And then matching the content request identification with a mapping relation established in advance, wherein if the matching is successful, the content request identification is generated by an exit instruction, and if the matching is failed, the content request identification is not generated by the exit instruction. The pre-established mapping relationship specifically refers to a corresponding relationship between the content request identifier and the exit instruction.
When it is determined that the content request identifier carried in the content acquisition request is generated by the exit instruction, the server acquires the updated content corresponding to the content acquisition request from the mass data according to the content acquisition request, and after the content corresponding to the content acquisition request is acquired, the server can send the acquired content to the client, so that the client displays the acquired content through a display interface.
In order to save the bandwidth occupied by data transmission and the time spent, when the server sends the acquired content to the client, the server in this embodiment may compress the acquired content first and then send the compressed content to the client.
For example, if the content request identifier carried in the content obtaining request sent by the client is 202, the server analyzes the content obtaining request after receiving the content obtaining request, so as to obtain the carried content request identifier 202. And then matching the 202 with a mapping relation established in advance, wherein if the matching is successful, the obtained content request identifier is generated by an exit instruction, and the server obtains the content corresponding to the content obtaining request according to the 202.
And 103, refreshing the current display interface of the client according to the content returned by the server.
Specifically, after receiving the content returned by the server, the client may decompress the content and then display the content on the display interface in sequence according to the acquisition order, so as to help the user to acquire the content of interest and continue browsing when the user exits from the client.
Further, when the client displays the acquired content in the current display interface, the client can also display the text reminding information of "pressing the exit again" in the display interface at the same time, so that the user can click the exit key according to the requirement or continue browsing the updated content in the display interface.
And step 104, closing the display interface of the client.
Specifically, when the obtained client quitting instruction is determined to be sent by the user for the second time in the unit time, it indicates that the user should quit the currently used client, and at this time, the terminal system may perform an ending operation on the currently used client, so that the user quits the client.
According to the client quitting control method provided by the embodiment of the application, when a client quitting instruction sent by a user is obtained, whether the time interval between the current time and the time when the quitting instruction is obtained last time is larger than a threshold value or not is judged, if the time interval is larger than the threshold value, a content obtaining request is sent to a server, then the current display interface of the client is refreshed according to the content returned by the server, and if the time interval is smaller than the threshold value, the display interface of the client is closed. Therefore, when the user clicks the quit key for the first time within a certain time period, the content of the current display interface is automatically updated, the diversity of quitting the display interface is increased, the probability of finding the interested content by the user is increased, and conditions are provided for retaining the user amount for the application and improving the profit ratio of the application.
According to the analysis, the time interval between the current time and the time when the quit instruction is obtained last time is determined to be larger than the threshold value, the content obtaining request is sent to the server, and the current display interface of the client is refreshed according to the content returned by the server. In a specific display process, in order to acquire content that meets the user's preference or browsing habit, the embodiment may further send a corresponding content acquisition request to the server according to the attribute of the page of the current display interface of the client, so as to improve the pertinence of content acquisition, and thus, the user can acquire favorite content more easily. The above-mentioned situation of the client logout control method according to the present application will be described in detail with reference to fig. 2.
Fig. 2 is a flowchart illustrating a client logout control method according to another embodiment of the present disclosure.
As shown in fig. 2, the client logout control method according to the embodiment of the present application may include the following steps:
in step 201, when the client exit instruction is obtained, it is determined whether a time interval between the current time and the time when the client exit instruction was obtained last time is greater than a threshold, if so, step 202 is executed, otherwise, step 205 is executed.
Step 202, determining the attribute of the page currently displayed by the client.
Step 203, according to the attribute of the currently displayed page, a content acquisition request is sent to the server.
The content request identifier carried in the acquisition request is used for representing that the request is generated by an exit instruction of a user.
In this embodiment, determining the attribute of the page currently displayed by the client may include: the type of the currently displayed page of the client, the domain to which the currently displayed page belongs, the content contained in the currently displayed page, and/or the style of the currently displayed page, etc. are determined.
The style of the currently displayed page can be the size of the content display in the page; alternatively, the display mode may be used.
The area to which the currently displayed page belongs may be, but is not limited to: science, entertainment, social, educational, video, etc., and is not specifically limited herein.
It can be understood that, when determining the attribute of the page currently displayed by the client, the method may be determining the type of the page currently displayed by the client, the field to which the currently displayed page belongs, the content contained in the currently displayed page, and the style of the currently displayed page; or, the type of the currently displayed page of the client, the field to which the currently displayed page belongs, and the content contained in the currently displayed page may also be determined; alternatively, the type of the currently displayed page of the client, the domain to which the currently displayed page belongs, the style of the currently displayed page, and the like may be determined, which is not specifically limited herein.
For example, if the client is XX live broadcast and the currently displayed page type is royal glory, when sending a content acquisition request to the server, the content acquisition request with the attribute of royal glory may be sent to the server, so that the server may acquire corresponding content for royal glory according to the attribute of the page when receiving the content acquisition request.
It should be noted that, in this embodiment, for the determination process of whether the content request identifier carried in the content obtaining request represents that the request is generated by the exit instruction of the user, reference is specifically made to the above example, and redundant description is not repeated here.
And step 204, refreshing the current display interface of the client according to the content returned by the server.
Specifically, when the client refreshes the current display interface of the client according to the content returned by the server in this embodiment, the following scenarios may be included, for example:
scenario one:
and refreshing the current display interface of the client according to the content matched with the historical use record of the user and returned by the server.
For example, if the user history usage record is "XX anchor", the client may match the content with "XX anchor" when receiving the content returned by the server, and if the content related to "XX anchor" is matched, the content related to "XX anchor" may be displayed in the current display interface of the client, so that the user may view the habitual anchor live video content conveniently.
Scenario two:
and refreshing the current display interface of the client according to the content that the current click information returned by the server meets the preset conditions.
The preset condition may refer to the content that the user clicks the most when using the client at this time, which is not specifically limited in this embodiment.
For example, if the most clicked content information is "XX video" in the process that the user uses the client this time, when the server returns corresponding content, the client may acquire "XX video" from the content sent by the server, and preferentially display the "XX video" content when refreshing the current display interface.
Scenario three:
and refreshing the current display interface of the client according to the contents acquired by other users with similar history records and the current user account returned by the server.
That is, the client may transmit the current user account information to the server, so that the server acquires other users having similar history records to the current user account, then queries the contents acquired by the other users, and transmits the contents acquired by the other users to the client, thereby enabling the client to display other types of contents to the user to increase the diversity of content display.
It should be noted that the above-mentioned embodiments are merely exemplary, and are not intended to specifically limit the present application.
Further, in order to display content and a display mode meeting the user preference to the user in a more targeted manner, when the client refreshes the current display interface of the client according to the content returned by the server and matched with the historical use record of the user, the client may first determine the target content and the target display mode of the target content included in the content returned by the server according to the historical use record of the user, and then display the target content in the current display interface in the determined target display mode.
That is, step 204 of this embodiment further includes: according to the historical use record of the user, determining target content included in the content returned by the server and a target display mode of the target content;
and displaying the target content on the current display interface in the target display mode.
The target content and the target display mode of the target content may be determined according to the historical usage record of the user, and the target content and the target display mode are not particularly limited herein. For example, a user likes to view the contents of the photo category, and when viewing the contents of the photo category, it is usually displayed in the form of frame screen play.
For example, after analyzing the historical usage records of the user, it is determined that the user prefers to watch the "entertainment content", and when the user watches the "entertainment content", the user usually displays the "entertainment content" in an automatic playing manner, the client quits the control device, and then the client can obtain the corresponding entertainment content from the content returned by the server based on the entertainment content, and display the obtained entertainment content on the current display interface in an automatic playing manner.
That is to say, the method and the device have the advantages that through analyzing the historical use records of the user, the favorite content and the watching mode of the user are obtained and displayed to the user in a targeted mode, so that the user can find the favorite content more easily, and the satisfaction degree of the user is improved.
Step 205, closing the display interface of the client.
According to the client quitting control method provided by the embodiment of the application, when the client quitting instruction sent by the user is obtained, whether the time interval between the current time and the time when the quitting instruction is obtained last time is larger than a threshold value or not is judged, if the time interval is larger than the threshold value, the page attribute displayed at the current time of the client is determined, a content obtaining request is sent to the server according to the page attribute displayed at the current time, and then the current display interface of the client is refreshed according to the content returned by the server. Therefore, when the user clicks the quit key for the first time within a certain period of time, the content of the current display interface is automatically updated, the diversity of quit display interfaces is increased, the probability that the user finds the interested content is increased, conditions are provided for retaining the user amount for the application and improving the profit ratio of the application, the content which is more in line with the use habit of the user is displayed for the user, and the satisfaction degree of the user is improved.
Through the analysis, when the client sends the content acquisition request to the server, the client can also send the corresponding content acquisition request to the server according to the attribute of the page of the current display interface, so that the acquired content is more targeted.
In a specific implementation, since a user can view various types and styles of content, such as video-type content, text-type content, and the like, when the user actually applies the client, after the client sends a content obtaining request to the server according to the attribute of the currently displayed page, the server may include a video file in the content returned to the client according to the attribute of the currently displayed page of the client. With reference to fig. 3, a detailed description will be given below of a case where the content returned by the server in the client logout control method of the present application includes a video file.
Fig. 3 is a flowchart illustrating a client logout control method according to another embodiment of the present application.
As shown in fig. 3, the client logout control method according to the embodiment of the present application may include the following steps:
step 301, when the client exit instruction is obtained, determining whether a time interval between the current time and the time when the client exit instruction was obtained last time is greater than a threshold, if so, executing step 302, otherwise, executing step 306.
Step 302, determining the attribute of the page currently displayed by the client.
Step 303, sending a content acquisition request to the server according to the attribute of the currently displayed page.
And step 304, determining a target display area of the video file in the client.
Step 305, playing a video file in a target display area in the client.
The target display area may include a position and a size displayed in the client display interface. The target display area may be set by a user or may be a default of the client, and this embodiment is not specifically limited herein.
That is to say, the target display area of the video file display interface in the client is determined, so that the client can display the video file in the target display area when displaying the video file, and therefore the use habit of the user is better met, and the use viscosity of the user to the client is enhanced.
For example, if the display area of the video file in the client is set by the user, the set display area is the top end of the display interface, and the size of the set display area is default, when the video file returned by the server is acquired, the video file can be displayed at the top end of the current display interface in the default size, so that the user can view corresponding file information or other contents while watching the video file.
And step 306, closing the display interface of the client.
Further, the server may include not only one video file but also a plurality of video files (i.e., N video files, where N is a positive integer greater than 1) in the content returned to the client. Therefore, when the content returned by the server includes a plurality of video files, in this embodiment, in order to facilitate the user to quickly obtain the content of interest from the plurality of video files, the client may preferentially display the video file with the high click rate at a significant position according to the click rate corresponding to each of the N video files.
That is, step 304 may further include: and determining N target display areas corresponding to the N video files respectively according to the click rates corresponding to the N video files respectively.
That is, when the client determines that the content returned by the server includes a plurality of video files, the client displays the popular video or the anchor at a significant position according to the click rate by determining the click rate corresponding to each of the plurality of video files, and displays the popular video or the anchor in a large-space display manner, so that the user can know the popular video and the anchor in time.
The client logout control method proposed by the embodiment of the present application is described in detail below with reference to fig. 4 by taking a server as an example.
Fig. 4 is a flowchart illustrating a client logout control method according to another embodiment of the present application.
As shown in fig. 4, the client logout control method may include the steps of:
step 401, a content obtaining request sent by a client is obtained, and the obtaining request carries a content request identifier.
Specifically, the client exit control method provided in this embodiment may be executed by the server provided in this application to control the operation condition of the client.
In specific implementation, when the server receives a content acquisition request sent by the client, the server can analyze the content acquisition request to acquire a content request identifier carried in the content acquisition request.
Step 402, determining whether the content request identifier carried in the acquisition request is generated by an exit instruction of the user, if so, executing step 403, otherwise, executing step 404.
In order to enable the user to obtain the content information of interest even when the user exits from the client, the content obtaining request may be carried with a content request identifier, so that the server obtains the content favorite by the user according to the content request identifier by adopting different obtaining rules.
In specific implementation, in order to accurately determine a content request identifier carried in a content acquisition request sent by a client, the server in this embodiment may match the content request identifier with a mapping relationship established in advance, determine that the content request identifier is generated by a logout instruction of a user if the matching is successful, and otherwise, indicate that the content request identifier is not generated by the logout instruction of the user.
When the content request identifier carried in the acquisition request is determined to be generated by an exit instruction of a user, the server acquires corresponding content according to a preset acquisition rule; and when the content request identifier carried in the acquisition request is determined not to be generated by the exit instruction of the user, the server acquires the corresponding content according to a default acquisition rule.
In this embodiment, the preset rule may be generated by analyzing big data, or may be generated according to a historical usage habit of a user, and the like, which is not specifically limited in this embodiment.
Step 403, determining the content returned to the client according to a preset rule.
For example, if the preset rule is generated according to the historical usage habit of the user, the server may obtain the corresponding content according to the historical usage habit of the user.
Further, in this embodiment, the acquisition request may also carry an attribute of a page currently displayed by the client, so that when determining the content returned by the client according to a preset rule, the embodiment also determines the content returned to the client according to the attribute of the currently displayed page.
That is to say, when the attribute of the page currently displayed by the client is carried in the acquisition request, the server can acquire the corresponding content according to the attribute of the page, so that the client can better display the content meeting the user requirement to the user, and the satisfaction degree of the user is further improved.
Specific implementations may include, by way of example:
the first method is as follows:
determining the content returned to the client according to the use record of the user;
the second method comprises the following steps:
determining contents returned to the client according to the click information of each content at the current moment;
the third method comprises the following steps:
and determining the use record of the user according to the user identification corresponding to the client carried in the acquisition request.
The user identifier may be user account information, or other information.
It can be understood that the user identification information corresponding to the client is carried in the acquisition request, so that when the server receives the acquisition request sent by the client, the server acquires the user identification by analyzing the acquisition request, and then screens out the content matched with the user usage record from the big data according to the user identification, so that the content finally returned to the client is more in line with the browsing habit of the user.
It should be noted that the foregoing implementation is merely exemplary and is not intended to specifically limit the present application.
Further, in the actual application process, the user can view various types or styles of contents, such as characters, pictures, video files and the like, through the client, so that the server can also obtain various types of contents according to the content obtaining request sent by the client, so as to meet different requirements of the user.
For example, the server may determine that the content returned to the client includes a video file according to a content acquisition request sent by the client.
When the server determines that the content returned to the client includes the video file according to the content acquisition request sent by the client, the server returns an image interchange format file (i.e., GIF file) corresponding to the video file to the client after determining the content including the video file.
In the content including the video file returned by the server to the client, the video file may be one or multiple, which is not specifically limited in this embodiment.
It can be understood that, in order to increase the speed of returning content to the client and enable the user to obtain favorite content in the shortest time, the present application may also return a GIF file to the client first, and when the client sends the GIF file obtaining request to the server (i.e., the user clicks and plays the GIF file in the client display interface), return a detailed video stream file corresponding to the GIF file to the client, so that the user can view the video file normally.
Step 404, determining the content returned to the client according to a default obtaining rule.
It should be noted that, in this embodiment, the default obtaining rule and the preset rule are two different rules, where the default obtaining rule is a content obtaining manner that the server adopts according to a content obtaining request sent by the client when the client obtains new content in a normal use process, and the preset rule is a content obtaining manner that the server adopts according to a content obtaining request sent by the client when the user sends a client quit instruction.
In this embodiment, after the server determines the content returned to the client, the determined content may be sent to the client, so that the client refreshes the current display interface of the client according to the content returned by the server.
In order to save the bandwidth occupied by data transmission and the time spent, when the server sends the acquired content to the client, the server in this embodiment may compress the acquired content first and then send the compressed content to the client.
The client quitting control method provided by the embodiment of the application comprises the steps of firstly obtaining a content obtaining request sent by a client, then judging whether a content request identifier carried in the obtaining request is generated by a quitting instruction of a user or not, and if so, determining content returned by the client according to a preset rule. Therefore, when the user clicks the quit key for the first time within a certain time period, the content of the current display interface is automatically updated, the diversity of quitting the display interface is increased, the probability of finding the interested content by the user is increased, and conditions are provided for retaining the user amount for the application and improving the profit ratio of the application.
The client logout control method according to the foregoing embodiment is specifically described below by using an embodiment, and specifically refer to fig. 5. Fig. 5 is a schematic diagram illustrating signaling interaction between a client and a server according to an embodiment of the present application.
In this embodiment, assuming that the client is a and the server is B, the interaction process between the client a and the server B may include the following steps:
it should be noted that, in this embodiment, the client may include a plurality of clients, and this embodiment is not particularly limited to this.
Step 501: when the client A acquires a client quit instruction sent by a user, the time interval between the current time and the time of acquiring the quit instruction last time is determined to be larger than a threshold value.
Step 502, the client a sends a content obtaining request a to the server B, wherein a content request identifier B carried in the obtaining request a is used for representing that the request is generated by a quitting instruction of the user.
Step 503, the server B obtains the content obtaining request a sent by the client a, and determines the content request identifier B carried in the obtaining request a, where the representation request is generated by a quitting instruction of the user.
Step 504, if the server B determines the content returned to the client a according to the preset rule.
In step 505, the server B sends the determined content to the client a.
Step 506, the client a refreshes the current display interface of the client a according to the content returned by the server B.
By the client quitting control method provided by the embodiment, the content of the current display interface is automatically updated when the user clicks the quitting key for the first time within a certain time period, the diversity of quitting the display interface is increased, the probability of finding the interested content by the user is increased, and therefore conditions are provided for retaining the user amount for the application and improving the benefit ratio of the application.
The client proposed by the embodiment of the present application is described below with reference to the drawings.
Fig. 6 is a schematic structural diagram of a client according to an embodiment of the present application.
As shown in fig. 6, the client includes: the device comprises a first judgment module 11, a first processing module 12, a refreshing module 13 and a second processing module 14.
The first determining module 11 is configured to determine, when the client logout instruction is obtained, whether a time interval between a current time and a time at which the logout instruction was obtained last time is greater than a threshold.
The first processing module 12 is configured to send a content obtaining request to the server if a time interval between a current time and a time at which the quit instruction was obtained last time is greater than a threshold, where a content request identifier carried in the obtaining request is used to represent that the request is generated by the quit instruction.
And the refreshing module 13 is configured to refresh the current display interface of the client according to the content returned by the server.
The second processing module 14 is configured to close the display interface of the client if a time interval between the current time and the time when the exit instruction was obtained last time is smaller than a threshold.
It should be noted that, for the implementation process and the technical principle of the client in this embodiment, reference is made to the foregoing explanation of the client logout control method in the embodiment of the first aspect, and details are not described here again.
According to the client side provided by the embodiment of the application, when the client side quitting instruction sent by the user is obtained, whether the time interval between the current time and the time when the quitting instruction is obtained last time is larger than the threshold value or not is judged, if the time interval is larger than the threshold value, a content obtaining request is sent to the server, and then the current display interface of the client side is refreshed according to the content returned by the server. Therefore, when the user clicks the quit key for the first time within a certain time period, the content of the current display interface is automatically updated, the diversity of quitting the display interface is increased, the probability of finding the interested content by the user is increased, and conditions are provided for retaining the user amount for the application and improving the profit ratio of the application.
Fig. 7 is a schematic structural diagram of a client according to another embodiment of the present application.
Referring to fig. 7, the client may include: the device comprises a first judgment module 11, a first processing module 12, a refreshing module 13, a second processing module 14 and a first determination module 15.
The first judging module 11 is configured to, when the client logout instruction is obtained, judge whether a time interval between a current time and a previous time when the client logout instruction is obtained is greater than a threshold value;
the first processing module 12 is configured to send a content acquisition request to the server if a time interval between a current time and a time at which the quit instruction was acquired last time is greater than a threshold, where a content request identifier carried in the acquisition request is used to represent that the request is generated by the quit instruction;
the refreshing module 13 is configured to refresh the current display interface of the client according to the content returned by the server;
the second processing module 14 is configured to close the display interface of the client if a time interval between the current time and the time when the exit instruction was obtained last time is smaller than a threshold.
As an optional implementation form, the client further includes: a first determination module 15.
The first determining module 15 is configured to determine an attribute of a page currently displayed by the client.
The first processing module 12 is specifically configured to: and sending a content acquisition request to the server according to the attribute of the currently displayed page.
As an optional implementation form, the first determining module 15 is specifically configured to: determining the type of the currently displayed page of the client, the field of the currently displayed page, the content contained in the currently displayed page and/or the style of the currently displayed page.
As an optional implementation form, the refresh module 13 is specifically configured to: refreshing the current display interface of the client according to the content which is returned by the server and is matched with the historical use record of the user; and/or refreshing the current display interface of the client according to the content that the current click information returned by the server meets the preset condition.
As an optional implementation form, the refresh module 13 is specifically configured to: according to the historical use record of the user, determining target content included in the content returned by the server and a target display mode of the target content; and displaying the target content on the current display interface in the target display mode.
It should be noted that, for the implementation process and the technical principle of the client in this embodiment, reference is made to the foregoing explanation of the client logout control method in the embodiment of the first aspect, and details are not described here again.
According to the client, when the client quit instruction sent by the user is obtained, whether the time interval between the current time and the time when the quit instruction is obtained last time is larger than a threshold value or not is judged, if the time interval is larger than the threshold value, the page attribute currently displayed by the client is determined, a content obtaining request is sent to the server according to the page attribute currently displayed, and then the current display interface of the client is refreshed according to the content returned by the server. Therefore, when the user clicks the quit key for the first time within a certain period of time, the content of the current display interface is automatically updated, the diversity of quit display interfaces is increased, the probability that the user finds the interested content is increased, conditions are provided for retaining the user amount for the application and improving the profit ratio of the application, the content which is more in line with the use habit of the user is displayed for the user, and the satisfaction degree of the user is improved.
As an optional implementation form, the client further includes: when the content returned by the server comprises a video file; the refresh module 13 is further configured to: determining a target display area of the video file in the client; and playing the video file in a target display area in the client.
As an optional implementation form, the content returned by the server includes N video files, where N is a positive integer greater than 1; the refresh module 13 is specifically configured to: and determining N target display areas corresponding to the N video files respectively according to the click rates corresponding to the N video files respectively.
It should be noted that, for the implementation process and the technical principle of the client in this embodiment, reference is made to the foregoing explanation of the client logout control method in the embodiment of the first aspect, and details are not described here again.
That is to say, when the client determines that the content returned by the server includes the video file, the client determines the target display area of the video file on the display interface of the client, so that the client can display the video file in the target display area when displaying the video file, thereby better conforming to the use habit of the user, and enhancing the use viscosity of the user on the client.
In order to implement the above embodiments, the present application also provides a server.
Fig. 8 is a schematic structural diagram of a server according to an embodiment of the present application.
Referring to fig. 8, the server of the present application includes: an obtaining module 21, a second judging module 22 and a second determining module 23.
The obtaining module 21 is configured to obtain a content obtaining request sent by a client, where the obtaining request carries a content request identifier;
the second judging module 22 is configured to judge whether the content request identifier carried in the acquisition request represents that the request is generated by an exit instruction of a user;
the second determining module 23 is configured to determine, if the content returned to the client is determined, according to a preset rule.
As an optional implementation form, in the embodiment of the present application, the obtaining request further carries a page attribute currently displayed by the client;
the second determining module 23 is specifically configured to: and determining the content returned to the client according to the attribute of the currently displayed page.
As an optional implementation form, the second determining module 23 is specifically configured to: determining contents returned to the client according to the click information of each content at the current moment; and/or determining the use record of the user according to the user identification corresponding to the client carried in the acquisition request; and determining the content returned to the client according to the use record of the user.
As an optional implementation form, the content returned to the client is determined to include a video file; the server, further comprising: and the return module is used for returning the image interchange format file corresponding to the video file to the client.
It should be noted that, for the implementation process and the technical principle of the server in this embodiment, reference is made to the foregoing explanation of the client logout control method described in the embodiment of the second aspect, and details are not described here again.
The server provided by the embodiment of the application firstly obtains a content obtaining request sent by a client, then judges whether a content request identifier carried in the obtaining request is generated by a quitting instruction of a user or not, and determines the content returned by the client according to a preset rule if the content request identifier is generated by the quitting instruction of the user. Therefore, when the user clicks the quit key for the first time within a certain time period, the content of the current display interface is automatically updated, the diversity of quitting the display interface is increased, the probability of finding the interested content by the user is increased, and conditions are provided for retaining the user amount for the application and improving the profit ratio of the application.
In order to implement the above embodiments, the present application also provides a computer device.
Fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present application.
As shown in fig. 9, the computer device 30 includes: a memory 31, a processor 32 and a computer program stored in the memory 31 and executable on the processor, wherein the processor implements the client logout control method according to the first aspect embodiment or the client logout control method according to the second aspect embodiment when executing the program.
According to the computer equipment provided by the embodiment of the application, when the client quitting instruction sent by the user is obtained, whether the time interval between the current time and the time when the quitting instruction is obtained last time is larger than a threshold value or not is judged, if the time interval is larger than the threshold value, a content obtaining request is sent to the server, then the current display interface of the client is refreshed according to the content returned by the server, and if the time interval is smaller than the threshold value, the display interface of the client is closed. Therefore, when the user clicks the quit key for the first time within a certain time period, the content of the current display interface is automatically updated, the diversity of quitting the display interface is increased, the probability of finding the interested content by the user is increased, and conditions are provided for retaining the user amount for the application and improving the profit ratio of the application.
To achieve the above object, the present application also proposes a computer-readable storage medium.
Wherein the computer readable storage medium has stored thereon a computer program, which when executed by a processor, implements the client logout control method according to the embodiment of the first aspect, or the client logout control method according to the embodiment of the second aspect.
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.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature.
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.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. 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.