CN112632432A - Page refreshing method and device based on terminal, computer equipment and storage medium - Google Patents

Page refreshing method and device based on terminal, computer equipment and storage medium Download PDF

Info

Publication number
CN112632432A
CN112632432A CN202011609550.5A CN202011609550A CN112632432A CN 112632432 A CN112632432 A CN 112632432A CN 202011609550 A CN202011609550 A CN 202011609550A CN 112632432 A CN112632432 A CN 112632432A
Authority
CN
China
Prior art keywords
page
refreshing
page refreshing
mobile terminal
request interval
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.)
Granted
Application number
CN202011609550.5A
Other languages
Chinese (zh)
Other versions
CN112632432B (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.)
Ping An Securities Co Ltd
Original Assignee
Ping An Securities 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 Ping An Securities Co Ltd filed Critical Ping An Securities Co Ltd
Priority to CN202011609550.5A priority Critical patent/CN112632432B/en
Publication of CN112632432A publication Critical patent/CN112632432A/en
Application granted granted Critical
Publication of CN112632432B publication Critical patent/CN112632432B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a page refreshing method and a related device based on a terminal, wherein the method comprises the following steps: receiving a page refresh command for a target page; acquiring a device score of the mobile terminal; determining a designated request interval of the mobile terminal according to the device score; after first time corresponding to the specified request interval passes, sending a page refreshing request corresponding to the page refreshing command to the server; receiving page refreshing data corresponding to the page refreshing request returned by the server; acquiring adjacent last page refreshing time and current time, and calculating a first difference value obtained by subtracting the last page refreshing time from the current time; and executing page refreshing processing corresponding to the page refreshing data on the target page according to the first difference and a preset refreshing threshold value and a preset rule. According to the method and the device, smooth operation of the mobile terminal can be guaranteed while the target page can be refreshed quickly. Furthermore, the invention also relates to a blockchain technique, and the device scores can be stored in the blockchain.

Description

Page refreshing method and device based on terminal, computer equipment and storage medium
Technical Field
The application relates to a block chain technology, which is applied to the technical field of computers, in particular to a page refreshing method and device based on a terminal, computer equipment and a storage medium.
Background
With the rapid development of network technology and communication technology, mobile internet services have been rapidly increasing. The mobile internet has the characteristics of rich information and convenient use, and a user can enjoy a large amount of rich information through the mobile internet.
When a user browses network information through the mobile internet, the terminal needs to be networked, and data such as page resource files, pictures and the like are connected in the terminal. For some pages with certain real-time performance, such as social applications, news information, etc., users will frequently refresh the pages to see the latest content in time. When receiving a page refreshing operation sent by a user, the terminal immediately requests the server for the latest data, and immediately analyzes the data and performs page refreshing after obtaining the latest data. Since the terminals have various models, and hardware facilities of the terminals of different models are different. For a first type of terminal with excellent hardware facilities and belonging to a high-end model, the latest data is requested from a server immediately after a page refreshing operation sent by a user is received, and the data is analyzed immediately after the latest data is obtained and page refreshing is performed. However, for a second type of terminal belonging to a middle-and-low-end model and having a common hardware facility, if a latest data is requested from a server immediately after a page refresh operation sent by a user is received, and the data is analyzed immediately after the latest data is obtained and page refresh is performed, so that real-time data refresh processing can be performed on a page in real time, but since the performance of the middle-and-low-end model terminal is not high, a real-time and frequent data refresh processing flow can cause excessive page rendering and rendering, and occupy more system hardware resources of the terminal, thereby seriously affecting the operational flow of the second type of terminal, causing a pause phenomenon to occur in the page refresh process of the second type of terminal, and the user experience is not good. Therefore, it is urgently needed to design a page refreshing method applicable to terminals of different types, which can ensure that the terminal can not only realize quick page refreshing when performing page refreshing processing, but also can smoothly operate and does not have a pause phenomenon.
Disclosure of Invention
The main purpose of the present application is to provide a page refreshing method, device, computer device and storage medium based on a terminal, and to solve the technical problem that a page refreshing method applicable to different types of terminals needs to be designed urgently in the prior art, and the page refreshing method can ensure that a terminal can not only realize quick page refreshing but also can smoothly operate and cannot cause a pause phenomenon when performing page refreshing processing.
The application provides a page refreshing method based on a terminal, which is applied to a mobile terminal and comprises the following steps:
receiving a page refreshing command for a target page triggered by a user;
acquiring a device score corresponding to the mobile terminal according to the page refreshing command;
determining a specified request interval corresponding to the mobile terminal according to the equipment score;
after the first time corresponding to the specified request interval passes, sending a page refreshing request corresponding to the page refreshing command to a server;
receiving page refreshing data corresponding to the page refreshing request returned by the server;
acquiring adjacent last page refreshing time and current time, and calculating a first difference obtained by subtracting the last page refreshing time from the current time;
and executing page refreshing processing corresponding to the page refreshing data on the target page according to a preset rule and a preset refreshing threshold value.
Optionally, the step of obtaining the device score corresponding to the mobile terminal according to the page refresh command includes:
acquiring running configuration data corresponding to the mobile terminal according to the page refreshing command, wherein the running configuration data at least comprises a running memory, an operating system version and CPU performance;
acquiring cardinality corresponding to each running configuration data; and the number of the first and second groups,
acquiring weight values corresponding to the operation configuration data respectively;
carrying out weighted summation processing on the cardinal number and the weighted value, and calculating a device score corresponding to the mobile terminal;
after the step of performing weighted summation processing on the cardinality and the weight value and calculating the device score corresponding to the mobile terminal, the method comprises the following steps:
storing the device score onto a blockchain of a blockchain system.
Optionally, the step of determining a specific request interval corresponding to the mobile terminal according to the device score includes:
acquiring a preset request interval-interval range value mapping table;
according to the equipment score, screening out a specified interval range value corresponding to the equipment score from the request interval-interval range value mapping table;
according to the specified interval range value, extracting a specified request interval corresponding to the specified interval range value from the request interval-interval range value mapping table;
after the step of extracting the specified request interval corresponding to the specified interval range value from the request interval-interval range value mapping table according to the specified interval range value, the method includes:
and storing the specified request interval to a block chain of a block chain system.
Optionally, after the step of determining the specified request interval corresponding to the mobile terminal according to the device score, the method includes:
starting a preset daemon thread;
polling the real-time running data of the mobile terminal according to a preset time interval through the daemon thread to obtain a corresponding polling result;
and adjusting the specified request interval corresponding to the polling result according to the polling result.
Optionally, the step of adjusting the specified request interval according to the polling result includes:
judging whether the remaining available memory value is smaller than a preset memory threshold value or not according to the polling result;
if the remaining available memory value is smaller than the preset memory threshold value, performing first degradation processing on the specified request interval to obtain an updated first request interval;
and if the remaining available memory value is judged to be not less than the preset memory threshold value, the specified request interval is limited to be changed.
Optionally, the step of adjusting the specified request interval according to the polling result includes:
judging whether the remaining available electric quantity value is smaller than a preset electric quantity threshold value or not;
if the remaining available electric quantity value is smaller than a preset electric quantity threshold value, performing second degradation processing on the specified request interval to obtain an updated second request interval;
and if the remaining available electric quantity value is judged to be not smaller than a preset electric quantity threshold value, the specified request interval is limited to be changed.
Optionally, the step of executing, according to the first difference and a preset refresh threshold, a page refresh process corresponding to the page refresh data on the target page according to a preset rule includes:
judging whether the first difference value is smaller than the refresh threshold value;
if the first difference is judged to be not smaller than the refresh threshold, rendering the target page by adopting the page refresh data so as to finish page refresh processing on the target page;
if the first difference is smaller than the refresh threshold, calculating a second difference obtained by subtracting the first difference from the refresh threshold;
and after a second time corresponding to the second difference value, rendering the target page by using the page refreshing data so as to finish the page refreshing processing of the target page.
The application also provides a page refreshing device based on the terminal, which is applied to the mobile terminal and comprises:
the first receiving module is used for receiving a page refreshing command for a target page, wherein the page refreshing command is triggered by a user;
the first acquisition module is used for acquiring the equipment score corresponding to the mobile terminal according to the page refreshing command;
the determining module is used for determining a specified request interval corresponding to the mobile terminal according to the equipment score;
a sending module, configured to send, to a server, a page refresh request corresponding to the page refresh command after a first time corresponding to the specified request interval elapses;
the second receiving module is used for receiving page refreshing data which is returned by the server and corresponds to the page refreshing request;
the calculating module is used for acquiring adjacent last page refreshing time and current time, and calculating a first difference value obtained by subtracting the last page refreshing time from the current time;
and the processing module is used for executing page refreshing processing corresponding to the page refreshing data on the target page according to the first difference and a preset refreshing threshold and a preset rule.
The present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the above-mentioned method.
The page refreshing method, device, computer equipment and storage medium based on the terminal have the following beneficial effects:
the page refreshing method, the page refreshing device, the computer equipment and the storage medium based on the terminal receive a page refreshing command for a target page, wherein the page refreshing command is triggered by a user; acquiring a device score corresponding to the mobile terminal according to the page refreshing command; determining a specified request interval corresponding to the mobile terminal according to the equipment score; after the first time corresponding to the specified request interval passes, sending a page refreshing request corresponding to the page refreshing command to a server; receiving page refreshing data corresponding to the page refreshing request returned by the server; acquiring adjacent last page refreshing time and current time, and calculating a first difference obtained by subtracting the last page refreshing time from the current time; and executing page refreshing processing corresponding to the page refreshing data on the target page according to a preset rule and a preset refreshing threshold value. When a user has a page refreshing demand for a target page in a mobile terminal, the mobile terminal can dynamically acquire a specified request interval corresponding to the equipment performance according to the equipment performance condition of the mobile terminal, and then intelligently determines a page refreshing processing mode suitable for the target page according to the specified request interval, so that the smooth operation of the mobile terminal can be ensured while the target page is ensured to be refreshed quickly, and the use experience of the user is effectively improved.
Drawings
Fig. 1 is a schematic flowchart of a terminal-based page refreshing method according to an embodiment of the present application;
FIG. 2 is a schematic structural diagram of a terminal-based page refreshing apparatus according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
Referring to fig. 1, a terminal-based page refreshing method according to an embodiment of the present application includes:
s1: receiving a page refreshing command for a target page triggered by a user;
s2: acquiring a device score corresponding to the mobile terminal according to the page refreshing command;
s3: determining a specified request interval corresponding to the mobile terminal according to the equipment score;
s4: after the first time corresponding to the specified request interval passes, sending a page refreshing request corresponding to the page refreshing command to a server;
s5: receiving page refreshing data corresponding to the page refreshing request returned by the server;
s6: acquiring adjacent last page refreshing time and current time, and calculating a first difference obtained by subtracting the last page refreshing time from the current time;
s7: and executing page refreshing processing corresponding to the page refreshing data on the target page according to a preset rule and a preset refreshing threshold value.
As described in the above steps S1-S7, the main implementation of the embodiment of the method is a terminal-based page refreshing apparatus. In practical applications, the terminal-based page refreshing apparatus may be implemented by a virtual apparatus, such as a software code, or by an entity apparatus in which a relevant execution code is written or integrated, and may perform human-computer interaction with a user through a keyboard, a mouse, a remote controller, a touch panel, or a voice control device, and the terminal-based page refreshing apparatus may specifically be a mobile terminal. The page refreshing device based on the terminal provided by the embodiment can effectively ensure the normal and smooth operation of the mobile terminal in the refreshing process of quickly executing the page refreshing. Specifically, a user-triggered page refresh command for a target page is first received. The page refresh command refers to a page refresh operation performed by a user for a target page, for example, the page refresh command may be an operation in which the user clicks a refresh control of a page, and after receiving the page refresh operation, the mobile terminal determines to detect the page refresh command. In addition, the target page refers to a page on which a user needs to perform a page refresh operation. And then, acquiring the equipment score corresponding to the terminal mobile terminal according to the page refreshing command. The equipment score of the mobile terminal can be calculated by acquiring and calculating a preset weighted sum calculation formula according to the operation configuration data corresponding to the mobile terminal, and the base number and the weight value corresponding to the operation configuration data. And then determining the appointed request interval corresponding to the mobile terminal according to the equipment score. The specified request interval may be determined by calling and querying a pre-created request interval-interval range value mapping table. And when the specified time interval is obtained, and after the first time corresponding to the specified request interval, sending a page refreshing request corresponding to the page refreshing command to the server. The method comprises the steps of obtaining a specified request interval corresponding to the equipment score of the mobile terminal, sending a page refreshing request to the server after the first time corresponding to the specified request interval, and not sending the page refreshing request to the server immediately after receiving a page refreshing instruction triggered by a user, so that the triggering of page refreshing of the mobile terminal is effectively delayed, and the mobile terminal can keep better performance. And then receiving page refreshing data which is returned by the server and corresponds to the page refreshing request. The page refreshing request carries version information of current page data of a target page, the page data of the target page refers to specific content contained in the target page, and the version information of the page data is used for distinguishing different page data corresponding to the same page at different moments; the version information may be characters such as numbers, english alphabets, and the like. In addition, the page refreshing request is used for enabling the server to detect whether the page data of the target page is updated or not according to the version information, the server obtains the version information corresponding to the latest page data of the target page, then compares the version information of the latest page data with the version information sent by the mobile terminal, and if the version information of the latest page data is different from the version information sent by the mobile terminal, the server determines that the page data of the target page is updated, and then returns the latest page refreshing data corresponding to the page refreshing request; and if the version information of the latest page data is the same as the version information sent by the mobile terminal, indicating that the page data of the target page is not updated, the server sends corresponding non-updated state information to the mobile terminal. Further, the server may further determine whether the page content before and after the refresh is changed by a hash operation, for example, a hash operation, that is, determine whether the page data of the target page is updated by taking the source file (Html code) of the page before and after the refresh to perform the hash operation, and determining whether the hash operation value is the same. And after receiving the page refreshing data, acquiring the adjacent last page refreshing time and the current time, and calculating a first difference obtained by subtracting the last page refreshing time from the current time. And finally, when the first difference is obtained, according to the first difference and a preset refresh threshold, performing page refresh processing corresponding to the page refresh data on the target page according to a preset rule, namely performing corresponding page refresh processing on the target page by using the page refresh data according to the preset rule. After the first time, a page refresh request is sent to the server (which is a data source of data required by page refresh) in a circulating manner, and after a data reply returned by the server, namely the page refresh data, is obtained and a preset condition is met between the first difference and a preset refresh threshold, the page refresh data returned by the interface is displayed on a current target page, so that synchronous refresh processing of the target page is completed. In addition, the setting of the refresh threshold value can be set according to actual requirements, and the setting can be specifically set according to the rule of page refresh change which can be reflected by naked eyes of a normal human body. The preset rule is a rule that a preset condition is met between the first difference and a preset refresh threshold, and the preset condition is a condition that the first difference is not smaller than the refresh threshold. And only when the current time and the last adjacent page refreshing time exceed the refreshing threshold, namely the first difference is not smaller than the refreshing threshold, the user can normally find the refreshing change generated by the target page according to the target page subjected to the page refreshing processing. When a user has a page refreshing demand for a target page in a mobile terminal, the mobile terminal of the embodiment can dynamically acquire a specified request interval corresponding to the device performance according to the device performance condition of the mobile terminal, and then intelligently determines a page refreshing processing mode suitable for the target page according to the specified request interval, so that the target page can be rapidly refreshed, smooth operation of the mobile terminal can be guaranteed, and the user experience is effectively improved.
Further, in an embodiment of the present application, the step S2 includes:
s200: acquiring running configuration data corresponding to the mobile terminal according to the page refreshing command, wherein the running configuration data at least comprises a running memory, an operating system version and CPU performance;
s201: acquiring cardinality corresponding to each running configuration data; and the number of the first and second groups,
s202: acquiring weight values corresponding to the operation configuration data respectively;
s203: carrying out weighted summation processing on the cardinal number and the weighted value, and calculating a device score corresponding to the mobile terminal;
after step S203 of performing weighted summation processing on the base number and the weight value to calculate a device score corresponding to the mobile terminal, the method includes:
s204: storing the device score onto a blockchain of a blockchain system.
As described in the foregoing steps S200 to S204, the step of obtaining the device score corresponding to the mobile terminal according to the page refresh command may specifically include: firstly, according to the page refreshing command, obtaining the operation configuration data corresponding to the mobile terminal. The running configuration data at least comprises a running memory, an operating system version and CPU performance. Then obtaining cardinality corresponding to each operation configuration data; and acquiring weighted values corresponding to the operation configuration data respectively. The base number corresponding to the operation configuration data can be divided and set according to the specific software and hardware model, size and version number of the mobile terminal. For example, the radix corresponding to the operating memory 2G is set to 1, the radix corresponding to the operating memory 4G is set to 2, and the radix corresponding to the operating memory 6G and above is set to 3. Similarly, for the setting mode of the base number corresponding to the operating system version and the CPU performance of the mobile terminal, the setting is performed only by following the rule that the version information of the operating system version is newer, the base number is larger, the CPU performance is higher, and the base number is larger, and the setting mode of the base number of the operating memory may be specifically referred to, and is not described herein again. In addition, the specific value of the weight value corresponding to the running configuration data can be set according to the actual situation, can be automatically generated by the device, and can also be input by the user after being set according to the actual requirement. For example, the weight corresponding to the run memory may be set to 0.4, the weight corresponding to the os version may be set to 0.2, and the weight corresponding to the CPU performance may be set to 0.4. And finally, carrying out weighted summation processing on the cardinal number and the weighted value, and calculating the equipment score corresponding to the mobile terminal, so that the specified request interval corresponding to the mobile terminal can be quickly and conveniently determined according to the equipment score. For example, if the running memory, the os version, and the cardinality corresponding to the CPU performance corresponding to the mobile terminal are sequentially: 2, 4, 2, and the weight values of the running memory, the operating system version and the CPU performance corresponding to the mobile terminal are 0.4, 0.2, 0.4 in sequence, then by performing weighted summation processing on the cardinal number and the weight values, the device score corresponding to the mobile terminal can be calculated as: 2 × 0.4+4 × 0.2+2 × 0.4 ═ 2.4. Further, after the step of performing a weighted sum process on the base number and the weight value to calculate the device score corresponding to the mobile terminal, the method may further include: and storing the equipment scores to a block chain of the block chain system. By storing and managing the device score corresponding to the mobile terminal by using the block chain, the security and the non-tamper property of the device score are effectively guaranteed.
Further, in an embodiment of the present application, the step S3 includes:
s300: acquiring a preset request interval-interval range value mapping table;
s301: according to the equipment score, screening out a specified interval range value corresponding to the equipment score from the request interval-interval range value mapping table;
s302: according to the specified interval range value, extracting a specified request interval corresponding to the specified interval range value from the request interval-interval range value mapping table;
after the step S302 of extracting the designated request interval corresponding to the designated interval range value from the request interval-interval range value mapping table according to the designated interval range value, the method includes:
s303: and storing the specified request interval to a block chain of a block chain system.
As described in steps S300 to S303, the determining, according to the device score, a request interval to be assigned corresponding to the mobile terminal may specifically include: firstly, a preset request interval-interval range value mapping table is obtained. The request interval-interval range value mapping table can be developed and generated by related personnel according to actual requirements, namely according to model grades corresponding to different terminals. For example, the low frequency request interval may be set to 1000ms, and the interval range value corresponding to the low frequency request interval is 0 to 5; the medium frequency request interval can be set to 600ms, and the interval range value corresponding to the medium frequency request interval is 6-9; the high frequency request interval may be set to 200ms, and the interval range value corresponding to the high frequency request interval is 10 and more. And then according to the equipment score, screening out a specified interval range value corresponding to the equipment score from the request interval-interval range value mapping table. Referring to the previous embodiment, if the device score corresponding to the mobile terminal is 2.4, the range value of the designated interval corresponding to the device score is 0 to 5 by looking up the table. After the specified interval range value is found, the specified request interval corresponding to the specified interval range value is extracted from the request interval-interval range value mapping table according to the specified interval range value, so that the page refreshing processing corresponding to the page refreshing command can be intelligently executed according to the specified request interval corresponding to the mobile terminal obtained through query, the mobile terminal can be effectively guaranteed to smoothly run in the process of real-time page refreshing, and the use experience of a user is guaranteed. For example, if the specified interval range value is 0 to 5, the specified request interval corresponding to the specified interval range value is 1000ms by looking up the table. Further, after the step of extracting the designated request interval corresponding to the designated interval range value from the request interval-interval range value mapping table according to the designated interval range value, the method may further include: and storing the specified request interval to a block chain of the block chain system. By storing and managing the specified request interval corresponding to the specified interval range value by using the block chain of the block chain system, the security and the non-tamper property of the specified request interval are effectively ensured.
Further, in an embodiment of the present application, after the step S3, the method includes:
s310: starting a preset daemon thread;
s311: polling the real-time running data of the mobile terminal according to a preset time interval through the daemon thread to obtain a corresponding polling result;
s312: and adjusting the specified request interval corresponding to the polling result according to the polling result.
As described in steps S310 to S312, after the determination process of determining the designated request interval corresponding to the mobile terminal according to the device score is completed, the designated request interval may be further adaptively adjusted according to real-time operation data of the mobile terminal, so that the mobile terminal does not suffer from a pause phenomenon in the subsequent page refresh process, and the stable operation of the mobile terminal can be ensured while the page is rapidly refreshed. Specifically, a preset daemon thread is started first. The daemon thread is a special process running in the background of the mobile terminal, is independent of the control terminal, and periodically executes some task or waits for processing some occurred events. And after the daemon process is started successfully, polling the real-time running data of the mobile terminal through the daemon thread according to a preset time interval to obtain a corresponding polling result. The value of the time interval is not particularly limited, and may be set according to actual requirements, for example, 60 s. And finally, according to the polling result, adjusting the specified request interval corresponding to the polling result so as to carry out page refreshing processing suitable for the target page according to the adjusted specified request interval. When the specified request interval corresponding to the mobile terminal is determined, the specified request interval can be intelligently adjusted according to the current actual operation state of the mobile terminal, and then the page refreshing processing on the target page is executed according to the adjusted specified request interval, so that the mobile terminal can effectively keep good performance to realize flow operation in the process of quickly refreshing the page, and the use experience of a user is guaranteed.
Further, in an embodiment of the present application, the real-time operation data includes a remaining available memory value, and the step S312 includes:
s3120: judging whether the remaining available memory value is smaller than a preset memory threshold value or not according to the polling result;
s3121: if the remaining available memory value is smaller than the preset memory threshold value, performing first degradation processing on the specified request interval to obtain an updated first request interval;
s3122: and if the remaining available memory value is judged to be not less than the preset memory threshold value, the specified request interval is limited to be changed.
As described in steps S3120 to S3122, the operation data may include a remaining available memory value, and the adjusting the designated request interval according to the polling result may specifically include: firstly, judging whether the remaining available memory value is smaller than a preset memory threshold value according to the polling result. The value of the memory threshold is not particularly limited, and may be set according to actual requirements, for example, 1/6 for running the memory may be set. If the remaining available memory value is smaller than the preset memory threshold value, performing first degradation processing on the specified request interval to obtain an updated first request interval, so that page refreshing processing corresponding to the page refreshing command is performed according to the updated first request interval, and therefore the mobile terminal can be effectively guaranteed to run smoothly in the real-time page refreshing process, and the use experience of a user is guaranteed. The first destaging process may correspond to a preset minimum request interval, that is, the first request interval, and for example, the minimum request interval may be set to 1000 ms. In addition, the first downgrading process may further include performing a down-regulation operation on a base number corresponding to the original operating configuration data of software and hardware of the mobile terminal to obtain an updated base number, then calculating a corresponding updated device score according to the updated base number, and finally determining the updated first request interval according to the updated device score and the request interval-interval range value mapping table. And if the remaining available memory value is judged to be not less than the preset memory threshold value, indicating that the current mobile terminal is in a normal operation state, limiting the change of the specified request interval, namely, reserving the specified request interval, and then directly executing the page refreshing processing corresponding to the page refreshing command according to the specified request interval.
In an embodiment of the application, the real-time operation data includes a remaining available electric quantity value, and the step S312 includes:
s3123: judging whether the remaining available electric quantity value is smaller than a preset electric quantity threshold value or not;
s3124: if the remaining available electric quantity value is smaller than a preset electric quantity threshold value, performing second degradation processing on the specified request interval to obtain an updated second request interval;
s3125: and if the remaining available electric quantity value is judged to be not smaller than a preset electric quantity threshold value, the specified request interval is limited to be changed.
As described in steps S3123 to S3125, the operation data may include a remaining available power value, and the adjusting the designated request interval according to the polling result may specifically include: firstly, judging whether the remaining available electric quantity value is smaller than a preset electric quantity threshold value or not according to the polling result. The value is not particularly limited, and may be set according to actual requirements, for example, 10%. And if the residual available electric quantity value is smaller than the preset electric quantity threshold value, performing second degradation processing on the specified request interval to obtain an updated second request interval, so that page refreshing processing corresponding to the page refreshing command is performed according to the updated second request interval, thereby effectively ensuring that the mobile terminal can keep smooth operation in the process of performing real-time page refreshing, and ensuring the use experience of a user. The specific processing procedure of the second degradation processing may refer to the processing procedure of the first degradation processing, and is not described herein again. And if the remaining available electric quantity value is judged to be not less than the preset electric quantity threshold value, indicating that the current mobile terminal is in a normal operation state, limiting the change of the specified request interval, namely reserving the specified request interval, and then directly executing the page refreshing processing corresponding to the page refreshing command according to the specified request interval.
Further, in an embodiment of the present application, the step S7 includes:
s700: judging whether the first difference value is smaller than the refresh threshold value;
s701: if the first difference is judged to be not smaller than the refresh threshold, rendering the target page by adopting the page refresh data so as to finish page refresh processing on the target page;
s702: if the first difference is smaller than the refresh threshold, calculating a second difference obtained by subtracting the first difference from the refresh threshold;
s703: and after a second time corresponding to the second difference value, rendering the target page by using the page refreshing data so as to finish the page refreshing processing of the target page.
As described in the foregoing steps S700 to S703, the step of performing, according to the preset rule and according to the first difference and the preset refresh threshold, the page refresh processing corresponding to the page refresh data on the target page may specifically include: firstly, judging whether the first difference value is smaller than a preset refresh threshold value. The refreshing threshold value is obtained by setting according to the rule of page refreshing change which can be reflected by naked eyes of a normal human body. The refresh threshold may be set to 300ms, since the human eye can substantially only reflect a change in the pattern or number in the page once in 300 ms. If the first difference is judged to be not smaller than the preset refresh threshold value, which indicates that the last page refresh time adjacent to the current time distance exceeds the refresh threshold value, directly executing page refresh processing corresponding to the page refresh data on the target page, namely rendering the target page by using the page refresh data to complete the page refresh processing on the target page, so that a user can normally find refresh changes generated by the target page according to the target page subjected to the page refresh processing. After the rendering processing of the target page by using the page refreshing data is completed, the page refreshing data and the version information corresponding to the page refreshing data can be further stored in a local storage space of the mobile terminal. And if the first difference is smaller than the preset refreshing threshold, the current time is not equal to the previous page refreshing time adjacent to the current time, namely the current time does not meet the condition of performing page refreshing processing on the target page. And then calculating a second difference obtained by subtracting the first difference from the refresh threshold, and after a second time corresponding to the second difference, executing page refresh processing corresponding to the page refresh data on the target page, namely rendering the target page by using the page refresh data so as to finish the page refresh processing on the target page. If the page refresh processing is performed on the target page under the condition that the first difference is smaller than the preset refresh threshold, which means that under the condition that the network is blocked for a short time and multiple pieces of data may be returned simultaneously, at this time, if the meaning of uninterruptedly refreshing multiple pieces of data in the target page is not great, the user may not normally perceive the refresh change generated by the page subjected to the page refresh processing, and meanwhile, the operation pressure of the mobile terminal may be too great. According to the method and the device, only when the first difference value obtained by subtracting the adjacent last page refreshing time from the current time is not smaller than the preset refreshing threshold value is ensured, the page refreshing data is used for refreshing the target page, so that the user can be effectively ensured to normally find the refreshing change generated by the target page according to the target page subjected to the page refreshing processing, and the use experience of the user is ensured.
Referring to fig. 2, an embodiment of the present application further provides a terminal-based page refreshing apparatus, which is applied to a mobile terminal, and includes:
the first receiving module 1 is used for receiving a page refreshing command for a target page, wherein the page refreshing command is triggered by a user;
the first obtaining module 2 is configured to obtain a device score corresponding to the mobile terminal according to the page refreshing command;
a determining module 3, configured to determine, according to the device score, a specified request interval corresponding to the mobile terminal;
a sending module 4, configured to send, to the server, a page refresh request corresponding to the page refresh command after a first time corresponding to the specified request interval elapses;
a second receiving module 5, configured to receive page refresh data corresponding to the page refresh request, where the page refresh data is returned by the server;
the calculating module 6 is configured to obtain adjacent last page refreshing time and current time, and calculate a first difference obtained by subtracting the last page refreshing time from the current time;
and the processing module 7 is configured to execute, according to the first difference and a preset refresh threshold, page refresh processing corresponding to the page refresh data on the target page according to a preset rule.
In this embodiment, the implementation process of the functions and actions of the first receiving module, the first obtaining module, the determining module, the sending module, the second receiving module, the calculating module and the processing module in the terminal-based page refreshing apparatus is specifically described in the implementation processes corresponding to steps S1 to S7 in the terminal-based page refreshing method, and is not described herein again.
Further, in an embodiment of the present application, the first obtaining module includes:
the first obtaining unit is used for obtaining operation configuration data corresponding to the mobile terminal according to the page refreshing command, wherein the operation configuration data at least comprises an operation memory, an operating system version and CPU performance;
a second obtaining unit configured to obtain a cardinal number corresponding to each of the operation configuration data; and the number of the first and second groups,
a third obtaining unit, configured to obtain weight values corresponding to the respective operation configuration data;
the first calculation unit is used for carrying out weighting summation processing on the base number and the weight value and calculating a device score corresponding to the mobile terminal;
the first obtaining module further includes:
the first storage unit is used for storing the equipment scores to a block chain of a block chain system.
In this embodiment, the implementation process of the functions and functions of the first obtaining unit, the second obtaining unit, the third obtaining unit, the first calculating unit and the first storing unit in the terminal-based page refreshing apparatus is specifically described in the implementation processes corresponding to steps S200 to S204 in the terminal-based page refreshing method, and is not described herein again.
Further, in an embodiment of the present application, the determining module includes:
a fourth obtaining unit, configured to obtain a preset request interval-interval range value mapping table;
the screening unit is used for screening out a specified interval range value corresponding to the equipment score from the request interval-interval range value mapping table according to the equipment score;
an extracting unit, configured to extract, according to the specified interval range value, a specified request interval corresponding to the specified interval range value from the request interval-interval range value mapping table;
the determining module further comprises:
and the second storage unit is used for storing the specified request interval to a block chain of a block chain system.
In this embodiment, the implementation processes of the functions and functions of the fourth obtaining unit, the screening unit, the extracting unit, and the second storing unit in the terminal-based page refreshing apparatus are specifically described in the implementation processes corresponding to steps S300 to S303 in the terminal-based page refreshing method, and are not described herein again.
Further, in an embodiment of the present application, the terminal-based page refreshing apparatus includes:
the starting module is used for starting a preset daemon thread;
the polling module is used for polling the real-time running data of the mobile terminal according to a preset time interval through the daemon thread to obtain a corresponding polling result;
and the adjusting module is used for adjusting the specified request interval corresponding to the polling result according to the polling result.
In this embodiment, the implementation process of the functions and functions of the starting module, the polling module, and the adjusting module in the terminal-based page refreshing apparatus is specifically described in the implementation process corresponding to steps S310 to S312 in the terminal-based page refreshing method, and is not described herein again.
Further, in an embodiment of the present application, the real-time operation data includes a remaining available memory value, and the adjusting module includes:
the first judging unit is used for judging whether the residual available memory value is smaller than a preset memory threshold value or not according to the polling result;
the first processing unit is used for performing first degradation processing on the specified request interval to obtain an updated first request interval if the remaining available memory value is judged to be smaller than a preset memory threshold value;
and the second processing unit is used for limiting the change of the specified request interval if the remaining available memory value is judged to be not less than the preset memory threshold value.
In this embodiment, the implementation processes of the functions and actions of the first determining unit, the first processing unit, and the second processing unit in the terminal-based page refreshing apparatus are specifically described in the implementation processes corresponding to steps S3120 to S3122 in the terminal-based page refreshing method, and are not described herein again.
Further, in an embodiment of the present application, the real-time operation data includes a remaining available power value, and the adjusting module includes:
the second judgment unit is used for judging whether the remaining available electric quantity value is smaller than a preset electric quantity threshold value;
the third processing unit is used for performing second degradation processing on the specified request interval to obtain an updated second request interval if the remaining available electric quantity value is judged to be smaller than a preset electric quantity threshold;
and the fourth processing unit is used for limiting the change of the specified request interval if the remaining available electric quantity value is judged to be not less than a preset electric quantity threshold value.
In this embodiment, the implementation processes of the functions and functions of the second determining unit, the third processing unit, and the fourth processing unit in the terminal-based page refreshing apparatus are specifically described in the implementation processes corresponding to steps S3123 to S3125 in the terminal-based page refreshing method, and are not described herein again.
Further, in an embodiment of the present application, the processing module includes:
a third judging unit, configured to judge whether the first difference is smaller than the refresh threshold;
the first rendering unit is used for rendering the target page by adopting the page refreshing data if the first difference is judged to be not smaller than the refreshing threshold value so as to finish the page refreshing processing of the target page;
the second calculating unit is used for calculating a second difference obtained by subtracting the first difference from the refresh threshold if the first difference is judged to be smaller than the refresh threshold;
and the second rendering unit is used for rendering the target page by adopting the page refreshing data after a second time corresponding to the second difference value so as to finish the page refreshing processing of the target page.
In this embodiment, the implementation processes of the functions and functions of the third determining unit, the first rendering unit, the second calculating unit, and the second rendering unit in the terminal-based page refreshing apparatus are specifically described in the implementation processes corresponding to steps S700 to S703 in the terminal-based page refreshing method, and are not described herein again.
Referring to fig. 3, a computer device, which may be a server and whose internal structure may be as shown in fig. 3, is also provided in the embodiment of the present application. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is designed to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing device scores, specified request intervals, page refresh data, first difference values and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a terminal-based page refresh method.
The processor executes the page refreshing method based on the terminal, and comprises the following steps:
receiving a page refreshing command for a target page triggered by a user;
acquiring a device score corresponding to the mobile terminal according to the page refreshing command;
determining a specified request interval corresponding to the mobile terminal according to the equipment score;
after the first time corresponding to the specified request interval passes, sending a page refreshing request corresponding to the page refreshing command to a server;
receiving page refreshing data corresponding to the page refreshing request returned by the server;
acquiring adjacent last page refreshing time and current time, and calculating a first difference obtained by subtracting the last page refreshing time from the current time;
and executing page refreshing processing corresponding to the page refreshing data on the target page according to a preset rule and a preset refreshing threshold value.
Those skilled in the art will appreciate that the structure shown in fig. 3 is only a block diagram of a part of the structure related to the present application, and does not constitute a limitation to the apparatus and the computer device to which the present application is applied.
An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the method for refreshing a page based on a terminal is implemented, specifically:
receiving a page refreshing command for a target page triggered by a user;
acquiring a device score corresponding to the mobile terminal according to the page refreshing command;
determining a specified request interval corresponding to the mobile terminal according to the equipment score;
after the first time corresponding to the specified request interval passes, sending a page refreshing request corresponding to the page refreshing command to a server;
receiving page refreshing data corresponding to the page refreshing request returned by the server;
acquiring adjacent last page refreshing time and current time, and calculating a first difference obtained by subtracting the last page refreshing time from the current time;
and executing page refreshing processing corresponding to the page refreshing data on the target page according to a preset rule and a preset refreshing threshold value.
To sum up, the terminal-based page refreshing method, device, computer device and storage medium provided in the embodiments of the present application receive a page refreshing command for a target page triggered by a user; acquiring a device score corresponding to the mobile terminal according to the page refreshing command; determining a specified request interval corresponding to the mobile terminal according to the equipment score; after the first time corresponding to the specified request interval passes, sending a page refreshing request corresponding to the page refreshing command to a server; receiving page refreshing data corresponding to the page refreshing request returned by the server; acquiring adjacent last page refreshing time and current time, and calculating a first difference obtained by subtracting the last page refreshing time from the current time; and executing page refreshing processing corresponding to the page refreshing data on the target page according to a preset rule and a preset refreshing threshold value. According to the method and the device for processing the page refreshing, when a user has a page refreshing demand for a target page in the mobile terminal, the mobile terminal can dynamically acquire the specified request interval corresponding to the device performance according to the device performance condition of the user, and then intelligently determines the page refreshing processing mode suitable for the target page according to the specified request interval, so that the target page can be rapidly refreshed, smooth operation of the mobile terminal can be guaranteed, and the user experience is effectively improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by hardware associated with instructions of a computer program, which may be stored on a non-volatile computer-readable storage medium, and when executed, may include processes of the above embodiments of the methods. Any reference to memory, storage, database, or other medium provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
Further, the computer usable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
The block chain underlying platform can comprise processing modules such as user management, basic service, intelligent contract and operation monitoring. The user management module is responsible for identity information management of all blockchain participants, and comprises public and private key generation maintenance (account management), key management, user real identity and blockchain address corresponding relation maintenance (authority management) and the like, and under the authorization condition, the user management module supervises and audits the transaction condition of certain real identities and provides rule configuration (wind control audit) of risk control; the basic service module is deployed on all block chain node equipment and used for verifying the validity of the service request, recording the service request to storage after consensus on the valid request is completed, for a new service request, the basic service firstly performs interface adaptation analysis and authentication processing (interface adaptation), then encrypts service information (consensus management) through a consensus algorithm, transmits the service information to a shared account (network communication) completely and consistently after encryption, and performs recording and storage; the intelligent contract module is responsible for registering and issuing contracts, triggering the contracts and executing the contracts, developers can define contract logics through a certain programming language, issue the contract logics to a block chain (contract registration), call keys or other event triggering and executing according to the logics of contract clauses, complete the contract logics and simultaneously provide the function of upgrading and canceling the contracts; the operation monitoring module is mainly responsible for deployment, configuration modification, contract setting, cloud adaptation in the product release process and visual output of real-time states in product operation, such as: alarm, monitoring network conditions, monitoring node equipment health status, and the like.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A page refreshing method based on a terminal is characterized in that the method is applied to a mobile terminal and comprises the following steps:
receiving a page refreshing command for a target page triggered by a user;
acquiring a device score corresponding to the mobile terminal according to the page refreshing command;
determining a specified request interval corresponding to the mobile terminal according to the equipment score;
after the first time corresponding to the specified request interval passes, sending a page refreshing request corresponding to the page refreshing command to a server;
receiving page refreshing data corresponding to the page refreshing request returned by the server;
acquiring adjacent last page refreshing time and current time, and calculating a first difference obtained by subtracting the last page refreshing time from the current time;
and executing page refreshing processing corresponding to the page refreshing data on the target page according to a preset rule and a preset refreshing threshold value.
2. The terminal-based page refreshing method according to claim 1, wherein the step of obtaining the device score corresponding to the mobile terminal according to the page refreshing command comprises:
acquiring running configuration data corresponding to the mobile terminal according to the page refreshing command, wherein the running configuration data at least comprises a running memory, an operating system version and CPU performance;
acquiring cardinality corresponding to each running configuration data; and the number of the first and second groups,
acquiring weight values corresponding to the operation configuration data respectively;
carrying out weighted summation processing on the cardinal number and the weighted value, and calculating a device score corresponding to the mobile terminal;
after the step of performing weighted summation processing on the cardinality and the weight value and calculating the device score corresponding to the mobile terminal, the method comprises the following steps:
storing the device score onto a blockchain of a blockchain system.
3. The terminal-based page refresh method of claim 1, wherein said step of determining a specified request interval corresponding to said mobile terminal based on said device score comprises:
acquiring a preset request interval-interval range value mapping table;
according to the equipment score, screening out a specified interval range value corresponding to the equipment score from the request interval-interval range value mapping table;
according to the specified interval range value, extracting a specified request interval corresponding to the specified interval range value from the request interval-interval range value mapping table;
after the step of extracting the specified request interval corresponding to the specified interval range value from the request interval-interval range value mapping table according to the specified interval range value, the method includes:
and storing the specified request interval to a block chain of a block chain system.
4. The terminal-based page refresh method of claim 1, wherein said step of determining a specified request interval corresponding to said mobile terminal based on said device score comprises, after said step of determining a specified request interval corresponding to said mobile terminal based on said device score:
starting a preset daemon thread;
polling the real-time running data of the mobile terminal according to a preset time interval through the daemon thread to obtain a corresponding polling result;
and adjusting the specified request interval corresponding to the polling result according to the polling result.
5. The terminal-based page refreshing method according to claim 4, wherein the real-time operation data includes a remaining available memory value, and the step of adjusting the specified request interval according to the polling result, which corresponds to the polling result, includes:
judging whether the remaining available memory value is smaller than a preset memory threshold value or not according to the polling result;
if the remaining available memory value is smaller than the preset memory threshold value, performing first degradation processing on the specified request interval to obtain an updated first request interval;
and if the remaining available memory value is judged to be not less than the preset memory threshold value, the specified request interval is limited to be changed.
6. The terminal-based page refreshing method according to claim 4, wherein the real-time operation data includes a remaining available electric quantity value, and the step of adjusting the specified request interval according to the polling result, which corresponds to the polling result, includes:
judging whether the remaining available electric quantity value is smaller than a preset electric quantity threshold value or not;
if the remaining available electric quantity value is smaller than a preset electric quantity threshold value, performing second degradation processing on the specified request interval to obtain an updated second request interval;
and if the remaining available electric quantity value is judged to be not smaller than a preset electric quantity threshold value, the specified request interval is limited to be changed.
7. The terminal-based page refreshing method according to claim 1, wherein the step of performing page refreshing processing corresponding to the page refreshing data on the target page according to a preset rule according to the first difference and a preset refreshing threshold includes:
judging whether the first difference value is smaller than the refresh threshold value;
if the first difference is judged to be not smaller than the refresh threshold, rendering the target page by adopting the page refresh data so as to finish page refresh processing on the target page;
if the first difference is smaller than the refresh threshold, calculating a second difference obtained by subtracting the first difference from the refresh threshold;
and after a second time corresponding to the second difference value, rendering the target page by using the page refreshing data so as to finish the page refreshing processing of the target page.
8. A page refreshing device based on a terminal is characterized in that the page refreshing device is applied to a mobile terminal and comprises:
the first receiving module is used for receiving a page refreshing command for a target page, wherein the page refreshing command is triggered by a user;
the first acquisition module is used for acquiring the equipment score corresponding to the mobile terminal according to the page refreshing command;
the determining module is used for determining a specified request interval corresponding to the mobile terminal according to the equipment score;
a sending module, configured to send, to a server, a page refresh request corresponding to the page refresh command after a first time corresponding to the specified request interval elapses;
the second receiving module is used for receiving page refreshing data which is returned by the server and corresponds to the page refreshing request;
the calculating module is used for acquiring adjacent last page refreshing time and current time, and calculating a first difference value obtained by subtracting the last page refreshing time from the current time;
and the processing module is used for executing page refreshing processing corresponding to the page refreshing data on the target page according to the first difference and a preset refreshing threshold and a preset rule.
9. A computer device comprising a memory and a processor, the memory having stored therein a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method according to any one of claims 1 to 7.
10. A storage medium having a computer program stored thereon, the computer program, when being executed by a processor, realizing the steps of the method of any one of claims 1 to 7.
CN202011609550.5A 2020-12-30 2020-12-30 Terminal-based page refreshing method and device, computer equipment and storage medium Active CN112632432B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011609550.5A CN112632432B (en) 2020-12-30 2020-12-30 Terminal-based page refreshing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011609550.5A CN112632432B (en) 2020-12-30 2020-12-30 Terminal-based page refreshing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112632432A true CN112632432A (en) 2021-04-09
CN112632432B CN112632432B (en) 2023-07-18

Family

ID=75286613

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011609550.5A Active CN112632432B (en) 2020-12-30 2020-12-30 Terminal-based page refreshing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112632432B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113688146A (en) * 2021-08-23 2021-11-23 猪八戒股份有限公司 Distributed architecture high-concurrency order search engine data refreshing method and system
CN114943516A (en) * 2022-05-27 2022-08-26 深圳市君润众乐企业管理咨询有限公司 Method, system, device and storage medium for establishing electronic resume database of enterprise talents

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010132491A2 (en) * 2009-05-11 2010-11-18 Boopsie, Inc. Dynamic menus for multi-prefix interactive mobile searches using predictive text to yield targeted advertisements
CN101894136A (en) * 2010-06-13 2010-11-24 优视科技有限公司 Page refreshing processing method based on mobile terminal and system thereof
US20120110109A1 (en) * 2010-11-01 2012-05-03 Michael Luna Caching adapted for mobile application behavior and network conditions
CN103488735A (en) * 2013-09-17 2014-01-01 深圳Tcl新技术有限公司 Method and terminal for refreshing and displaying pages of terminal browser
CN104035875A (en) * 2014-06-30 2014-09-10 北京安兔兔科技有限公司 Method, system and terminal equipment for testing performance of browser and performance testing method of terminal equipment
CN106528247A (en) * 2016-11-30 2017-03-22 北京小米移动软件有限公司 Data refreshing method and device
CN109639413A (en) * 2018-12-10 2019-04-16 四川大学 A kind of block catenary system based on mobile ad hoc network
US10356387B1 (en) * 2018-07-26 2019-07-16 Telefonaktiebolaget Lm Ericsson (Publ) Bookmarking system and method in 360° immersive video based on gaze vector information
CN110472168A (en) * 2019-07-05 2019-11-19 中国平安财产保险股份有限公司 Page data update method, device, computer equipment and storage medium
CN112149024A (en) * 2020-10-16 2020-12-29 深圳创维-Rgb电子有限公司 Self-adaptive configuration method, device, equipment and storage medium for homepage

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010132491A2 (en) * 2009-05-11 2010-11-18 Boopsie, Inc. Dynamic menus for multi-prefix interactive mobile searches using predictive text to yield targeted advertisements
CN101894136A (en) * 2010-06-13 2010-11-24 优视科技有限公司 Page refreshing processing method based on mobile terminal and system thereof
US20120110109A1 (en) * 2010-11-01 2012-05-03 Michael Luna Caching adapted for mobile application behavior and network conditions
CN103488735A (en) * 2013-09-17 2014-01-01 深圳Tcl新技术有限公司 Method and terminal for refreshing and displaying pages of terminal browser
CN104035875A (en) * 2014-06-30 2014-09-10 北京安兔兔科技有限公司 Method, system and terminal equipment for testing performance of browser and performance testing method of terminal equipment
CN106528247A (en) * 2016-11-30 2017-03-22 北京小米移动软件有限公司 Data refreshing method and device
US10356387B1 (en) * 2018-07-26 2019-07-16 Telefonaktiebolaget Lm Ericsson (Publ) Bookmarking system and method in 360° immersive video based on gaze vector information
CN109639413A (en) * 2018-12-10 2019-04-16 四川大学 A kind of block catenary system based on mobile ad hoc network
CN110472168A (en) * 2019-07-05 2019-11-19 中国平安财产保险股份有限公司 Page data update method, device, computer equipment and storage medium
CN112149024A (en) * 2020-10-16 2020-12-29 深圳创维-Rgb电子有限公司 Self-adaptive configuration method, device, equipment and storage medium for homepage

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113688146A (en) * 2021-08-23 2021-11-23 猪八戒股份有限公司 Distributed architecture high-concurrency order search engine data refreshing method and system
CN114943516A (en) * 2022-05-27 2022-08-26 深圳市君润众乐企业管理咨询有限公司 Method, system, device and storage medium for establishing electronic resume database of enterprise talents

Also Published As

Publication number Publication date
CN112632432B (en) 2023-07-18

Similar Documents

Publication Publication Date Title
CN102685089B (en) For method and the client devices of the credible equipment statement of enterprise's application
CN112632432A (en) Page refreshing method and device based on terminal, computer equipment and storage medium
CN112540811B (en) Cache data detection method and device, computer equipment and storage medium
CN113326081A (en) Static resource processing method and device, computer equipment and storage medium
CN112464117A (en) Request processing method and device, computer equipment and storage medium
CN109271917B (en) Face recognition method and device, computer equipment and readable storage medium
CN112613067A (en) User behavior data acquisition method and device, computer equipment and storage medium
CN112668041A (en) Document file generation method and device, computer equipment and storage medium
CN113742776A (en) Data verification method and device based on biological recognition technology and computer equipment
CN111986794A (en) Anti-counterfeiting registration method and device based on face recognition, computer equipment and medium
CN114070583A (en) Information access control method, information access control device, computer equipment and medium
CN114840387A (en) Micro-service monitoring method and device, computer equipment and storage medium
CN110597719B (en) Image clustering method, device and medium for adaptation test
CN110866011B (en) Data table synchronization method and device, computer equipment and storage medium
CN112181569A (en) Page personalized display method and device, computer equipment and storage medium
CN117056198A (en) Mock test method, mock test device, medium and computer equipment
CN112650659B (en) Buried point setting method and device, computer equipment and storage medium
CN116343976A (en) Medical data real-time desensitization method, device, computer equipment and storage medium
CN114399361A (en) Service request processing method and device, computer equipment and storage medium
CN114371969A (en) Page performance testing method and device, electronic equipment and storage medium
CN114924783A (en) Interface calling method, device, equipment and storage medium of application program
CN110990465A (en) Data export method and device, electronic equipment and storage medium
CN116723002B (en) Intelligent encryption method for power report based on situation awareness
CN112231367B (en) Business processing method and device based on artificial intelligence and electronic equipment
CN111327513B (en) Message data pushing method and device, computer equipment and storage medium

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