CN111368223B - Page display method and device - Google Patents

Page display method and device Download PDF

Info

Publication number
CN111368223B
CN111368223B CN202010123011.4A CN202010123011A CN111368223B CN 111368223 B CN111368223 B CN 111368223B CN 202010123011 A CN202010123011 A CN 202010123011A CN 111368223 B CN111368223 B CN 111368223B
Authority
CN
China
Prior art keywords
cache
screen opening
opening information
screen
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010123011.4A
Other languages
Chinese (zh)
Other versions
CN111368223A (en
Inventor
吴培希
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Lianshang Network Technology Co Ltd
Original Assignee
Shanghai Lianshang Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Lianshang Network Technology Co Ltd filed Critical Shanghai Lianshang Network Technology Co Ltd
Priority to CN202010123011.4A priority Critical patent/CN111368223B/en
Publication of CN111368223A publication Critical patent/CN111368223A/en
Application granted granted Critical
Publication of CN111368223B publication Critical patent/CN111368223B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results

Abstract

The embodiment of the application discloses a page display method and equipment. One embodiment of the method comprises the following steps: in response to detecting page display operation of an application, determining whether a current display scene meets a screen opening condition; if the screen opening condition is met, determining whether the cache screen opening information meeting the display condition exists in the cache screen opening information set; if the cache screen opening information meeting the display conditions does not exist, sending a real-time screen opening information acquisition request to a server; if the real-time screen opening information returned by the server is received within the first preset time length, displaying the real-time screen opening information; and after the real-time open screen information is displayed, displaying the page corresponding to the page display operation. According to the embodiment, the display success rate of the open screen information is improved.

Description

Page display method and device
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a page display method and page display equipment.
Background
Information push, namely 'network broadcast', is a new technology for reducing information overload by actively transmitting information required by users on the Internet through a certain technical standard or protocol. Push technology reduces the time for searching on a network by automatically delivering information to the user. The method searches and filters the information according to the interests of the user and actively pushes the information to the user, so that the user is helped to efficiently discover valuable information.
Currently, implanting open screen information in an application is a common way of information push. Generally, after an application is started, the open screen information is displayed first, and after the open screen information is displayed, the page of the application is displayed. In the prior art, the screen opening information is required to be cached in advance, and once the cached screen opening information is out of date, the display cannot be performed.
Disclosure of Invention
The embodiment of the application provides a page display method and device.
In a first aspect, an embodiment of the present application provides a page display method, including: in response to detecting page display operation of an application, determining whether a current display scene meets a screen opening condition; if the screen opening condition is met, determining whether the cache screen opening information meeting the display condition exists in the cache screen opening information set; if the cache screen opening information meeting the display conditions does not exist, sending a real-time screen opening information acquisition request to a server; if the real-time screen opening information returned by the server is received within the first preset time length, displaying the real-time screen opening information; and after the real-time open screen information is displayed, displaying the page corresponding to the page display operation.
In some embodiments, the method further comprises: and deleting the real-time open screen information after the real-time open screen information is displayed.
In some embodiments, the method further comprises: if the real-time screen opening information returned by the server is not received within the first preset time length, displaying default screen opening information; and after the default open screen information is displayed, displaying the page corresponding to the page display operation.
In some embodiments, the method further comprises: if the real-time screen opening information returned by the server is received after the first preset time length, the real-time screen opening information is added into the cache screen opening information set.
In some embodiments, the method further comprises: and after the real-time open screen information acquisition request is sent, limiting the sending of the client request until the real-time open screen information is received.
In some embodiments, the method further comprises: if the cache screen opening information meeting the display conditions exists, selecting the cache screen opening information from the cache screen opening information meeting the display conditions, and displaying the selected cache screen opening information; and after the selected cache open screen information is displayed, displaying a page corresponding to the page display operation.
In some embodiments, selecting the cache screen opening information from the cache screen opening information meeting the display condition includes: sending an availability verification request to a server, wherein the availability verification request comprises an identifier of cache screen opening information meeting display conditions; and if the availability verification result returned by the server is received within the second preset time period, selecting the cache screen opening information from the cache screen opening information meeting the display condition based on the availability verification result, wherein the availability verification result comprises the identification of the available cache screen opening information.
In some embodiments, the method further comprises: and if the availability verification result comprises the identification of the deletable cache screen opening information, deleting the selected cache push message information and the deletable cache screen opening information from the cache screen opening information set after the selected cache screen opening information is displayed.
In some embodiments, the selecting the cache screen opening information from the cache screen opening information meeting the display condition further includes: and if the availability verification result returned by the server is not received within the second preset time, selecting the cache screen opening information from the cache screen opening information meeting the display conditions based on a preset selection strategy.
In some embodiments, the presentation conditions include one of: the information is not expired, the information is complete and is not expired.
In some embodiments, the method further comprises: and if the open screen condition is not met, displaying the page corresponding to the page display operation, or displaying default open screen information, and displaying the page corresponding to the page display operation after the default open screen information is displayed.
In some embodiments, the open screen condition includes at least one of: the page display operation belongs to preset display operation, the client is in a network connection state, and the client starts the application for the first time.
In some embodiments, the preset presentation operations include an application icon click operation and a background switch foreground operation.
In some embodiments, if the page presentation operation is a background switch foreground operation, the open screen condition further includes: the display interval satisfies the display frequency control threshold.
In some embodiments, the method further comprises: if the screen opening condition is not met, determining whether the current updated scene meets the updating condition or not; if the updating condition is met, sending an open screen information updating request to a server; receiving an updated open screen information set returned by the server; and updating the cache open screen information set by using the updated open screen information set.
In some embodiments, the method further comprises: determining whether incomplete cache screen opening information exists in the updated cache screen opening information set; if incomplete cache screen opening information exists, deleting the incomplete cache screen opening information from the updated cache screen opening information set.
In some embodiments, the update condition includes at least one of: the client is in a wireless network connection state, and the update interval meets the update frequency control threshold.
In a second aspect, an embodiment of the present application provides a page display device, including: a first determining unit configured to determine whether a current display scene satisfies a screen opening condition in response to detection of a page display operation of an application; the second determining unit is configured to determine whether the cache screen opening information meeting the display condition exists in the cache screen opening information set if the screen opening condition is met; the first sending unit is configured to send a real-time screen opening information acquisition request to the server if the cache screen opening information meeting the display conditions does not exist; the first display unit is configured to display the real-time screen opening information if the real-time screen opening information returned by the server is received within a first preset time length; the second display unit is configured to display the page corresponding to the page display operation after the real-time open screen information is displayed.
In some embodiments, the apparatus further comprises: the first deleting unit is configured to delete the real-time open screen information after the real-time open screen information is displayed.
In some embodiments, the apparatus further comprises: the third display unit is configured to display default screen opening information if the real-time screen opening information returned by the server is not received within the first preset time length; the fourth display unit is configured to display the page corresponding to the page display operation after the display of the default open screen information is completed.
In some embodiments, the apparatus further comprises: the adding unit is configured to add the real-time open screen information to the cache open screen information set if the real-time open screen information returned by the server is received after the first preset time length.
In some embodiments, the apparatus further comprises: and the limiting unit is configured to limit the sending of the client request until the real-time open screen information is received after the real-time open screen information acquisition request is sent.
In some embodiments, the apparatus further comprises: the selecting unit is configured to select the cache screen opening information from the cache screen opening information meeting the display conditions and display the selected cache screen opening information if the cache screen opening information meeting the display conditions exists; and the fifth display unit is configured to display the page corresponding to the page display operation after the selected cache open screen information is displayed.
In some embodiments, the selecting unit includes: a transmitting subunit configured to transmit an availability verification request to the server, wherein the availability verification request includes an identification of cache open screen information that satisfies the presentation condition; the first selecting subunit is configured to select the cache screen opening information from the cache screen opening information meeting the display condition based on the availability verification result if the availability verification result returned by the server is received within the second preset time period, wherein the availability verification result comprises the identification of the available cache screen opening information.
In some embodiments, the apparatus further comprises: the second deleting unit is configured to delete the selected cache push message information and the deletable cache screen opening information from the cache screen opening information set after the selected cache screen opening information is displayed if the availability verification result comprises the deletable cache screen opening information identification.
In some embodiments, the selecting unit further comprises: and the second selecting subunit is configured to select the cache screen opening information from the cache screen opening information meeting the display conditions based on a preset selecting strategy if the availability verification result returned by the server is not received within a second preset time period.
In some embodiments, the presentation conditions include one of: the information is not expired, the information is complete and is not expired.
In some embodiments, the apparatus further comprises: the sixth display unit is configured to display the page corresponding to the page display operation if the screen opening condition is not met, or display default screen opening information, and display the page corresponding to the page display operation after the default screen opening information is displayed.
In some embodiments, the open screen condition includes at least one of: the page display operation belongs to preset display operation, the client is in a network connection state, and the client starts the application for the first time.
In some embodiments, the preset presentation operations include an application icon click operation and a background switch foreground operation.
In some embodiments, if the page presentation operation is a background switch foreground operation, the open screen condition further includes: the display interval satisfies the display frequency control threshold.
In some embodiments, the apparatus further comprises: the third determining unit is configured to determine whether the current updated scene meets the updating condition if the screen opening condition is not met; the second sending unit is configured to send a screen opening information updating request to the server if the updating condition is met; the receiving unit is configured to receive the updated open screen information set returned by the server; and the updating unit is configured to update the cache open screen information set by using the update open screen information set.
In some embodiments, the apparatus further comprises: a fourth determining unit configured to determine whether incomplete cache screen opening information exists in the updated cache screen opening information set; and the third deleting unit is configured to delete the incomplete cache screen opening information from the updated cache screen opening information set if the incomplete cache screen opening information exists.
In some embodiments, the update condition includes at least one of: the client is in a wireless network connection state, and the update interval meets the update frequency control threshold.
In a third aspect, embodiments of the present application provide a computer device, including: one or more processors; a storage device having one or more programs stored thereon; the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method as described in any of the implementations of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer readable medium having stored thereon a computer program which, when executed by a processor, implements a method as described in any of the implementations of the first aspect.
According to the page display method and the page display device, whether the current display scene meets the screen opening condition is determined under the condition that the page display operation of an application is detected; under the condition that the screen opening condition is met, determining whether the cache screen opening information meeting the display condition exists in the cache screen opening information set; under the condition that the cache screen opening information meeting the display conditions does not exist, sending a real-time screen opening information acquisition request to a server; and displaying the real-time open screen information under the condition that the real-time open screen information returned by the server is received in the first preset time period, and displaying the page corresponding to the page display operation after the real-time open screen information is displayed. Under the condition that all cache screen opening information cannot be displayed, the server is requested for displaying the real-time screen opening information, and the display success rate of the screen opening information is improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the following drawings, in which:
FIG. 1 is an exemplary system architecture in which the present application may be applied;
FIG. 2 is a flow chart of one embodiment of a page presentation method according to the present application;
FIG. 3 is a flow chart of yet another embodiment of a page presentation method according to the present application;
FIG. 4 is a flow chart of one embodiment of a cache update method according to the present application;
fig. 5 is a schematic diagram of a computer system suitable for use in implementing embodiments of the present application.
Detailed Description
The present application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
FIG. 1 illustrates an exemplary system architecture 100 in which embodiments of the page presentation methods of the present application may be applied.
As shown in fig. 1, devices 101, 102 and network 103 may be included in system architecture 100. The network 103 is used to provide a medium for communication links between the devices 101, 102. The network 103 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The devices 101, 102 may be hardware devices or software that support network connections to provide various network services. When the device is hardware, it may be a variety of electronic devices including, but not limited to, smartphones, tablets, laptop portable computers, desktop computers, servers, and the like. In this case, the hardware device may be realized as a distributed device group composed of a plurality of devices, or may be realized as a single device. When the device is software, it can be installed in the above-listed electronic device. In this case, as software, it may be implemented as a plurality of software or software modules for providing distributed services, for example, or as a single software or software module. The present invention is not particularly limited herein.
In practice, a device may provide a corresponding network service by installing a corresponding client application or server application. After the device has installed the client application, it may be embodied as a client in network communication. Accordingly, after the server application is installed, it may be embodied as a server in network communications.
By way of example, in fig. 1, device 101 is embodied as a client and device 102 is embodied as a server. For example, device 101 may be a client of a wireless access point management class application and device 102 may be a server of the wireless access point management class application.
It should be noted that the page displaying method provided in the embodiments of the present application may be executed by the device 101.
It should be understood that the number of networks and devices in fig. 1 is merely illustrative. There may be any number of networks and devices as desired for an implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a page presentation method according to the present application is shown. The page display method comprises the following steps:
in step 201, in response to detecting the page display operation of the application, it is determined whether the current display scene satisfies the open screen condition.
In this embodiment, the execution subject of the page presentation method (e.g., the device 101 shown in fig. 1) can detect an operation performed by the user for an application installed thereon. Under the condition that the page display operation of the application is detected, the execution main body can determine whether the current display scene meets the screen opening condition. The application may be any application installed on the client, including but not limited to a wireless access point management class application, a video playback class application, a news class application, a shopping class application, and the like. The page presentation operation may be an operation by which a user opens a page in an application, including but not limited to an application icon click operation, a background switch foreground operation, a page push (push) button click operation, and so forth.
In this embodiment, the open screen condition may include one or more conditions set in advance. For example, the open screen condition may include, but is not limited to, the page presentation operation belonging to a preset presentation operation, the client being in a network connection state, the client not first launching an application, and so on. The preset display operation may include an application icon clicking operation and a background switching foreground operation. That is, when the page display operation belongs to the preset display operation under the condition that the screen opening condition is that the page display operation is the preset display operation, when a user opens a page in the application by clicking an application icon or switching a foreground in the background, the current display scene is described as meeting the screen opening condition; when a user opens a page in the application by clicking a page pushing key, the current display scene is not satisfied with the screen opening condition. In addition, under the condition that the screen opening condition is that the client side does not start the application for the first time, when the user starts the application for the first time, the current display scene is described to meet the screen opening condition; when the user starts the application for the first time, the user is guided to accept a protocol for implanting open screen information in the application. If the user accepts, the current display scene is indicated to meet the screen opening condition; if the user refuses, the current display scene is indicated to meet the screen opening condition.
In some optional implementations of this embodiment, if the page display operation is a background switching foreground operation, the screen-open condition may further include the screen-open display interval meeting a display frequency control threshold. That is, when the user presents the page in the application by clicking the application icon, the presentation frequency control is not performed on the open screen information. When a user displays a page in an application by switching the foreground through the background, display frequency control is needed for the open screen information. The frequency control threshold may be set by default, typically 10 minutes. That is, the adjacent two open screen display intervals cannot be shorter than 10 minutes.
As an example, in the case where a page presentation operation of an application is detected, the above-described execution body may determine whether the page presentation operation belongs to a preset presentation operation. If the client belongs to the preset display operation, the execution body can further determine whether the client is in a network connection state. If the client is in the network connection state, the executing body may further determine whether the client is to start the application for the first time. If the application is not started for the first time, the execution body may determine whether the page presentation operation is an application icon clicking operation. If the operation is the application icon clicking operation, the execution main body can directly determine that the current display scene meets the screen opening condition. If the background is switched to the foreground operation, the execution body can further determine whether the display frequency control threshold is met by the display interval. If the display frequency control threshold is met, the execution main body can determine that the current display scene meets the screen opening condition. If the page display operation does not belong to the preset display operation, or the client is not in a network connection state, or the client starts the application for the first time, or the page display operation is a background switching foreground operation, and the display frequency control threshold is not met by the display interval, the execution main body can directly determine that the current display scene does not meet the display condition.
Step 202, if the open screen condition is satisfied, determining whether there is cache open screen information satisfying the display condition in the cache open screen information set.
In this embodiment, if the current display scene meets the screen opening condition, the execution body may determine whether there is cache screen opening information meeting the display condition in the cache screen opening information set. The open screen information may include, but is not limited to, pictures, animations, videos, etc. that may be displayed open screen in an application. The cached open information set may include local open information previously obtained from a backend server of the application (e.g., device 102) and stored.
In this embodiment, the display condition may include one or more conditions set in advance. For example, the presentation conditions may include, but are not limited to, one of the following: information is unexpired, information is complete and unexpired, etc. For example, the executing entity may determine whether there is cache open information whose information is not expired in the cache open information set. If the cache screen opening information with the unexpired information exists, the cache screen opening information with the unexpired information is determined to be the cache screen opening information meeting the display condition. For another example, the executing body may first determine whether there is complete information of the cache open information set. If the information-complete cache screen opening information exists, the execution main body can determine whether the information-complete cache screen opening information exists in the information-complete cache screen opening information or not. If the cache screen opening information with the information not expired exists, the cache screen opening information with the complete information and the unexpired information is determined to be the cache screen opening information meeting the display condition. In addition, under the condition that the cache screen opening information set has incomplete cache screen opening information, the execution main body can delete the cache screen opening information with incomplete information from the cache screen opening information set.
And 203, if the cache screen opening information meeting the display conditions does not exist, sending a real-time screen opening information acquisition request to the server.
In this embodiment, if the cache open information set does not include cache open information that meets the display condition, the execution subject may send a real-time open information acquisition request to the server.
In some optional implementations of this embodiment, after sending the request for obtaining the real-time open screen information, the executing body may further limit sending the request for the client until receiving the real-time open screen information, so as to solve the technical problem that after the user opens the application, the user sends too many requests for the client, resulting in blocking of the network, and cannot communicate with the server to obtain the real-time open screen information.
And 204, if the real-time screen opening information returned by the server is received within the first preset time period, displaying the real-time screen opening information.
In this embodiment, if the real-time open screen information returned by the server is received within a first preset period of time (for example, 3 seconds), the executing body may display the real-time open screen information. Typically, after receiving the real-time open screen information acquisition request, the server may retrieve an open screen information item of a defined size and type and return the execution subject in real time. After the execution main body receives the real-time screen opening information, the availability of the execution main body is not required to be checked, and the execution main body can directly display the real-time screen opening information.
Step 205, after the real-time open screen information is displayed, displaying the page corresponding to the page display operation.
In this embodiment, after the real-time open screen information is displayed, the execution body may display a page corresponding to the page display operation. For example, for real-time open screen information in a picture format, when the display exceeds a preset duration (for example, 3 seconds), the display completion can be determined. For another example, for real-time open screen information in an animation or video format, when it is played, it can be determined that it is displayed.
In some optional implementations of this embodiment, the executing body may delete the real-time open screen information after the real-time open screen information is displayed.
According to the page display method provided by the embodiment of the application, under the condition that the page display operation of the application is detected, whether the current display scene meets the screen opening condition is determined; under the condition that the screen opening condition is met, determining whether the cache screen opening information meeting the display condition exists in the cache screen opening information set; under the condition that the cache screen opening information meeting the display conditions does not exist, sending a real-time screen opening information acquisition request to a server; and displaying the real-time open screen information under the condition that the real-time open screen information returned by the server is received in the first preset time period, and displaying the page corresponding to the page display operation after the real-time open screen information is displayed. Under the condition that all cache screen opening information cannot be displayed, the server is requested for displaying the real-time screen opening information, and the display success rate of the screen opening information is improved.
With further reference to fig. 3, a flow 300 is shown that is yet another embodiment of a page presentation method according to the present application. The page display method comprises the following steps:
in step 301, a page presentation operation of an application is detected.
In this embodiment, the execution subject of the page presentation method (e.g., the device 101 shown in fig. 1) can detect an operation performed by the user for an application installed thereon. In case a page presentation operation of the application is detected, step 302 is performed.
Step 302, determining whether the current display scene meets the screen opening condition.
In this embodiment, the execution body may determine whether the current display scene meets the open screen condition. If the open screen condition is satisfied, the executing body may execute step 303; if the open screen condition is not satisfied, the execution body may execute step 308. Optionally, if the open screen condition is not satisfied, the executing body may not display any open screen information, but directly display the page corresponding to the page display operation.
Step 303, determining whether the cache screen opening information meeting the display condition exists in the cache screen opening information set.
In this embodiment, if the open screen condition is satisfied, the executing body may determine whether there is cache open screen information that satisfies the display condition in the cache open screen information set. If there is no cache screen opening information meeting the display condition, the executing body may execute step 304; if there is the cache open information satisfying the display condition, the executing body may select the cache open information from the cache open information satisfying the display condition, and specifically, the executing body may execute step 310.
And step 304, sending a real-time open screen information acquisition request to a server.
In this embodiment, if the cache open information set does not include cache open information that meets the display condition, the execution subject may send a real-time open information acquisition request to the server.
Step 305, whether real-time open screen information returned by the server is received within a first preset duration.
In this embodiment, the executing body may determine whether the real-time open screen information returned by the server is received within a first preset duration (for example, 3 seconds). If receiving the real-time open screen information, the executing body may execute step 306; if no real-time open screen information is received, the execution body may execute step 308.
In some optional implementations of this embodiment, if the real-time open screen information returned by the server is received after the first preset duration, the executing body may add the real-time open screen information to the cache open screen information set.
Step 306, displaying real-time open screen information.
In this embodiment, if the real-time open screen information returned by the server is received within the first preset time period, the execution body may display the real-time open screen information.
Step 307, after the real-time open screen information is displayed, displaying the page corresponding to the page display operation.
In this embodiment, after the real-time open screen information is displayed, the execution body may display a page corresponding to the page display operation.
Step 308, displaying default open screen information.
In this embodiment, if the current display scene does not meet the screen opening condition, or the real-time screen opening information returned by the server is not received within the first preset duration, the execution body may display default screen opening information. The default open screen information may be a piece of preset open screen information. Typically, the information of the default open screen information is complete and not expired.
Step 309, after the default open screen information is displayed, displaying the page corresponding to the page display operation.
In this embodiment, after the default open screen information is displayed, the execution body may display a page corresponding to the page display operation.
Step 310, an availability verification request is sent to a server.
In this embodiment, if the cache open information set includes cache open information that satisfies the display condition, the execution subject may send an availability verification request to the server. The availability verification request may include an identification of cache open screen information that satisfies the display condition. Typically, the sending of other client requests is restricted until the availability verification request is sent successfully.
Step 311, whether an availability verification result returned by the server is received within a second preset duration.
In this embodiment, the executing body may determine whether an availability verification result returned by the server is received within a second preset duration. If the availability verification result is received, the executing body may execute step 312; if the availability verification result is not received, the execution body may execute step 313. The availability verification result may include an identification of available cache open screen information, among other things. The server may determine whether cached open information meeting the presentation conditions is available based on the fields that allow presentation.
Step 312, selecting the cache screen opening information from the cache screen opening information meeting the display condition based on the availability verification result.
In this embodiment, if the availability verification result returned by the server is received within the second preset time period, the execution subject may select the cache screen opening information from the cache screen opening information meeting the display condition based on the availability verification result.
In some optional implementations of this embodiment, if the availability verification result includes an identifier of the deletable cache open information, the execution body may further delete the selected cache push message information and the deletable cache open information from the cache open information set after the selected cache open information is displayed. In general, when the number of the cache open information satisfying the display condition is greater than the preset number, the execution entity may select a part of the mark-deletable mark (for example, mark-1) from the cache open information satisfying the display condition
Step 313, selecting the cache screen opening information from the cache screen opening information meeting the display condition based on a preset selection strategy.
In this embodiment, if the availability verification result returned by the server is not received within the second preset time period, the execution body may select the cache screen opening information from the cache screen opening information meeting the display condition based on a preset selection policy. The preset selection policy may specify a selection manner of the cache open screen information. For example, the executing body may select the cache screen opening information according to the score of the cache screen opening information that satisfies the display condition. In addition, the execution main body can also select the cache screen opening information according to the displayed times of the cache screen opening information meeting the display conditions.
Step 314, the selected cache open screen information is displayed.
In this embodiment, the execution body may display the selected cache open information.
Step 315, after the selected cache open screen information is displayed, displaying the page corresponding to the page display operation.
In this embodiment, after the selected cache open screen information is displayed, the execution body may display a page corresponding to the page display operation.
As can be seen from fig. 3, compared with the embodiment corresponding to fig. 2, the flow 300 of the page displaying method in this embodiment adds page displaying steps in various scenarios. Therefore, in the scheme described in this embodiment, under the scene that the current display scene does not meet the screen opening condition, or under the scene that the real-time screen opening information returned by the server is not received within the first preset duration, the default screen opening information is displayed first, and then the page corresponding to the page display operation is displayed. Under the scene that the cache screen opening information meeting the display conditions exists in the cache screen opening information set, the cache screen opening information is selected from the cache screen opening information meeting the display conditions to display, and then pages corresponding to the page display operation are displayed. Thereby improving the display success rate of the open screen information in various scenes.
With further reference to FIG. 4, a flow 400 is illustrated that is one embodiment of a cache update method according to the present application. The cache updating method comprises the following steps:
step 401, if the open screen condition is not satisfied, determining whether the current update scene satisfies the update condition.
In this embodiment, in the case where the current presentation scenario does not satisfy the open screen condition, the execution subject of the cache update method (for example, the device 101 shown in fig. 1) may determine whether the current update scenario satisfies the update condition.
In this embodiment, the update condition may include one or more conditions set in advance. For example, the update condition may include, but is not limited to, at least one of: the client is in a wireless network connection state, the update interval satisfies the update frequency control threshold, and so on. Wherein the updated frequency control threshold may be set by default, typically 120 minutes. That is, the interval between two adjacent updates cannot be shorter than 120 minutes. In addition, the update condition may further include that the page presentation operation is a page push button click operation. In addition, in the case where the application is a wireless access point management class application, the update condition may further include that access information of the wireless access point is kept alive.
Step 402, if the update condition is satisfied, sending an open screen information update request to the server.
In this embodiment, if the current update scenario satisfies the update condition, the execution body may send a request for updating the open screen information to the server. Wherein, the request for updating the open screen information may include the number of open screen information that needs to be updated. The server may search for a corresponding number of open screen information to generate an updated open screen information set after receiving the open screen information update request, and return the updated open screen information set to the execution subject.
Step 403, receiving an updated open screen information set returned by the server.
In this embodiment, the executing body may receive the updated open screen information set returned by the server.
Step 404, updating the cached open information set with the updated open information set.
In this embodiment, the executing body may update the cached open information set with the updated open information set. For example, the executing body may directly replace the updated open screen information set with the cached open screen information set. For another example, the execution subject may directly store the updated open screen information set into the cached open screen information set. In addition, if repeated screen opening information exists in the updated screen opening information set and the cached screen opening information set, the repeated cached screen opening information in the cached screen opening information set is covered by the updated screen opening information in the updated screen opening information set.
In some optional implementations of this embodiment, the executing body may determine whether incomplete cache open information exists in the updated cache open information set. If incomplete cache screen opening information exists, the execution main body can delete the incomplete cache screen opening information from the updated cache screen opening information set.
Referring now to FIG. 5, there is illustrated a schematic diagram of a computer system 500 suitable for use in implementing a computer device (e.g., device 101 of FIG. 1) of an embodiment of the present application. The computer device shown in fig. 5 is only an example and should not be construed as limiting the functionality and scope of use of the embodiments herein.
As shown in fig. 5, the computer system 500 includes a Central Processing Unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input section 506 including a keyboard, a mouse, and the like; an output portion 507 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker, and the like; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The drive 510 is also connected to the I/O interface 505 as needed. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as needed so that a computer program read therefrom is mounted into the storage section 508 as needed.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 509, and/or installed from the removable media 511. The above-described functions defined in the method of the present application are performed when the computer program is executed by a Central Processing Unit (CPU) 501.
It should be noted that, the computer readable medium described in the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present application may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or electronic device. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present application may be implemented by software, or may be implemented by hardware. The described units may also be provided in a processor, for example, described as: a processor includes a first determination unit, a second determination unit, a first transmission unit, a first display unit, and a second display unit. The names of these units do not constitute a limitation on the unit itself in each case, and for example, the first determining unit may also be described as "a unit that determines whether or not the current presentation scene satisfies the screen-open condition in response to detecting the page presentation operation of the application".
As another aspect, the present application also provides a computer-readable medium that may be contained in the computer device described in the above embodiments; or may exist alone without being assembled into the computer device. The computer readable medium carries one or more programs which, when executed by the computer device, cause the computer device to: in response to detecting page display operation of an application, determining whether a current display scene meets a screen opening condition; if the screen opening condition is met, determining whether the cache screen opening information meeting the display condition exists in the cache screen opening information set; if the cache screen opening information meeting the display conditions does not exist, sending a real-time screen opening information acquisition request to a server; if the real-time screen opening information returned by the server is received within the first preset time length, displaying the real-time screen opening information; and after the real-time open screen information is displayed, displaying the page corresponding to the page display operation.
The foregoing description is only of the preferred embodiments of the present application and is presented as a description of the principles of the technology being utilized. It will be appreciated by persons skilled in the art that the scope of the invention referred to in this application is not limited to the specific combinations of features described above, but it is intended to cover other embodiments in which any combination of features described above or equivalents thereof is possible without departing from the spirit of the invention. Such as the above-described features and technical features having similar functions (but not limited to) disclosed in the present application are replaced with each other.

Claims (15)

1. A page presentation method, comprising:
in response to detecting page display operation of an application, determining whether a current display scene meets a screen opening condition;
if the screen opening conditions are met, determining whether cache screen opening information meeting display conditions exists in the cache screen opening information set;
if the cache screen opening information meeting the display conditions does not exist, sending a real-time screen opening information acquisition request to a server; if the real-time screen opening information returned by the server is received within the first preset time length, displaying the real-time screen opening information, wherein after the real-time screen opening information acquisition request is sent, the client request is limited to be sent until the real-time screen opening information is received; displaying a page corresponding to the page display operation after the real-time open screen information is displayed; if the real-time screen opening information returned by the server is not received within the first preset time length, displaying default screen opening information; displaying a page corresponding to the page display operation after the default open screen information is displayed;
If the cache screen opening information meeting the display conditions exists, selecting the cache screen opening information from the cache screen opening information meeting the display conditions, and displaying the selected cache screen opening information; displaying a page corresponding to the page display operation after the selected cache open screen information is displayed;
the selecting the cache screen opening information from the cache screen opening information meeting the display condition comprises the following steps:
sending an availability verification request to the server, wherein the availability verification request comprises an identifier of cache screen opening information meeting the display condition;
and if the availability verification result returned by the server is received within the second preset time period, selecting the cache screen opening information from the cache screen opening information meeting the display condition based on the availability verification result, wherein the availability verification result comprises the identification of the available cache screen opening information.
2. The method of claim 1, wherein the method further comprises:
and deleting the real-time open screen information after the real-time open screen information is displayed.
3. The method of claim 2, wherein the method further comprises:
If the real-time screen opening information returned by the server is received after the first preset time length, adding the real-time screen opening information into the cache screen opening information set.
4. A method according to claim 3, wherein the method further comprises:
and if the availability verification result comprises the identification of the deletable cache screen opening information, deleting the selected cache push message information and the deletable cache screen opening information from the cache screen opening information set after the selected cache screen opening information is displayed.
5. The method of claim 3, wherein the selecting cache screen-opening information from the cache screen-opening information satisfying the presentation condition further comprises:
and if the availability verification result returned by the server is not received within the second preset time, selecting the cache screen opening information from the cache screen opening information meeting the display conditions based on a preset selection strategy.
6. The method of one of claims 1, 4-5, wherein the presentation conditions comprise one of: the information is not expired, the information is complete and is not expired.
7. The method of claim 1, wherein the method further comprises:
And if the open screen condition is not met, displaying the page corresponding to the page display operation, or displaying default open screen information, and displaying the page corresponding to the page display operation after the default open screen information is displayed.
8. The method of claim 1 or 7, wherein the open screen condition comprises at least one of: the page display operation belongs to preset display operation, the client is in a network connection state, and the client starts the application for the first time.
9. The method of claim 8, wherein the preset presentation operations include an application icon click operation and a background switch foreground operation.
10. The method of claim 9, wherein if the page presentation operation is the background switch foreground operation, the open screen condition further comprises: the display interval satisfies the display frequency control threshold.
11. The method of claim 7, wherein the method further comprises:
if the screen opening condition is not met, determining whether the current updated scene meets the updating condition or not;
if the updating condition is met, sending a screen opening information updating request to the server;
receiving an updated open screen information set returned by the server;
And updating the cache open screen information set by using the updated open screen information set.
12. The method of claim 11, wherein the method further comprises:
determining whether incomplete cache screen opening information exists in the updated cache screen opening information set;
if incomplete cache screen opening information exists, deleting the incomplete cache screen opening information from the updated cache screen opening information set.
13. The method of claim 11 or 12, wherein the update condition comprises at least one of: the client is in a wireless network connection state, and the update interval meets the update frequency control threshold.
14. A computer device, comprising:
one or more processors;
a storage device on which one or more programs are stored;
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-13.
15. A computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any of claims 1-13.
CN202010123011.4A 2020-02-27 2020-02-27 Page display method and device Active CN111368223B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010123011.4A CN111368223B (en) 2020-02-27 2020-02-27 Page display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010123011.4A CN111368223B (en) 2020-02-27 2020-02-27 Page display method and device

Publications (2)

Publication Number Publication Date
CN111368223A CN111368223A (en) 2020-07-03
CN111368223B true CN111368223B (en) 2024-03-08

Family

ID=71210041

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010123011.4A Active CN111368223B (en) 2020-02-27 2020-02-27 Page display method and device

Country Status (1)

Country Link
CN (1) CN111368223B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107748688A (en) * 2017-09-30 2018-03-02 微梦创科网络科技(中国)有限公司 A kind of information displaying method and device
CN108009226A (en) * 2017-11-27 2018-05-08 深圳市丰巢科技有限公司 Promotion content display implementation method based on intelligent terminal application and intelligent terminal
WO2018086463A1 (en) * 2016-11-09 2018-05-17 阿里巴巴集团控股有限公司 User information obtaining system, method and device
CN109471695A (en) * 2018-10-31 2019-03-15 北京字节跳动网络技术有限公司 Method and apparatus for more new data
CN109471674A (en) * 2018-10-25 2019-03-15 上海连尚网络科技有限公司 It spreads its tail information displaying method, computer equipment and storage medium using starting
CN109919683A (en) * 2019-03-17 2019-06-21 中国建设银行股份有限公司 A kind of system of advertisement pushing, method and device
WO2019184500A1 (en) * 2018-03-29 2019-10-03 上海掌门科技有限公司 Method for displaying information in friend groups, computer device, and storage medium
CN110430324A (en) * 2019-08-07 2019-11-08 华为技术有限公司 A kind of application is spread its tail the display methods and electronic equipment of information
CN110740338A (en) * 2019-10-29 2020-01-31 网易(杭州)网络有限公司 bullet screen processing method and device, electronic equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018086463A1 (en) * 2016-11-09 2018-05-17 阿里巴巴集团控股有限公司 User information obtaining system, method and device
CN107748688A (en) * 2017-09-30 2018-03-02 微梦创科网络科技(中国)有限公司 A kind of information displaying method and device
CN108009226A (en) * 2017-11-27 2018-05-08 深圳市丰巢科技有限公司 Promotion content display implementation method based on intelligent terminal application and intelligent terminal
WO2019184500A1 (en) * 2018-03-29 2019-10-03 上海掌门科技有限公司 Method for displaying information in friend groups, computer device, and storage medium
CN109471674A (en) * 2018-10-25 2019-03-15 上海连尚网络科技有限公司 It spreads its tail information displaying method, computer equipment and storage medium using starting
CN109471695A (en) * 2018-10-31 2019-03-15 北京字节跳动网络技术有限公司 Method and apparatus for more new data
CN109919683A (en) * 2019-03-17 2019-06-21 中国建设银行股份有限公司 A kind of system of advertisement pushing, method and device
CN110430324A (en) * 2019-08-07 2019-11-08 华为技术有限公司 A kind of application is spread its tail the display methods and electronic equipment of information
CN110740338A (en) * 2019-10-29 2020-01-31 网易(杭州)网络有限公司 bullet screen processing method and device, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张俊本 ; .基于Web的图书馆多屏幕展示系统.图书情报导刊.2016,(03),全文. *
龙凤 ; 王凡 ; 鲜鹏 ; 唐堂 ; .基于HBASE的4G流量话单实时查询及分页展示方法.移动通信.2017,(19),全文. *

Also Published As

Publication number Publication date
CN111368223A (en) 2020-07-03

Similar Documents

Publication Publication Date Title
CN108282529B (en) System, method and device for publishing and subscribing data
US8078228B2 (en) Method and apparatus for displaying messages in an idle state of mobile terminal, driving an application for an idle state in a mobile terminal and providing idle state contents for a mobile terminal
CN111447505B (en) Video clipping method, network device, and computer-readable storage medium
US11800201B2 (en) Method and apparatus for outputting information
CN111246228B (en) Method, device, medium and electronic equipment for updating gift resources of live broadcast room
CN109168012B (en) Information processing method and device for terminal equipment
CN112083853A (en) Account reporting method, account checking device, electronic equipment and storage medium
CN114302208A (en) Video distribution method, video distribution device, electronic equipment, storage medium and program product
CN111163336B (en) Video resource pushing method and device, electronic equipment and computer readable medium
CN111694629A (en) Information display method and device and electronic equipment
CN113760536A (en) Data caching method and device, electronic equipment and computer readable medium
CN114443897A (en) Video recommendation method and device, electronic equipment and storage medium
CN112269959A (en) Display content control method and device, readable medium and electronic equipment
CN110673886B (en) Method and device for generating thermodynamic diagrams
CN111225255B (en) Target video push playing method and device, electronic equipment and storage medium
CN111368223B (en) Page display method and device
CN110619101B (en) Method and apparatus for processing information
CN115563134A (en) Interaction method, interaction device, electronic equipment and computer readable medium
CN106933449B (en) Icon processing method and device
CN115270734A (en) Message processing method, device, equipment and medium based on session
CN114025116A (en) Video generation method and device, readable medium and electronic equipment
CN113473236A (en) Processing method and device for screen recording video, readable medium and electronic equipment
CN112149019A (en) Method, apparatus, electronic device, and computer-readable medium for displaying information
CN112016280A (en) File editing method and device and computer readable medium
CN114579021A (en) Information interaction method, device and equipment

Legal Events

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