CN108965389B - Method for displaying information - Google Patents

Method for displaying information Download PDF

Info

Publication number
CN108965389B
CN108965389B CN201810608149.6A CN201810608149A CN108965389B CN 108965389 B CN108965389 B CN 108965389B CN 201810608149 A CN201810608149 A CN 201810608149A CN 108965389 B CN108965389 B CN 108965389B
Authority
CN
China
Prior art keywords
push information
target
returned
information
push
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
CN201810608149.6A
Other languages
Chinese (zh)
Other versions
CN108965389A (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.)
Nanjing Shangwang Network Technology Co.,Ltd.
Original Assignee
Nanjing Shangwang 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 Nanjing Shangwang Network Technology Co ltd filed Critical Nanjing Shangwang Network Technology Co ltd
Priority to CN201810608149.6A priority Critical patent/CN108965389B/en
Publication of CN108965389A publication Critical patent/CN108965389A/en
Application granted granted Critical
Publication of CN108965389B publication Critical patent/CN108965389B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application discloses a method for displaying information. One embodiment of the method comprises: acquiring current user operation; responding to the fact that the current user operation is a refreshing operation, and determining current push information for displaying based on the target push information set; sending a push information request for requesting to push the content next time to the server; receiving push information returned by a server based on a push information request; and storing the returned push information to a target push information set for displaying when the next refreshing operation is obtained. According to the embodiment, when the next refreshing operation is detected, the pushing information can be directly selected from the pushing information stored in the current refreshing operation for displaying, and the speed of loading the pushing information when the next refreshing operation is detected is improved.

Description

Method for displaying information
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method for displaying information.
Background
With the continuous development of the internet, people can browse various information through the internet. Such as news information, sports information, financial information, entertainment information, and the like. Generally, when a user finishes browsing the current page content, the user can send a request for obtaining new page content to the background server through the operation of refreshing the page, and the background server returns the new page content according to the received request.
Disclosure of Invention
The embodiment of the application provides a method for displaying information.
In a first aspect, an embodiment of the present application provides a method for presenting information, where the method includes: acquiring current user operation; responding to the fact that the current user operation is a refreshing operation, and determining current push information for displaying based on the target push information set; sending a push information request for requesting to push the content next time to the server; receiving push information returned by a server based on a push information request; and storing the returned push information to a target push information set for displaying when the next refreshing operation is obtained.
In some embodiments, determining the current push information for presentation based on the target set of push information comprises: and in response to the current network connection state being local area network connection, selecting current push information for display from the target push information set.
In some embodiments, determining the current push information for presentation based on the target set of push information comprises: and determining the current push information for display based on the returned push information in response to that the current network connection state is non-local area network connection and the target push information set is an empty set.
In some embodiments, determining the current push information for presentation based on the returned push information comprises: selecting a preset number of pieces of push information from the returned push information as current push information in response to the number of the returned push information being greater than a preset threshold value; and storing the returned push information to the target push information set comprises: and storing unselected push information in the returned push information to a target push information set for displaying when the next refreshing operation is obtained.
In some embodiments, selecting the current push information for presentation from the set of target push information comprises: and selecting a first number of item label push information as the current push information from the target push information set according to the sequence of the receiving time of the target push information from large to small for displaying.
In some embodiments, the push information request includes at least one keyword; and the push information returned based on the push information request comprises: the obtained push information is retrieved based on the at least one keyword.
In some embodiments, the at least one keyword comprises at least one of: browsing information keywords, searching information keywords, consuming information keywords, user location keywords.
In some embodiments, after storing the returned push information to the target push information set, the method further includes: determining the time for receiving the returned push information as reference time; and selecting returned push information from the target push information set for displaying in response to the detection of the refresh operation within a preset time period after the reference time.
In some embodiments, selecting the returned push information from the target push information set for presentation includes: and selecting a second number of pieces of target push information from the target push information set according to the sequence of the receiving time of the target push information from large to small for displaying.
In some embodiments, storing the returned push information to the target push information set further comprises: deleting target push information received before the target time, and/or deleting target push information which is already displayed, and/or deleting other target push information except returned push information.
In some embodiments, after determining the time of receiving the returned push information as the reference time, the method further includes: in response to the refresh operation not being detected within a preset time period after the reference time, performing the following updating step: sending a push information request for requesting to push content next time to a server; receiving new push information returned by a server based on the push information request; storing the new push information into a target push information set, and deleting the push information received before receiving the new push information; and selecting new push information from the target push information set for displaying in response to the detection of the refresh operation within a preset time period after the new push information is received.
In some embodiments, the updating step further includes: and responding to the situation that the refresh operation is not detected in the preset time period after the new push information is received, and continuing to execute the updating step.
In some embodiments, after storing the returned push information to the target push information set, the method further includes: and in response to detecting that the user exits the operation, deleting the target push information set.
In a second aspect, an embodiment of the present application provides an apparatus for presenting information, where the apparatus includes: an acquisition unit configured to acquire a current user operation; a push unit configured to determine current push information for presentation based on a target push information set in response to a current user operation being a refresh operation; sending a push information request for requesting to push the content next time to the server; a receiving unit configured to receive push information returned by the server based on the push information request; and the storage unit is configured to store the returned push information to the target push information set for displaying when the next refreshing operation is obtained.
In a third aspect, an embodiment of the present application provides an electronic device, including: one or more processors; storage means for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method as described in any implementation of the first aspect.
In a fourth aspect, the present application provides a computer-readable medium, on which a computer program is stored, which, when executed by a processor, implements the method as described in any implementation manner of the first aspect.
The method for displaying information provided by the embodiment of the application determines the current push information for displaying based on the target push information set by acquiring the current user operation, responding to the current user operation as a refresh operation, sending a push information request for requesting the next push content to the server, receiving push information returned by the server based on the push information request, storing the returned push information to a target push information set for displaying when the next refresh operation is obtained, therefore, when the next refreshing operation is detected, the pushing information can be directly selected from the pushing information stored in the refreshing operation for displaying, the speed of loading the pushing information when the next refreshing operation is detected is increased, and the conditions that the loading information is delayed or the loading information is wrong under the condition that the network state is not good are avoided.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which one embodiment of the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a method for presenting information in accordance with the present application;
FIG. 3 is a schematic diagram of an application scenario of a method for presenting information according to the present application;
FIG. 4 is a flow diagram of yet another embodiment of a method for presenting information in accordance with the present application;
FIG. 5 is a flow diagram of yet another embodiment of a method for presenting information in accordance with the present application;
FIG. 6 is a schematic block diagram of one embodiment of an apparatus for displaying information in accordance with the present application;
fig. 7 is a schematic structural diagram of a computer system suitable for implementing a terminal device according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 shows an exemplary architecture 100 to which the method for presenting information of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The terminal devices 101, 102, 103 interact with a server 105 via a network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as a browser application, a news-like application, a shopping-like application, a search-like application, an instant messenger, a social-like application, and the like.
The terminal apparatuses 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices having a display screen, including but not limited to smart phones, tablet computers, e-book readers, laptop portable computers, desktop computers, and the like. When the terminal apparatuses 101, 102, 103 are software, they can be installed in the electronic apparatuses listed above. It may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The server 105 may be a server that provides various services, such as an information server that provides information push for the terminal devices 101, 102, 103. The information server may analyze and process the push information request sent by the terminal device, and return the corresponding push information to the terminal device according to the push information request.
The server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules used to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be noted that the method for presenting information provided in the embodiments of the present application is generally performed by a terminal device.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a method for presenting information in accordance with the present application is shown. The method for presenting information comprises the following steps:
step 201, obtaining the current user operation.
In this embodiment, the executing body (such as the terminal devices 101, 102, 103 shown in fig. 1) of the method for presenting information may acquire the current user operation. The user operation may include various interactive operations that the execution subject can receive. The current user operation may refer to a user operation acquired when the execution subject executes the step. It should be understood that, in practice, each user operation acquired by the execution main body may be a current user operation. In practice, the execution subject may have different obtaining modes for different interactive operations.
For example, the user operation may include various operations performed by the user through various external devices such as a touch head, a touch pen, a mouse, a keyboard, and a hand drawing board, or through a finger of the user on the execution main body, or may include operations such as a gesture recognized by the user through shaking the terminal device or other execution main bodies. Correspondingly, the execution main body can realize the acquisition of user operation by internally setting some drivers corresponding to various external devices or program settings capable of receiving various user operations.
Step 202, in response to the current user operation being a refresh operation, determining current push information for display based on a target push information set; and sending a push information request for requesting to push the content next time to the server.
In this embodiment, when detecting that the current user operation is a refresh operation, the execution main body may determine the current push information for presentation based on the target push information set. The refresh operation may be an operation for instructing refresh. The refresh operation includes, but is not limited to, a click operation (e.g., clicking a refresh icon, clicking a navigation link, etc.), a key operation (e.g., pressing a shortcut key on a keyboard corresponding to the refresh, etc.), a slide operation (e.g., sliding down on a screen of the executing subject, etc.), a gesture operation (e.g., waving a hand right above the screen of the executing subject, etc.), and the like.
Before this step, the execution subject may continuously or intermittently detect a click operation, a slide operation, a gesture operation, or the like corresponding to the refresh operation. It should be appreciated that for different refresh operations, different corresponding detection methods may be utilized for detection.
For example, the user may refresh the current content by sliding the screen down. Then, the executing body can detect whether there is a downward sliding screen operation by using various existing methods related to the recognition and detection of the user touch trajectory. The user may also refresh by, for example, tapping the F5 key on the keyboard. Then the execution body may continuously detect the keyboard reception signal, and when it is detected that F5 is pressed, it is considered that the refresh operation is detected. It should be understood that the refresh operation may be performed in various manners, and the corresponding manner for detecting the refresh operation may be various, and is not limited to the above-listed manners. For example, the user may also control the refresh operation through a key on other devices such as a laser pen, and correspondingly, the execution subject may determine whether there is a refresh operation by detecting whether a key signal on the corresponding laser pen is received.
In this embodiment, information to be pushed may be stored in the push information set. The push information set may be a set of push information acquired by the execution subject from a local database, may be a set of push information downloaded by the execution subject from a network, or acquired from a third-party data platform or a cloud platform (for example, the server 105 shown in fig. 1), or may be a mixed combination of push information acquired locally and through a network. The target push information set may be a push information set specified in advance by a technician, or may be a push information set meeting a condition screened according to a certain screening rule.
In this embodiment, the current push information for presentation may be determined according to the attribute of the target push information set (such as the number, content, time, etc. of the push information in the target push information set).
Optionally, when the number of pieces of push information in the target push information set is zero, the push information may be acquired from the server or another third-party database and displayed as the current push information. When the number in the target push information set is not zero, the push information can be selected from the target push information set to be displayed as the current push information.
Optionally, when the number of pieces of push information in the target push information set is not zero, it may be further determined whether the number of pieces of push information in the target push information set is greater than the preset number of pieces of presentation information. If the number of pieces of push information is smaller than the preset number, the push information in the target push information set is selected as the current push information to be displayed, and the missing pieces of push information can be acquired from the server or other third-party databases and can be displayed as the current push information.
Optionally, when the number of pieces of push information in the target push information set is not zero, the receiving time of the push information therein may be further determined. If the receiving time is before a preset time point (such as the previous week of the current time), the push information can be obtained from the server or other third-party database to be displayed as the current push information.
Optionally, a certain number of pieces of push information may be selected for each type of content as the current push information to be displayed according to the content type included in the push information in the target push information set. When the content types of the push information in the target push information set are less than a certain number, part of push information can be selected from the target push information set, then the push information of the lacking content types is obtained from the server or other third-party databases, and then the two parts of push information are displayed together as the current push information.
In this embodiment, when the current user operation is a refresh operation, a push information request may also be sent to the server to request the next push content.
Step 203, receiving the push information returned by the server based on the push information request.
In this embodiment, the execution principal may receive push information returned by the server in response to the received push information request.
Optionally, the push information request may include the number of requested push information, so that the server returns a corresponding number of pieces of push information.
In some optional implementations of this embodiment, the push information request may include at least one keyword. The server can retrieve according to the keywords contained in the received push information request, so as to obtain the related push content.
In some optional implementations of this embodiment, the at least one keyword may include at least one of: browsing information keywords, searching information keywords, consuming information keywords, user location keywords.
The browsing information keywords can be obtained through the following steps: and acquiring browsed historical push information, and extracting browsing information keywords from the historical push information. The search information keyword may be acquired by: and acquiring a search record of a user, and extracting search information keywords from the search record. The consumption information keyword can be obtained by the following steps: and acquiring the consumption record of the user, and extracting the consumption information keywords from the consumption record.
The user information keyword may include at least one of: sex, age. The user information keyword can be obtained by the following steps: acquiring behavior information of a user, wherein the behavior information comprises at least one of the following items: search records, consumption records. And determining the gender and/or age of the user according to the obtained behavior information. For example, the gender and age of the user are inferred based on the specific content to which the user's search and consumption records relate. The user location keyword may refer to a location where the execution subject is located. For example, the user location keyword may be acquired using the above-described navigation or positioning system of the execution subject itself.
When the server receives the push information request containing the keyword, the server can search the push information corresponding to or related to the keyword. For example, when the push information request includes a consumption information keyword such as brand a skin care product. The server may retrieve push information related to brand a skin care products, such as brand a's current discount information, offers, and so on. For example, if the push information request includes that the user location keyword is beijing hai lake, the server may retrieve related information with the highest degree of attention in the hail lake region in a current or recent certain time period, or retrieve related information such as weather, activities, and the like of the hail lake region. Further, the server may return the retrieved push information.
And 204, storing the returned push information to a target push information set for displaying when the next refreshing operation is obtained.
In this embodiment, the executing entity may store the push information returned by the server in step 203 into the target push information set. When the next refresh operation is detected, the stored push information can be selected from the target push information set for display.
In some optional implementations of this embodiment, when storing the returned push information to the target push information set, the target push information received before the target time may be deleted, and/or the target push information that has been shown may be deleted, and/or other target push information except for the returned push information may be deleted. The target time may be a pre-specified time, such as a day or a week before the current time. When the push information returned by the server side is stored, other push information in the target push information set is timely removed, the burden of the memory of the execution main body can be timely relieved, and meanwhile, the timeliness of the push information in the target push information set is also guaranteed.
In some optional implementations of this embodiment, after storing the returned push information to the target push information set, the method further includes: and in response to detecting that the user exits the operation, deleting the target push information set.
With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the method for presenting information according to the present embodiment. In the application scenario of fig. 3, the terminal device mobile phone 301 may obtain a current user operation, and when it is detected that the current user operation is a downslide refresh operation, two pieces of push information 303, which are push information 01 and push information 02 respectively, may be selected from a target push information set 302 stored in a memory of the mobile phone 301. Thereafter, push information 01 and 02 may be presented on the handset 301. In addition, while the downslide operation is detected, the handset 301 may send a push information request 304 for requesting a next push of content to the server 306. The server 306 may return two pieces of push information 305, namely push information 03 and push information 04. Then, the mobile phone 301 receives the push information 305 returned by the server 306, and stores the push information 305 in the local target push information set 302, so that when a downslide operation is received next time, the currently cached push information 305 is selected from the target push information set 302 for display.
The method provided by the above embodiment of the present application determines the current push information for presentation based on the target push information set when the current user operation is the refresh operation. And sending a push information request for requesting the next push content to the server, receiving push information returned by the server based on the push information request, and storing the returned push information into a target push information set for displaying when the next refresh operation is obtained, so that the push information can be directly selected from the push information stored in the refresh operation for displaying when the next refresh operation is detected, the speed of loading the push information when the refresh operation is detected next time is improved, and the condition that the loading information is delayed or the loading information is wrong under the condition that the network state is not good is avoided.
With further reference to FIG. 4, a flow 400 of yet another embodiment of a method for presenting information is shown. The process 400 for presenting information includes the following steps:
step 401, obtaining a current user operation.
The specific implementation process of this step can refer to the related description of step 201 in the corresponding embodiment of fig. 2, and is not repeated here.
Step 402, in response to that the current user operation is a refresh operation and the current network connection state is a local area network connection, selecting current push information for display from the target push information set, and sending a push information request for requesting a next push content to the server. The following steps 403 and 404 are then performed.
In this embodiment, when the current user operation is a refresh operation and the current network connection state is lan connection, the execution main body may select current push information for presentation from the target push information set. In addition, a push information request for requesting the next push of the content can be sent to the server.
In some optional implementation manners of this embodiment, the execution main body may select, from the target push information set, the first number of item label push information to be displayed according to a descending order of the receiving time of each target push information. The first number may be any number specified in advance by a technician, or may be a number calculated according to a preset algorithm. For example, the first number may be set to one third of the number of push information in the current target push information set.
Optionally, when the current user operation is a refresh operation, it may be detected whether the current network connection state is a local area network connection state by using a method for detecting the current network state provided by the system according to an operating system (such as an Android or iPhone operating system) used by the user. Other related specific execution processes can refer to the related description of step 202 in the corresponding embodiment of fig. 2, and are not repeated herein.
Step 403, receiving the push information returned by the server based on the push information request.
And step 404, storing the returned push information to a target push information set for displaying when the next refresh operation is obtained.
The specific implementation process of steps 403 and 404 may refer to the related descriptions of steps 203 and 204 in the corresponding embodiment of fig. 2, and will not be described herein again.
Step 405, after the step 401, in response to that the current user operation is a refresh operation, the current network connection state is a non-local area network connection, and the target push information set is an empty set, sending a push information request for requesting to push content next time to the server. The following steps 406 and 407 are then performed.
In this embodiment, when the current user operation is a refresh operation, the current network connection state is a non-lan connection, and the target push information set is an empty set, the execution main body may send a push information request for requesting to push the content next time to the server.
Optionally, when the current user operation is a refresh operation and the current network connection state is a non-lan connection, the number of target push information contained in the target push information set may be determined by traversing the target push information set, so as to determine whether the target push information set is an empty set. When the number of the target push information is zero, the target push information set is indicated as an empty set. Other related specific execution processes can refer to the related description of step 202 in the corresponding embodiment of fig. 2, and are not repeated herein.
Step 406, receiving the push information returned by the server based on the push information request.
The specific implementation process of this step can refer to the related description of step 203 in the corresponding embodiment of fig. 2, and is not repeated here.
Step 407, in response to that the number of the returned pieces of push information is greater than a preset threshold, selecting a preset number of pieces of push information from the returned pieces of push information as the current push information. And storing unselected push information in the returned push information to a target push information set for displaying when the next refreshing operation is obtained.
In this embodiment, when the number of the returned pieces of push information is greater than the preset threshold, the execution main body may select a preset number of pieces of push information from the returned pieces of push information as the current push information to be displayed. In addition, the unselected push information is stored in the target push information set for displaying when the next refresh operation is acquired. The preset threshold and the preset number may be any number set according to an actual application scenario.
Optionally, when the number of the returned push information is smaller than a preset threshold, the execution main body may display all the returned push information as the current push information. And then, sending a push information request for requesting the next push content to the server again, and storing the push information returned by the push information request to the target push information set.
As can be seen from fig. 4, compared with the embodiment corresponding to fig. 2, the flow 400 of the information pushing method in this embodiment highlights that when the current network connection state is a local area network, the pushed information can be selected from the target pushed information set for display, so that the loading speed of the pushed information this time is increased, and meanwhile, a pushed information request for requesting the next pushed content is sent to the server, and the returned pushed information is stored for display when the refresh operation is obtained next time, so that a higher loading speed of the next pushed information is also ensured. In addition, when the current network connection state is a non-local area network and the target push information set is an empty set, a push information request for requesting the next push content can be sent to the server, then partial push information in the returned push information request is pushed for the time, and the rest push information is stored for being pushed when the next refreshing operation is obtained, so that the normal display of the push information for the time is ensured when the target push information is an empty set, and the loading speed of the next push information is improved.
With further reference to fig. 5, a flow 500 of yet another embodiment of a method for presenting information is illustrated. The steps included in the flow 500 of the method for presenting information may be applied after step 204 in the embodiment of the method shown in fig. 2. The process 500 for presenting information includes the following steps:
step 501, determining the time for receiving the returned push information as a reference time.
In this embodiment, the execution main body may obtain a time for receiving the push information returned by the server, and use the time as a reference time.
Step 502, determining whether a refresh operation is detected within a preset time period after the reference time, in response to detecting the refresh operation within the preset time period after the reference time, executing step 503, in response to not detecting the refresh operation within the preset time period after the reference time, executing step 504 and 508.
In the present embodiment, the preset time period may be any time period specified in advance, such as one hour.
Step 503, selecting the returned push information from the target push information set for displaying.
In some optional implementation manners of this embodiment, the execution main body may select a second number of pieces of target push information from the target push information set to display according to a descending order of the receiving time of each piece of target push information. The second number may be any number specified in advance by a technician, or may be a number calculated according to a preset algorithm. For example, the second number may be set to one third of the number of push information in the current target push information set.
Step 504, sending a push information request for requesting to push the content next time to the server.
And 505, receiving new push information returned by the server based on the push information request.
Step 506, storing the new push information into the target push information set, and deleting the push information received before receiving the new push information.
Step 507, determining whether a refresh operation is detected within a preset time period after receiving the new push information, in response to detecting the refresh operation within the preset time period after receiving the new push information, executing step 508, and in response to not detecting the refresh operation within the preset time period after receiving the new push information, repeatedly executing step 504 and 507.
In this embodiment, when the current user operation is a refresh operation, push information is selected for display, and after the push information used for obtaining the display at the time of the refresh operation is stored, if the next refresh operation is not obtained within a preset time period, a push information request may be sent to the server again, and the returned push information is stored, and the previously stored push information is deleted. Thereafter, the above-described method of updating stored push information may be performed in a loop.
And step 508, selecting new push information from the target push information set for display.
As can be seen from fig. 5, compared with the embodiment corresponding to fig. 2, the process 500 of the information pushing method in this embodiment highlights that after the embodiment corresponding to fig. 2, when the next refresh operation is not obtained within a preset time period, the stored push information used for being displayed when the next refresh operation is obtained may be updated, so that the timeliness of the stored push information is ensured, and the user is prevented from obtaining obsolete and useless push information when the next refresh operation with a long interval time is obtained.
With further reference to fig. 6, as an implementation of the method shown in the above-mentioned figures, the present application provides an embodiment of an apparatus for presenting information, which corresponds to the embodiment of the method shown in fig. 2, and which is particularly applicable to various electronic devices.
As shown in fig. 6, the apparatus 600 for presenting information provided in this embodiment includes an obtaining unit 601, a pushing unit 602, a receiving unit 603, and a storing unit 604. Wherein the obtaining unit 601 is configured to obtain a current user operation; the push unit 602 is configured to determine, in response to the current user operation being a refresh operation, current push information for presentation based on the target push information set; sending a push information request for requesting to push the content next time to the server; the receiving unit 603 is configured to receive the push information returned by the server based on the push information request; the storage unit 604 is configured to store the returned push information to the target push information set for presentation when the next refresh operation is acquired.
In the present embodiment, in the apparatus 600 for presenting information: the specific processing of the obtaining unit 601, the pushing unit 602, the receiving unit 603, and the storing unit 604 and the technical effects thereof can refer to the related descriptions of step 201, step 202, step 203, and step 204 in the corresponding embodiment of fig. 2, which are not described herein again.
In some optional implementations of this embodiment, the push unit 602 is further configured to select the current push information for presentation from the target push information set in response to the current network connection status being a lan connection.
In some optional implementations of the embodiment, the push unit 602 is further configured to determine, based on the returned push information, current push information for presentation in response to that the current network connection status is a non-lan connection and the target push information set is an empty set.
In some optional implementations of the present embodiment, the push unit 602 is further configured to, in response to that the number of the returned push information is greater than a preset threshold, select a preset number of pieces of push information from the returned push information as the current push information; the storage unit 604 is further configured to store unselected push information of the returned push information to the target push information set for presentation when the next refresh operation is acquired.
In some optional implementations of the present embodiment, the pushing unit 602 is further configured to select, from the target push information set, a first number of item label push information as the current push information to be displayed in an order from a large receiving time to a small receiving time of the target push information.
In some optional implementations of this embodiment, the push request includes at least one keyword; and the push information returned based on the push information request comprises: the obtained push information is retrieved based on the at least one keyword.
In some optional implementations of this embodiment, the at least one keyword includes at least one of: browsing information keywords, searching information keywords, consuming information keywords, user location keywords.
In some optional implementations of the present embodiment, the apparatus 600 for displaying information further includes: a determining unit (not shown in the figure) configured to determine a time of receiving the returned push information as a reference time; the above-mentioned push unit 602 is further configured to select the returned push information from the target push information set for presentation in response to detecting the refresh operation within a preset time period after the reference time.
In some optional implementations of the embodiment, the push unit 602 is further configured to select a second number of pieces of target push information from the set of target push information to be displayed according to a descending order of receiving time of the target push information.
In some optional implementations of the embodiment, the storage unit 604 is further configured to delete target push information received before the target time, and/or delete target push information already presented, and/or delete other target push information except the returned push information.
In some optional implementations of the present embodiment, the pushing unit 602 is further configured to, in response to that no refresh operation is detected within a preset time period after the reference time, perform the following updating step: sending a push information request for requesting to push content next time to a server; receiving new push information returned by a server based on the push information request; storing the new push information into a target push information set, and deleting the push information received before receiving the new push information; and selecting new push information from the target push information set for displaying in response to the detection of the refresh operation within a preset time period after the new push information is received.
In some optional implementations of the present embodiment, the push unit 602 is further configured to continue to perform the updating step in response to that the refresh operation is not detected within a preset time period after receiving the new push information.
In some optional implementations of the present embodiment, the apparatus 600 for displaying information further includes: a deleting unit configured to delete the target push information set in response to detecting that the user quits the operation.
According to the device for displaying information provided by the above embodiment of the application, the current user operation is acquired through the acquisition unit, and when the current user operation is a refresh operation, the push unit determines the current push information for displaying based on the target push information set. And, a push information request for requesting a next push of the content is transmitted to the server. Then, the receiving unit receives the push information returned by the server based on the push information request, and the storage unit stores the returned push information into the target push information set for displaying when the next refresh operation is obtained, so that the push information can be directly selected from the push information stored in the refresh operation for displaying when the next refresh operation is detected, the speed of loading the push information when the refresh operation is detected next time is increased, and the situations of delay of loading information or error of loading information under the condition of poor network state are avoided.
Referring now to FIG. 7, shown is a block diagram of a computer system 700 suitable for use in implementing a terminal device of an embodiment of the present application. The terminal device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 7, the computer system 700 includes a Central Processing Unit (CPU)701, which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for the operation of the system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
The following components are connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, and the like; an output section 707 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 708 including a hard disk and the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read out therefrom is mounted into the storage section 708 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the 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 illustrated in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 709, and/or installed from the removable medium 711. The computer program, when executed by a Central Processing Unit (CPU)701, performs the above-described functions defined in the method of the present application.
It should be noted that the computer readable medium of the present application can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination 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 present application, 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 this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. 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.
The flowchart 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 described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor comprises an acquisition unit, a pushing unit, a receiving unit and a storage unit. The names of these units do not in some cases constitute a limitation on the unit itself, and for example, the acquiring unit may also be described as "a unit that acquires a current user operation".
As another aspect, the present application also provides a computer-readable medium, which may be contained in the apparatus described in the above embodiments; or may be present separately and not assembled into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: responding to the fact that the current user operation is a refreshing operation, and determining current push information for displaying based on the target push information set; sending a push information request for requesting to push the content next time to the server; receiving push information returned by a server based on a push information request; and storing the returned push information to a target push information set for displaying when the next refreshing operation is obtained.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (14)

1. A method for presenting information, comprising:
acquiring current user operation;
responding to the fact that the current user operation is a refreshing operation, and determining current push information for displaying based on the target push information set; sending a push information request for requesting to push the content next time to the server;
receiving push information returned by the server based on the push information request;
storing the returned push information to a target push information set for displaying when next refreshing operation is obtained;
the determining the current push information for display based on the target push information set comprises: and in response to the fact that the current network connection state is determined to be non-local area network connection and the target push information set is an empty set, selecting push information from the returned push information as the current push information to be displayed.
2. The method of claim 1, wherein the determining current push information for presentation based on the target set of push information comprises:
and in response to the current network connection state being local area network connection, selecting current push information for display from the target push information set.
3. The method of claim 1, wherein the determining current push information for presentation based on the returned push information comprises:
selecting a preset number of pieces of push information from the returned push information as current push information in response to the number of the returned push information being greater than a preset threshold value; and
the storing the returned push information to a target push information set comprises:
and storing the unselected push information in the returned push information to a target push information set for displaying when the next refreshing operation is obtained.
4. The method of claim 2, wherein the selecting the current push information for presentation from the target push information set comprises:
and selecting a first number of item label push information as the current push information from the target push information set according to the sequence of the receiving time of the target push information from large to small for displaying.
5. The method of claim 1, wherein the push information request includes at least one keyword; and
the push information returned based on the push information request comprises:
retrieving the obtained push information based on the at least one keyword.
6. The method of claim 5, wherein the at least one keyword comprises at least one of: browsing information keywords, searching information keywords, consuming information keywords, user location keywords.
7. The method of claim 1, wherein after storing the returned push information to a target set of push information, further comprising:
determining the time for receiving the returned push information as reference time;
and selecting the returned push information from a target push information set for displaying in response to the detection of the refresh operation within a preset time period after the reference time.
8. The method of claim 7, wherein the selecting the returned push information from the target push information set for presentation comprises:
and selecting a second number of pieces of target push information from the target push information set according to the sequence of the receiving time of the target push information from large to small for displaying.
9. The method of claim 1, wherein the storing the returned push information to a target set of push information further comprises:
deleting target push information received before the target time, and/or deleting displayed target push information, and/or deleting other target push information except the returned push information.
10. The method of claim 7, wherein after the determining a time to receive the returned push information as a reference time, further comprising:
in response to no refresh operation being detected within a preset time period after the reference time, performing the following updating step: sending a push information request for requesting to push content next time to the server; receiving new push information returned by the server based on the push information request; storing the new push information into a target push information set, and deleting push information received before receiving the new push information; and selecting the new push information from a target push information set for displaying in response to the detection of a refresh operation within the preset time period after the new push information is received.
11. The method of claim 10, wherein the updating step further comprises:
in response to not detecting a refresh operation within the preset time period after receiving the new push information, continuing to perform the updating step.
12. The method of claim 1, wherein after storing the returned push information to a target set of push information, further comprising:
and in response to detecting that the user exits the operation, deleting the target push information set.
13. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-12.
14. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-12.
CN201810608149.6A 2018-06-13 2018-06-13 Method for displaying information Active CN108965389B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810608149.6A CN108965389B (en) 2018-06-13 2018-06-13 Method for displaying information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810608149.6A CN108965389B (en) 2018-06-13 2018-06-13 Method for displaying information

Publications (2)

Publication Number Publication Date
CN108965389A CN108965389A (en) 2018-12-07
CN108965389B true CN108965389B (en) 2021-07-06

Family

ID=64488482

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810608149.6A Active CN108965389B (en) 2018-06-13 2018-06-13 Method for displaying information

Country Status (1)

Country Link
CN (1) CN108965389B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109636475A (en) * 2018-12-14 2019-04-16 平安城市建设科技(深圳)有限公司 Source of houses method for refreshing, device, equipment and storage medium
CN109688562B (en) * 2018-12-26 2022-05-10 上海连尚网络科技有限公司 Merchant advertisement information display method, user equipment, routing equipment and network equipment
CN110113416B (en) * 2019-05-07 2020-08-07 北京字节跳动网络技术有限公司 Method and device for displaying information
CN110442825B (en) * 2019-08-13 2022-07-12 连尚(新昌)网络科技有限公司 Method and apparatus for presenting information
CN111130918B (en) * 2019-11-05 2021-06-29 南京尚网网络科技有限公司 Method and equipment for presenting information flow
CN112307321A (en) * 2019-11-15 2021-02-02 北京字节跳动网络技术有限公司 Information pushing method and device and electronic equipment
CN111984857B (en) * 2020-06-28 2024-04-09 百度在线网络技术(北京)有限公司 Information pushing method and device, electronic equipment and storage medium
CN114051054A (en) * 2022-01-13 2022-02-15 深圳市赢向量科技有限公司 Method and system for acquiring information by adopting wireless communication network

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101923564A (en) * 2010-06-08 2010-12-22 汪翔云 Method for improving performance of webpage of representing three-dimensional object based on image cache
CN102447647A (en) * 2010-10-13 2012-05-09 腾讯科技(深圳)有限公司 Notification method, device and system based on new information
CN102647481A (en) * 2012-03-31 2012-08-22 奇智软件(北京)有限公司 Device and method for accessing preset network address
CN102957712A (en) * 2011-08-17 2013-03-06 阿里巴巴集团控股有限公司 Method and system for loading website resources
CN104065637A (en) * 2013-07-10 2014-09-24 腾讯科技(深圳)有限公司 Web-game running method and device
CN106055612A (en) * 2016-05-25 2016-10-26 青岛海信传媒网络技术有限公司 Data paging display method and terminal equipment
CN106446174A (en) * 2016-09-28 2017-02-22 江西博瑞彤芸科技有限公司 Method for page loading in application
CN108123970A (en) * 2016-11-28 2018-06-05 北京神州泰岳软件股份有限公司 Method for exhibiting data and relevant apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10108737B2 (en) * 2012-01-25 2018-10-23 Microsoft Technology Licensing, Llc Presenting data driven forms

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101923564A (en) * 2010-06-08 2010-12-22 汪翔云 Method for improving performance of webpage of representing three-dimensional object based on image cache
CN102447647A (en) * 2010-10-13 2012-05-09 腾讯科技(深圳)有限公司 Notification method, device and system based on new information
CN102957712A (en) * 2011-08-17 2013-03-06 阿里巴巴集团控股有限公司 Method and system for loading website resources
CN102647481A (en) * 2012-03-31 2012-08-22 奇智软件(北京)有限公司 Device and method for accessing preset network address
CN104065637A (en) * 2013-07-10 2014-09-24 腾讯科技(深圳)有限公司 Web-game running method and device
CN106055612A (en) * 2016-05-25 2016-10-26 青岛海信传媒网络技术有限公司 Data paging display method and terminal equipment
CN106446174A (en) * 2016-09-28 2017-02-22 江西博瑞彤芸科技有限公司 Method for page loading in application
CN108123970A (en) * 2016-11-28 2018-06-05 北京神州泰岳软件股份有限公司 Method for exhibiting data and relevant apparatus

Also Published As

Publication number Publication date
CN108965389A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
CN108965389B (en) Method for displaying information
US11263241B2 (en) Systems and methods for predicting actionable tasks using contextual models
CN107679211B (en) Method and device for pushing information
CN109981785B (en) Method and device for pushing information
WO2018019139A1 (en) Information pushing method and device
US20160234624A1 (en) De-siloing applications for personalization and task completion services
CN108287925B (en) Method and device for displaying page elements
US20210097262A1 (en) Method and device for sending information
CN110866040A (en) User portrait generation method, device and system
CN110753911B (en) Automatic context transfer between applications
CN109992719B (en) Method and apparatus for determining push priority information
CN113589991A (en) Text input method and device, electronic equipment and storage medium
CN111694629A (en) Information display method and device and electronic equipment
CN109409419B (en) Method and apparatus for processing data
CN111273830A (en) Data display method and device, electronic equipment and computer readable medium
CN113220381A (en) Click data display method and device
CN110888583B (en) Page display method, system and device and electronic equipment
CN112395109B (en) Clipboard content processing method and device
CN110622135B (en) System and method for providing content items in situations involving suboptimal network conditions
CN109584012B (en) Method and device for generating item push information
CN112306340A (en) Information display method, information sending device, electronic equipment and medium
CN108415957B (en) Method and device for self-defined navigation of webpage
WO2020078049A1 (en) User information processing method and device, server, and readable medium
CN113220954A (en) Information display method and device and projection equipment
CN111695059A (en) Information view list processing method and device and display 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
TA01 Transfer of patent application right

Effective date of registration: 20200703

Address after: Room 909, No. 12, Huangshan Road, Jianye District, Nanjing City, Jiangsu Province

Applicant after: Nanjing Shangwang Network Technology Co.,Ltd.

Address before: 312599 B-2, 3 floor, Jiayi Plaza, 127 East Renmin Road, Nanming street, Xinchang, Shaoxing, Zhejiang

Applicant before: LIANSHANG (XINCHANG) NETWORK TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant