CN111427648A - Page resource updating method and device, electronic equipment, server and storage medium - Google Patents

Page resource updating method and device, electronic equipment, server and storage medium Download PDF

Info

Publication number
CN111427648A
CN111427648A CN202010209875.8A CN202010209875A CN111427648A CN 111427648 A CN111427648 A CN 111427648A CN 202010209875 A CN202010209875 A CN 202010209875A CN 111427648 A CN111427648 A CN 111427648A
Authority
CN
China
Prior art keywords
page
page resource
update
resource
server
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.)
Pending
Application number
CN202010209875.8A
Other languages
Chinese (zh)
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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202010209875.8A priority Critical patent/CN111427648A/en
Publication of CN111427648A publication Critical patent/CN111427648A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure provides a page resource updating method and device, electronic equipment, a server and a storage medium. The method comprises the following steps: sending an update request message to a server, wherein the update request message is used for requesting to update the page resource of the first application program; receiving an update response message sent by a server, wherein the update response message comprises a target page resource, the target page resource is a page resource meeting a first condition in first page resources, and the first page resource is a page resource of a first application program stored by the server; the first condition includes at least one of: page resources of the first N pages, which are arranged from large to small in page access times, and page resources of pages accessed within a preset time period, wherein N is a positive integer; and updating a second page resource to be a target page resource, wherein the second page resource is a page resource of a first application program stored in the electronic equipment, and the second page resource and the first page resource are page resources of different versions.

Description

Page resource updating method and device, electronic equipment, server and storage medium
Technical Field
The present disclosure relates to the field of network technologies, and in particular, to a method and an apparatus for updating a page resource, an electronic device, a server, and a storage medium.
Background
When a user accesses the pages through the electronic device, the electronic device may request page resources from a server or directly obtain locally cached page resources, and in the case that the server has a new version of page resources, the electronic device may update the local page resources by using the new version of page resources.
Specifically, under the condition that a user triggers the electronic device to operate a certain APP, the electronic device may request the server for a new cache package version number corresponding to a page resource of the APP, compare the version number with a local cache package version number, and if the version numbers are not consistent, the electronic device requests the server for a new cache package and replaces the local cache package with the new cache package. Therefore, when the user accesses the page of the APP through the electronic device, the latest page resource can be directly read from the local cache package.
However, the new cache packet generally includes resources of all pages of the APP, and in the process of issuing the new cache packet to the electronic device, the storage space occupied by the updated resources is large, the download time is long, and the consumed traffic is large.
Disclosure of Invention
The present disclosure provides a page resource updating method, device, electronic device, server and storage medium, so as to at least solve the problems of large occupied storage space, long download time and large consumption flow of resources in the existing page resource updating process.
The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a page resource updating method applied to an electronic device, the page resource updating method including:
sending an update request message to a server, wherein the update request message is used for requesting to update the page resource of the first application program;
receiving an update response message sent by the server, wherein the update response message comprises a target page resource, the target page resource is a page resource meeting a first condition in first page resources, and the first page resource is a page resource of the first application program stored by the server; the first condition includes at least one of: page resources of the first N pages, which are arranged from large to small in page access times, and page resources of pages accessed within a preset time period, wherein N is a positive integer;
updating a second page resource to the target page resource, where the second page resource is a page resource of the first application stored in the electronic device, and the second page resource and the first page resource are page resources of different versions.
Optionally, before sending the update request message to the server, the page resource updating method further includes:
and starting the first application program.
Optionally, after the first application is started, the page resource updating method further includes:
generating an update prompting instruction and displaying the update prompting instruction, wherein the update prompting instruction is used for prompting whether to update the page resource of the first application program;
acquiring a first operation instruction of the user for the update prompt instruction, wherein the first operation instruction is used for indicating to update the page resource of the first application program;
the sending of the update request message to the server includes:
and sending the updating request message to the server according to the first operation instruction.
Optionally, after the first application program is started and before the update prompt instruction is generated, the page resource updating method further includes:
acquiring a first time length, wherein the first time length is a time length between a first time and a second time, the first time is a time when the electronic equipment updates the page resource of the first application program last time, and the second time is a time when the electronic equipment starts the first application program;
the generating of the update prompt instruction includes:
and generating the update prompt instruction under the condition that the first duration is greater than or equal to a preset update period.
Optionally, the sum of the memory spaces occupied by the page resources of the first N pages is less than or equal to a first preset threshold.
Optionally, after the second page resource is updated to the target page resource, the page resource updating method further includes:
acquiring a second operation instruction of a user, wherein the second operation instruction is used for triggering access to a first target page in the first application program;
and acquiring the page resource of the first target page from the target page resource stored in the electronic equipment according to the second operation instruction.
Optionally, the page resource updating method further includes:
acquiring a third operation instruction of a user, wherein the third operation instruction is used for triggering access to a second target page in the first application program;
and sending page access information to the server according to the third operation instruction, wherein the page access information comprises the identifier of the electronic equipment and the identifier of the second target page.
According to a second aspect of the embodiments of the present disclosure, there is provided a page resource updating method applied to a server, the page resource updating method including:
receiving an update request message sent by electronic equipment, wherein the update request message is used for requesting to update page resources of a first application program;
determining a target page resource meeting a first condition from first page resources, wherein the first page resource is a page resource of the first application program stored by the server; the first condition includes at least one of: page resources of the first N pages, which are arranged from large to small in page access times, and page resources of pages accessed within a preset time period, wherein N is a positive integer;
and sending an update response message to the electronic equipment, wherein the update response message comprises the target page resource.
Optionally, the update request message includes a first version number, where the first version number is a version number of a page resource of the first application program stored in the electronic device;
the determining, from the first page resources, a target page resource satisfying a first condition includes:
under the condition that a second condition is met, determining the target page resource meeting the first condition from the first page resources;
wherein the second condition is any one of: the first version number is null, and the first version number is smaller than the version number of the first page resource.
Optionally, the sum of the memory spaces occupied by the page resources of the first N pages is less than or equal to a first preset threshold.
Optionally, the page resource updating method further includes:
receiving page access information sent by the electronic equipment, wherein the page access information comprises an identifier of the electronic equipment and an identifier of a target page, and the target page is a page in the first application program currently accessed by the electronic equipment;
and recording the access times of the electronic equipment for accessing the target page according to the identification of the electronic equipment and the identification of the target page.
According to a third aspect of the embodiments of the present disclosure, there is provided a page resource updating apparatus, applied to an electronic device, where the page resource updating apparatus includes a first sending module, a first receiving module, and a first processing module;
the first sending module is configured to execute sending an update request message to a server, wherein the update request message is used for requesting to update the page resource of the first application program;
the first receiving module is configured to receive an update response message sent by a server after the first sending module sends an update request message to the server, where the update response message includes a target page resource, where the target page resource is a page resource that meets a first condition in first page resources, and the first page resource is a page resource of the first application stored by the server; the first condition includes at least one of: page resources of the first N pages, which are arranged from large to small in page access times, and page resources of pages accessed within a preset time period, wherein N is a positive integer;
the first processing module is configured to update a second page resource to the target page resource received by the first receiving module, where the second page resource is a page resource of the first application stored in the electronic device, and the second page resource and the first page resource are page resources of different versions.
In one possible implementation, the first processing module is further configured to execute the launching of the first application before the first sending module sends the update request message to the server.
In a possible implementation manner, the first processing module is further configured to generate an update prompting instruction after the first application program is started, and display the update prompting instruction, where the update prompting instruction is used for prompting whether to update a page resource of the first application program;
the first receiving module is further configured to execute a first operation instruction for acquiring the update prompt instruction generated by the first processing module by the user, wherein the first operation instruction is used for indicating to update the page resource of the first application program;
the first sending module is specifically configured to execute sending the update request message to the server according to the first operation instruction obtained by the first receiving module.
In a possible implementation manner, the first receiving module is further configured to execute, after the first processing module starts the first application program and before an update prompt instruction is generated, acquiring a first time length, where the first time length is a time length between a first time and a second time, the first time length is a time length when the electronic device updates the page resource of the first application program last time, and the second time length is a time length when the electronic device starts the first application program;
the first processing module is specifically configured to execute generating the update prompting instruction when the first duration is greater than or equal to a preset update period.
In one possible implementation manner, the sum of the memory spaces occupied by the page resources of the first N pages is less than or equal to a first preset threshold.
In a possible implementation manner, the first receiving module is further configured to execute, after the first processing module updates the second page resource to the target page resource, acquiring a second operation instruction of the user, where the second operation instruction is used to trigger access to the first target page in the first application; and acquiring the page resource of the first target page from the target page resource stored in the electronic equipment according to the second operation instruction.
In a possible implementation manner, the first receiving module is further configured to execute a third operation instruction of the obtaining user, where the third operation instruction is used to trigger access to a second target page in the first application program;
the first sending module is further configured to execute the third operation instruction obtained by the first receiving module, and send page access information to the server, where the page access information includes an identifier of the electronic device and an identifier of the second target page.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a page resource updating apparatus, which is applied to a server, and includes a second receiving module, a second processing module, and a second sending module;
the second receiving module is configured to execute receiving of an update request message sent by the electronic device, where the update request message is used for requesting to update a page resource of the first application program;
the second processing module is configured to execute determining, according to the update request message received by the second receiving module, a target page resource satisfying a first condition from first page resources, where the first page resource is a page resource of the first application stored by the server; the first condition includes at least one of: page resources of the first N pages, which are arranged from large to small in page access times, and page resources of pages accessed within a preset time period, wherein N is a positive integer;
the second sending module is configured to execute sending of an update response message to the electronic device, where the update response message includes the target page resource determined by the second processing module.
In a possible implementation manner, the update request message includes a first version number, where the first version number is a version number of a page resource of the first application stored in the electronic device;
the second processing module is specifically configured to determine, from the first page resources, the target page resources satisfying a first condition if the second condition is satisfied;
wherein the second condition is any one of: the first version number is null, and the first version number is smaller than the version number of the first page resource.
In one possible implementation manner, the sum of the memory spaces occupied by the page resources of the first N pages is less than or equal to a first preset threshold.
In a possible implementation manner, the second receiving module is further configured to perform receiving page access information sent by the electronic device, where the page access information includes an identifier of the electronic device and an identifier of a target page, and the target page is a page in the first application program currently accessed by the electronic device;
the second processing module is further configured to record the access times of the electronic device for accessing the target page according to the identifier of the electronic device and the identifier of the target page.
According to a fifth aspect of embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute instructions to implement the page resource updating method as described in the first aspect above or any one of the possible implementations of the first aspect.
According to a sixth aspect of embodiments of the present disclosure, there is provided a server including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute instructions to implement the page resource updating method according to the second aspect or any possible implementation manner of the second aspect.
According to a seventh aspect of the embodiments of the present disclosure, a storage medium is provided, where instructions of the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the page resource updating method according to the first aspect or any one of the possible implementations of the first aspect, or any one of the possible implementations of the second aspect or the second aspect.
According to an eighth aspect of embodiments of the present disclosure, there is provided a computer program product, wherein instructions of the computer program product, when executed by a processor of an electronic device, enable the electronic device to perform the page resource updating method according to the first aspect or any one of the possible implementations of the first aspect, or any one of the possible implementations of the second aspect or the second aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
through the scheme, the server can determine which page resources need to be cached or updated according to the times of the user accessing each page, or determine which page resources need to be cached or updated according to the pages accessed by the user in the latest period of time, and then the server can issue a part of page resources to the electronic equipment, so that the electronic equipment does not need to completely cache or update all the page resources of the application program, and only needs to cache or update the page resources meeting the use requirements of the user. Therefore, the method and the device for updating the page resources can reduce the request time of the page resources, reduce the occupied size of the page resources, save the data traffic of users and reduce the updating times of the page resources.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a schematic diagram illustrating an implementation environment of a page resource updating method according to an exemplary embodiment.
FIG. 2 is one of the flow diagrams illustrating a method for page resource update according to an example embodiment.
Fig. 3 is a second flowchart illustrating a page resource updating method according to an exemplary embodiment.
Fig. 4 is a third flowchart illustrating a page resource updating method according to an exemplary embodiment.
FIG. 5 is a fourth flowchart illustrating a page resource update method according to an example embodiment.
FIG. 6 is a flow diagram illustrating another method for page resource update in accordance with an exemplary embodiment.
Fig. 7 is a block diagram illustrating a page resource updating apparatus according to an example embodiment.
Fig. 8 is a block diagram illustrating another page resource updating apparatus according to an example embodiment.
Fig. 9 is a schematic structural diagram of an electronic device according to an exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is an architecture diagram illustrating an implementation environment in which the following page resource update method may be applied, as shown in fig. 1, according to an example embodiment. The implementation environment includes an electronic device 01 and a server 02. Wherein, the electronic device 01 and the server 02 may be interconnected and communicate through a network.
The electronic device 01 may run a first application (denoted as APP1), and the APP1 has a function of displaying a web page. Under the condition that a user accesses a page of the APP1 through the electronic device 01, the electronic device 01 can acquire a page resource of the APP1 from the server 02 and display a web page by adopting the page resource; alternatively, the electronic device 01 may display the web page using a locally stored page resource.
The electronic device 01 may be any electronic product that can interact with a user through one or more modes, such as a keyboard, a touch pad, a touch screen, a remote controller, a voice interaction device, or a handwriting device, for example, a mobile phone, a tablet Computer, a palm Computer, a Personal Computer (PC), a wearable device, a smart television, and the like.
The server 02 may be one server, a server cluster composed of a plurality of servers, or a cloud computing service center. The server 02 may include a processor, memory, and a network interface, among others.
It will be understood by those skilled in the art that the foregoing electronic devices and servers are merely exemplary and that other existing or future electronic devices or servers may be suitable for use with the present disclosure and are intended to be included within the scope of the present disclosure and are hereby incorporated by reference.
The execution subject of the page resource updating method provided in the embodiment of the present invention may be the electronic device, or may also be a functional module and/or a functional entity capable of implementing the page resource updating method in the electronic device, which may be specifically determined according to actual use requirements, and the embodiment of the present invention is not limited. The following takes an electronic device as an example, and an exemplary description is given, with reference to each drawing, of a page resource updating method provided in an embodiment of the present invention.
Fig. 2 is a flowchart illustrating a page resource updating method applied to an electronic device according to an exemplary embodiment, where the page resource updating method includes steps S21-S23 described below, as shown in fig. 2.
In step S21, the electronic device transmits an update request message for requesting an update of the page resource of the first application to the server.
The first application program is an application program installed or operated in the electronic equipment.
In the embodiment of the disclosure, when a user accesses a page of a first application program through electronic equipment, the electronic equipment may request a server for a corresponding page resource or directly acquire a locally cached corresponding page resource, and implement page rendering and page display by using the acquired page resource. And under the condition that the server has the page resource with the new version, the electronic equipment can request the server to issue the page resource with the new version, and further can update the locally cached page resource.
Optionally, the electronic device may send an update request message to the server in response to a trigger operation of the user; the update request message may also be automatically sent to the server periodically. The method can be determined according to actual use requirements, and the embodiment of the disclosure is not limited.
It should be noted that, in the case that the electronic device stores the page resource of the first application, the electronic device may send an update request message to the server, and request the server to issue the latest page resource of the first application: on one hand, if the server stores the page resource of the new version, the server issues the page resource of the new version to the electronic equipment; on the other hand, if the server stores the page resources of the same version, the server does not need to issue the page resources to the electronic device. Alternatively, in a case that the electronic device does not store the page resource of the first application (for example, due to page cleaning or software cleaning), the electronic device may also send an update request message to the server to request the server to issue the latest page resource of the first application.
Optionally, in this embodiment of the present disclosure, the page resource may include at least one of the following: webpage resources, style resources, code resources. It should be noted that these page resources are merely exemplary lists, and it is understood that the page resources may also include any other resources that meet the actual usage requirements. The method can be determined according to actual use requirements, and the embodiment of the disclosure is not limited.
In this disclosure, the first application program may be a browser application, or may be any other application that meets an actual use requirement, and this is not limited in this disclosure.
In step S22, the electronic device receives an update response message sent by the server, where the update response message includes a target page resource, and the target page resource is a page resource that meets a first condition in the first page resources; the first condition includes at least one of: the page resources of the first N pages are arranged from large to small, and the page resources of the pages are accessed within a preset time period.
The first page resource is a page resource of a first application program stored by the server. The first page resource may be a page resource of all pages of the first application.
Several possible implementations of the target page resource being a page resource of the first page resources that satisfies the first condition are exemplarily described below.
In one possible implementation manner, the target page resource may be a page resource of the first N pages of the first page resource, where the page access times are arranged from large to small.
In another possible implementation manner, the target page resource may be a page resource of a page accessed within a preset time period in the first page resource.
In another possible implementation manner, the target page resource may be a page resource of the first N pages that are accessed within a preset time period and have page access times arranged from large to small in the first page resource.
In another possible implementation manner, the target page resource may be a page resource of the first N pages in the first page resource, where the page access times are arranged from large to small.
In another possible implementation manner, the target page resource may be a page resource of the first N pages that are accessed within a preset time period and have page access times arranged from large to small in the first page resource.
Optionally, the preset time period may be a default time period of the system, or a user-defined time period.
For example, the preset time period may be 5 days, that is, the page resource of the page accessed by the user in the last 5 days may be the page resource issued to the electronic device.
Optionally, the sum of the memory spaces occupied by the page resources of the first N pages is less than or equal to a first preset threshold. The first preset threshold may be a suitable value smaller than the first page resource occupation space, and may be specifically determined according to an actual use requirement, which is not limited in the embodiment of the present disclosure.
For example, assuming that the first preset threshold is 5 megabits (M), the target page resource may be a page resource of the first N pages with page access times ranging from large to small, and the sum of the memory spaces occupied by the page resources of the first N pages (also referred to as total page resource occupancy) needs to be less than or equal to 5M.
Optionally, N may be a preset positive integer, for example, N is 20, that is, the server may determine, as the target page resource issued to the electronic device, the page resources of the first 20 pages of the first page resources, where the page access times are arranged from large to small. That is, the server may issue page resources of some pages frequently visited by the user to the electronic device.
Alternatively, N may be a positive integer determined according to the first preset threshold, for example, if the sum of the memory spaces occupied by the page resources of the first 10 pages in the first page resources is less than or equal to the first preset threshold, then N is 10. The server may determine, as the target page resource to be delivered to the electronic device, the page resources of the first 10 pages of the first page resources, where the page access times are arranged from large to small. That is to say, the server may issue the page resources of the pages that are frequently visited by the user and whose total page resource occupancy does not exceed the limit value, to the electronic device.
It should be noted that the page access times may be page access times obtained by recording page access times for a user from when the electronic device first runs the first application; or the number of page accesses obtained by the user for accessing the page record can be recorded for the electronic device starting to update the page resource for the last time. The method can be determined according to actual use requirements, and the embodiment of the disclosure is not limited. The page access times may be obtained through statistics by the electronic device or through statistics by the server, which is not limited in the embodiment of the present disclosure.
In step S23, the electronic device updates the second page resource to the target page resource.
The second page resource is a page resource of a first application program stored in the electronic device, and the second page resource and the first page resource are page resources of different versions.
In the embodiment of the present disclosure, the target page resource may be stored in the electronic device in the form of a resource cache packet. Also, the target page resource may be stored in a field (or storage space) in the electronic device corresponding to the first application.
It should be noted that, the updating of the second page resource to the target page resource by the electronic device may include the following two cases:
in the first case: the page field (or storage space) corresponding to the first application program in the electronic device stores the second page resource, and at this time, the electronic device can replace the second page resource with the target page resource issued by the server, so that the second page resource is updated to the target page resource.
In the second case: the content of the page field corresponding to the first application program in the electronic equipment is empty, that is, the second page resource does not exist or is cleaned, and at the moment, the electronic equipment stores the target page resource issued by the server into the page field corresponding to the first application program in the electronic equipment, so that the second page resource is updated to the target page resource.
Through the scheme, the server can determine which page resources need to be cached or updated according to the times of the user accessing each page, or determine which page resources need to be cached or updated according to the pages accessed by the user in the latest period of time, and then the server can issue a part of page resources to the electronic equipment, so that the electronic equipment does not need to completely cache or update all the page resources of the application program, and only needs to cache or update the page resources meeting the use requirements of the user. Therefore, the method and the device for updating the page resources can reduce the request time of the page resources, reduce the occupied size of the page resources, save the data traffic of users and reduce the updating times of the page resources.
Optionally, in this embodiment of the present disclosure, after the user triggers the electronic device to start the first application, the electronic device sends an update request message to the server in response to the first application. Specifically, with reference to fig. 2, as shown in fig. 3, before the step S21, the page resource updating method provided by the embodiment of the present disclosure further includes the following step S24.
In step S24, the electronic device launches the first application.
In the embodiment of the disclosure, if a user clicks an APP icon corresponding to a first application program on the electronic device, the electronic device starts the first application program and sends an update request message to the server.
Optionally, in this embodiment of the present disclosure, when the electronic device is connected to the network by using mobile data, if the electronic device downloads a file from the network or uploads a file to the network, the electronic device needs to consume a data traffic. In consideration of the traffic consumption problem, the user may agree to perform the page resource update or refuse to perform the page resource update. Therefore, in order to improve the interaction friendliness, after the electronic device starts the first application program, the electronic device may first ask the user whether the page resource of the first application program needs to be updated, and further determine whether to send the update request message to the server or not according to the feedback of the user.
Specifically, referring to fig. 3, as shown in fig. 4, after the step S24, the page resource updating method provided by the embodiment of the present disclosure further includes the following steps S25 and S26. Accordingly, the above step S21 can be specifically realized by the step S21A described below.
In step S25, the electronic device generates an update presentation instruction, and displays the update presentation instruction.
The update prompting instruction is used for prompting whether to update the page resource of the first application program.
Optionally, the update prompting instruction may be displayed to the user in the form of an information prompting box. The information prompt box can include prompt information, cancellation items and confirmation items. The confirmation item is an option for triggering the sending of the update request message to the server, and the cancellation item is an option for triggering the sending of the update request message to the server. Based on this, after the user views the prompt message, the user can select the prompt message according to the actual use requirement.
For example, the update prompting instruction may include prompting information "is the page resource of the first application updated? And "cancel" and "confirm" items. Specifically, if the user does not wish to update the page resources, the user may click the "cancel" item. If the user agrees to perform the page resource update, the user may click on the "confirm" item.
In step S26, the electronic device obtains a first operation instruction of the update prompting instruction from the user, where the first operation instruction is used to instruct to update the page resource of the first application program.
For example, the first operation instruction may be a click input of a user to a confirmation option in the update prompt instruction.
In step S21A, the electronic device sends an update request message to the server according to the first operation instruction, where the update request message is used to request to update the page resource of the first application.
In the embodiment of the disclosure, if a user clicks an APP icon corresponding to a first application program on electronic equipment, the electronic equipment may start the first application program, generate an update prompt instruction, and then display the update prompt instruction; further, in the case that the electronic device acquires a first operation instruction (for example, clicking a confirmation item) of the update prompting instruction by the user, the update request message is sent to the server. Therefore, whether the page resource of the application program is updated or not can be determined according to the user requirement, and the flexibility of updating the page resource is improved.
Optionally, in this embodiment of the present disclosure, with reference to fig. 4, as shown in fig. 5, after the step S24 and before the step S25, the page resource updating method provided in this embodiment of the present disclosure further includes the following step S27. Accordingly, the above step S25 can be specifically realized by the step S25A described below.
In step S27, the electronic device acquires a first duration.
The first time duration is a time duration between a first time and a second time, the first time duration is a time duration when the electronic device has updated the page resource of the first application program stored in the electronic device last time, and the second time duration is a time duration when the electronic device starts the first application program in step S24.
Optionally, the electronic device may use a timer to obtain the first duration.
For example, assuming that the first time is denoted as T1 and the second time is denoted as T2, if the electronic device runs the first application, the electronic device may obtain the first duration: T-T2-T1.
Optionally, the timer may start timing from 0, that is, the first time is 0, so that the duration obtained by the timer at the second time is the first duration. And after the electronic device acquires the first duration, the electronic device may clear the timer and restart timing.
For example, if the electronic device runs the first application program, the electronic device may acquire the first time length T, clear the timer, and restart timing. If the electronic device runs the first application program again, the electronic device may obtain the first duration obtained by the retiming again.
In step S25A, in the case that the first duration is greater than or equal to the preset update period, the electronic device generates an update prompt instruction and displays the update prompt instruction.
The preset update period may be determined according to the application type of the first application program, the page resource update frequency, the page access frequency, and other factors. Alternatively, the preset update period may be an empirical value, such as one month. The value of the preset update period may be determined according to actual use requirements, and the embodiment of the present invention is not limited.
In the embodiment of the disclosure, after the electronic device starts the first application program, the electronic device may obtain the first duration, and compare the first duration with a preset update period. And if the first duration is greater than or equal to the preset updating period, the electronic equipment generates an updating prompt instruction and displays the updating prompt instruction so as to prompt a user whether to update the page resource of the first application program. If the first time length is less than the preset updating period, the electronic equipment does not generate an updating prompt instruction, further does not send an updating request message to the server, and further does not update the page resources.
Of course, the embodiments of the present disclosure do not exclude the following: after the electronic equipment starts the first application program, if the electronic equipment judges that the first duration is greater than or equal to the preset updating period, the electronic equipment does not inquire whether the user needs to update the page resources, but directly sends an updating request message to the server.
In the embodiment of the disclosure, the electronic device may request the server to update the page resource of the first application program once every preset time period. Therefore, the page resources of the application program can be periodically updated, and convenience of updating the page resources is improved.
It should be noted that, after the electronic device starts the first application program, if the electronic device determines that the first duration is greater than or equal to the preset update period, the electronic device may query the user whether the page resource needs to be updated or directly send an update request message to the server, regardless of the version size of the page resource stored by the server at this time, whether the updated page resource can be issued or not.
For example, on the one hand, a server-stored page resource may be a new version of a page resource; in this case, the server may issue the updatable page resource to the electronic device. On the other hand, the page resource stored by the server may also be a page resource with the same version as that in the electronic device; in this case, the electronic device does not need to update the page resource of the first application, that is, the server does not issue the page resource to the electronic device.
Optionally, in the embodiment of the present disclosure, after the step S23, the page resource updating method provided in the embodiment of the present disclosure further includes the following steps S28 and S29.
In step S28, the electronic device obtains a second operation instruction of the user, where the second operation instruction is used to trigger access to the first target page in the first application program.
The second operation instruction may include a page identifier, that is, an identifier of the first target page.
In step S29, the electronic device obtains the page resource of the first target page from the target page resources stored in the electronic device according to the second operation instruction.
The target page resource may include a plurality of page resources, and each page corresponds to one page identifier.
In the embodiment of the disclosure, the electronic device may determine the corresponding page and the page resource thereof according to the page identifier. Therefore, when the user accesses the pages through the electronic equipment, the electronic equipment can directly read the corresponding page resources from the local without acquiring from a network request, so that the conditions that the storage space occupied by the updated resources is large, the downloading time is long, and the consumed flow is large can be avoided.
Optionally, when the user accesses the page of the first application program through the electronic device, the electronic device may report page access information to the server, so that the server determines the target page resource according to the page access information. The page access information may include an identifier of the electronic device and an identifier of the page to be accessed, and the server counts the number of page accesses. Or, the page access information may include the page access times, that is, the electronic device counts the page access times and reports the page access times to the server.
Illustratively, the page resource updating method provided by the embodiment of the present disclosure further includes the following steps S30 and S31.
In step S30, the electronic device obtains a third operation instruction of the user, where the third operation instruction is used to trigger access to the second target page in the first application program.
In step S31, the electronic device sends page access information to the server according to the third operation instruction, where the page access information includes an identifier of the electronic device and an identifier of the second target page.
The third operation instruction and the second operation instruction may be the same operation instruction or different operation instructions.
For example, when the third operation instruction and the second operation instruction are the same operation instruction, the second target page and the first target page are the same page. That is, when the user accesses the second target page in the first application, the electronic device may obtain the page resource of the second target page from the target page resources stored in the electronic device, and send page access information to the server, where the page access information includes an identifier of the electronic device and an identifier of the second target page.
In the embodiment of the present disclosure, if the user accesses the second target page in the first application program through the electronic device, the electronic device may send page access information, that is, the identifier of the electronic device and the identifier of the second target page, to the server. Therefore, the server can determine the target page resource actually required by the electronic equipment according to the page access information, and the situations that the storage space occupied by the updated resource is large, the downloading time is long, and the consumed flow is large can be avoided.
Fig. 6 is a flowchart illustrating a page resource updating method applied to a server according to an exemplary embodiment, where the page resource updating method includes steps S41-S43 described below, as shown in fig. 6.
In step S41, the server receives an update request message sent by the electronic device, where the update request message is used to request to update the page resource of the first application.
The first application program is an application program installed or operated in the electronic equipment.
In the embodiment of the disclosure, when a user accesses a page of a first application program through electronic equipment, the electronic equipment may request a server to issue a new version of page resources, so as to update locally cached page resources. Accordingly, the server may receive an update request message sent by the electronic device, and further determine whether the page resource of the first program stored in the electronic device needs to be updated according to the update request message.
For the description of the specific content of the page resource, reference may be made to the detailed description of the page resource in the page updating method applied to the electronic device, which is not described herein again.
In step S42, the server determines a target page resource satisfying a first condition from the first page resources, the first condition including at least one of: the page resources of the first N pages are arranged from large to small, and the page resources of the pages are accessed within a preset time period.
The first page resource is a page resource of a first application program stored by the server, and the first page resource may be page resources of all pages of the first application program.
The following exemplary describes several possible implementations of the server determining the target page resource satisfying the first condition from the first page resources.
In a possible implementation manner, the server may determine, as the target page resource to be delivered to the electronic device, page resources of first N pages of the first page resources, where page access times are arranged from large to small.
In another possible implementation manner, the server may determine, as the target page resource issued to the electronic device, a page resource of a page, which is accessed by the user within a preset time period, in the first page resource.
In another possible implementation manner, the server may determine, as the target page resource to be delivered to the electronic device, page resources of the first N pages that are accessed by the user within a preset time period and are arranged from large to small in page access times, among the first page resources.
In another possible implementation manner, the server may determine, as the target page resource to be delivered to the electronic device, the page resources of the first N pages in the first page resources, where the page access times are arranged from large to small, and the total page resource occupancy amount does not exceed the limit.
Optionally, the preset time period may be a default time period of the system, or a user-defined time period.
For example, the preset time period may be 5 days, that is, the server may issue the page resources of the page accessed by the user in the last 5 days to the electronic device. That is, the server may issue page resources of some pages that the user has frequently visited in the recent period of time to the electronic device.
Optionally, the sum of the memory spaces occupied by the page resources of the first N pages is less than or equal to a first preset threshold. The first preset threshold may be a suitable value smaller than the first page resource occupation space, and may be specifically determined according to an actual use requirement, which is not limited in the embodiment of the present disclosure.
For example, assuming that the first preset threshold is 5M, the server may issue, to the electronic device, page resources of first N pages that are arranged from large to small in page access times, where the total page resource occupancy amount of the first N pages needs to be less than or equal to 5M.
Optionally, N may be a preset positive integer, for example, N is 20, that is, the server may determine, as the target page resource issued to the electronic device, the page resources of the first 20 pages of the first page resources, where the page access times are arranged from large to small. That is, the server may issue page resources of some pages frequently visited by the user to the electronic device.
Alternatively, N may be a positive integer determined according to the first preset threshold, for example, if the sum of the memory spaces occupied by the page resources of the first 10 pages in the first page resources is less than or equal to the first preset threshold, then N is 10. The server may determine, as the target page resource to be delivered to the electronic device, the page resources of the first 10 pages of the first page resources, where the page access times are arranged from large to small. That is, the server may issue the page resources of the pages that are frequently visited by the user and whose total occupied amount of the page resources does not exceed the limit, to the electronic device.
For the description of the page access times, reference may be made to the detailed description of the page access times in the page resource updating method applied to the electronic device, and details are not repeated here.
In step S43, the server sends an update response message to the electronic device, the update response message including the target page resource.
The target page resource can be issued to the electronic device in the form of a resource cache packet.
In the embodiment of the present disclosure, if the server stores a new version of the page resource, the server sends an update response message to the electronic device, where the update response message includes the new version of the page resource (i.e., the target page resource).
Of course, if the server stores the page resource of the same version as the electronic device, the server may send an update response message to the electronic device to notify that the electronic device does not need to update the page resource, that is, the server does not need to issue the page resource to the electronic device, so that unnecessary traffic consumption may be avoided.
Through the scheme, the server can determine which page resources need to be cached or updated according to the times of the user accessing each page, or determine which page resources need to be cached or updated according to the pages accessed by the user in the latest period of time, and then the server can issue a part of page resources to the electronic equipment, so that the electronic equipment does not need to completely cache or update all the page resources of the application program, and only needs to cache or update the page resources meeting the use requirements of the user. Therefore, the method and the device for updating the page resources can reduce the request time of the page resources, reduce the occupied size of the page resources, save the data traffic of users and reduce the updating times of the page resources.
Optionally, in this embodiment of the present disclosure, the update request message includes a first version number, where the first version number is a version number of a page resource of a first application stored in the electronic device. After receiving the update request message sent by the electronic device, the server may obtain the first version number in the update request message, and compare the first version number with the version number of the first page resource in the server to determine whether the page resource of the first application program stored in the electronic device needs to be updated.
In this case, the above-mentioned determination of the target page resource satisfying the first condition from the first page resources (the above-mentioned step S42) can be specifically realized by the following step S42.
In step S42, in the case where the second condition is satisfied, the server determines a target page resource satisfying the first condition from among the first page resources; wherein the second condition is any one of: the first version number is null, and the first version number is smaller than the version number of the first page resource.
Alternatively, the version numbers of different page resources may be represented by different numbers, such as a page resource identifier-1, a page resource identifier-2, and the like. Alternatively, the version number of the page resource may be represented by a date.
In the embodiment of the present disclosure, the step S42 may cover the following three cases:
in the first case: when the page resources are stored in the page field (or the storage space) corresponding to the first application program in the electronic device, the first version number is not null, and at this time, the server may compare the first version number with the version number of the first page resource, and if the first version number is smaller than the version number of the first page resource (that is, the second condition is satisfied), the server may determine that the page resources of the first application program stored in the electronic device need to be updated, and issue the determined target page resources to the electronic device for updating.
In the second case: when the content of the page field corresponding to the first application program in the electronic device is empty (i.e., the page resource does not exist or is cleared), the first version number is empty (i.e., the second condition is satisfied), and at this time, the server can directly issue the target page resource to the electronic device after determining the target page resource.
In the third case: when the server judges that the first version number is greater than or equal to the version number of the first page resource (namely, the second condition is not met), the server does not need to determine a target page resource meeting the first condition from the first page resource or send the page resource to the electronic equipment for updating, so that unnecessary traffic consumption can be avoided.
In the embodiment of the disclosure, when a user accesses a page of a first application program through electronic equipment, the electronic equipment reports page access information to a server, and the server can receive the page access information and determine a target page resource according to the page access information. The page access information may include an identifier of the electronic device and an identifier of an accessed page, and the server may count the number of page accesses according to the identifier of the electronic device and the identifier of the accessed page. Or, the page access information may include page access times, that is, the page access times counted by the electronic device are reported to the server.
Illustratively, the page resource updating method provided by the embodiment of the present disclosure further includes the following steps S44 and S45.
In step S44, page access information sent by the electronic device is received, where the page access information includes an identifier of the electronic device and an identifier of a target page, and the target page is a page in a first application program currently accessed by the electronic device.
In step S45, the number of times that the electronic device accesses the target page is recorded according to the identifier of the electronic device and the identifier of the target page.
In the embodiment of the disclosure, if the user accesses the page in the first application program through the electronic device, the electronic device sends page access information to the server. Correspondingly, the server can record the access times of the electronic equipment for accessing the target page, and further can determine the target page resource actually required by the electronic equipment according to the page access times, so that the situations that the storage space occupied by the updated resource is large, the downloading time is long, and the consumed flow is large can be avoided.
Fig. 7 is a block diagram illustrating a page resource updating apparatus applied to an electronic device according to an exemplary embodiment. Referring to fig. 7, the page resource updating apparatus 50 includes a first sending module 51, a first receiving module 52 and a first processing module 53;
the first sending module 51 is configured to perform sending an update request message to the server, the update request message being for requesting an update of the page resource of the first application.
The first receiving module 52 is configured to perform receiving, after the first sending module 51 sends the update request message to the server, an update response message sent by the server, where the update response message includes a target page resource, where the target page resource is a page resource that meets a first condition in first page resources, and the first page resource is a page resource of a first application stored by the server; the first condition includes at least one of: the page resources of the first N pages are arranged from large to small, the page resources of the pages accessed in a preset time period are arranged, and N is a positive integer.
The first processing module 53 is configured to update a second page resource, which is a page resource of the first application stored in the electronic device and is a different version of the page resource, to the target page resource received by the first receiving module 52.
Optionally, in this embodiment of the disclosure, the first processing module 53 is further configured to execute the first application program that is started before the first sending module 51 sends the update request message to the server.
Optionally, in this embodiment of the present disclosure, the first processing module 53 is further configured to generate an update prompting instruction after the first application is started, and display the update prompting instruction, where the update prompting instruction is used to prompt whether to update the page resource of the first application.
Further, the first receiving module 52 is further configured to execute a first operation instruction for acquiring an update prompting instruction generated by the first processing module 53 by the user, where the first operation instruction is used to instruct to update the page resource of the first application;
in this case, the first sending module 51 is specifically configured to execute the first operation instruction obtained by the first receiving module 52, and send the update request message to the server.
Optionally, in this embodiment of the disclosure, the first receiving module 52 is further configured to, after the first processing module 53 starts the first application program and before the update prompting instruction is generated, acquire a first time length, where the first time length is a time length between a first time and a second time, the first time length is a time when the electronic device updates the page resource of the first application program last time, and the second time length is a time when the electronic device starts the first application program.
In this case, the first processing module 53 is specifically configured to execute the update prompting instruction generated when the first duration is greater than or equal to a preset update period.
Optionally, in this embodiment of the present disclosure, a sum of storage spaces occupied by the page resources of the first N pages is less than or equal to a first preset threshold.
Optionally, in this embodiment of the present disclosure, the first receiving module 52 is further configured to execute, after the first processing module 53 updates the second page resource to the target page resource, to obtain a second operation instruction of the user, where the second operation instruction is used to trigger access to the first target page in the first application; and acquiring the page resource of the first target page from the target page resources stored in the electronic equipment according to the second operation instruction.
Optionally, in this embodiment of the present disclosure, the first receiving module 52 is further configured to execute a third operation instruction for acquiring a user, where the third operation instruction is used to trigger access to a second target page in the first application;
further, the first sending module 51 is further configured to execute the third operation instruction obtained by the first receiving module 52, and send page access information to the server, where the page access information includes an identifier of the electronic device and an identifier of the second target page.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Through the scheme, the server can determine which page resources need to be cached or updated according to the times of the user accessing each page, or determine which page resources need to be cached or updated according to the pages accessed by the user in the latest period of time, and then the server can issue a part of page resources to the electronic equipment, so that the electronic equipment does not need to completely cache or update all the page resources of the application program, and only needs to cache or update the page resources meeting the use requirements of the user. Therefore, the method and the device for updating the page resources can reduce the request time of the page resources, reduce the occupied size of the page resources, save the data traffic of users and reduce the updating times of the page resources.
Fig. 8 is a block diagram illustrating a page resource updating apparatus applied to a server according to an exemplary embodiment. Referring to fig. 8, the page resource updating apparatus 60 includes a second receiving module 61, a second processing module 62, and a second transmitting module 63.
The second receiving module 61 is configured to execute receiving an update request message sent by the electronic device, where the update request message is used for requesting to update the page resource of the first application program.
The second processing module 62 is configured to execute determining, according to the update request message received by the second receiving module 61, a target page resource satisfying a first condition from the first page resources, where the first page resource is a page resource of the first application stored by the server; the first condition includes at least one of: the page resources of the first N pages are arranged from large to small, the page resources of the pages accessed in a preset time period are arranged, and N is a positive integer.
The second sending module 63 is configured to execute sending an update response message to the electronic device, where the update response message includes the target page resource determined by the second processing module 62.
Optionally, in this embodiment of the present disclosure, the update request message may include a first version number, where the first version number is a version number of a page resource of a first application stored in the electronic device.
In this case, the second processing module 62 is specifically configured to determine, from the first page resources, a target page resource satisfying the first condition if the second condition is satisfied.
Wherein the second condition is any one of: the first version number is null, and the first version number is smaller than the version number of the first page resource.
Optionally, in this embodiment of the present disclosure, a sum of storage spaces occupied by the page resources of the first N pages is less than or equal to a first preset threshold.
Optionally, in this embodiment of the disclosure, the second receiving module 61 is further configured to perform receiving of page access information sent by the electronic device, where the page access information includes an identifier of the electronic device and an identifier of a target page, and the target page is a page in a first application program currently accessed by the electronic device.
Further, the second processing module 62 is further configured to record the number of times of accessing the target page by the electronic device according to the identifier of the electronic device and the identifier of the target page.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Through the scheme, the server can determine which page resources need to be cached or updated according to the times of the user accessing each page, or determine which page resources need to be cached or updated according to the pages accessed by the user in the latest period of time, and then the server can issue a part of page resources to the electronic equipment, so that the electronic equipment does not need to completely cache or update all the page resources of the application program, and only needs to cache or update the page resources meeting the use requirements of the user. Therefore, the method and the device for updating the page resources can reduce the request time of the page resources, reduce the occupied size of the page resources, save the data traffic of users and reduce the updating times of the page resources.
In addition, when the electronic device provided in the above embodiment implements the functions thereof, only the division of the above functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the electronic device may be divided into different functional modules to implement all or part of the functions described above.
Fig. 9 is a schematic structural diagram of an electronic device according to an exemplary embodiment. The electronic device 100 includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like. As shown in fig. 9, electronic device 100 includes, but is not limited to: a processor 101, a memory 102, a display 103, an input unit 104, an output unit 105, a network unit 106, an interface unit 107, a radio frequency unit 108, a power supply 109, a sensor 110, and the like.
It should be noted that, as those skilled in the art can understand, the structure of the electronic device 100 shown in fig. 9 does not constitute a limitation to the electronic device 100, and the electronic device 100 may include more or less components than those shown in fig. 9, or combine some components, or arrange different components.
In the embodiment of the present disclosure, the display 103 is configured to display a shooting preview interface, where the shooting preview interface includes at least one duration label, and one duration label corresponds to one shooting duration.
A processor 101, configured to start capturing a video in response to a user's shooting input on a shooting preview interface, and keep displaying at least one duration label; and responding to a first input of a user to a target time length label in at least one time length label, and carrying out video shooting within a target shooting time length corresponding to the target time length label.
It should be noted that the electronic device 100 can implement each process implemented by the electronic device in the foregoing method embodiments, and can achieve the same technical effect, and for avoiding repetition, detailed descriptions are not repeated here.
The processor 101 is a control center of the electronic device 100, connects various parts of the whole electronic device 100 by various interfaces and lines, and performs various functions of the electronic device 100 and processes data by running or executing software programs and/or modules stored in the memory 102 and calling data stored in the memory 102, thereby performing overall monitoring of the electronic device 100. Processor 101 may include one or more processing units; optionally, the processor 101 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 101.
The memory 102 may be used to store software programs as well as various data. The memory 102 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 102 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The Display 103 may include a Display panel, which may be configured in the form of a liquid Crystal Display (L acquired Crystal Display, L CD), an Organic light-Emitting Diode (O L ED), or the like.
The input unit 104 may be used to receive audio or video signals. The input Unit 104 may include a Graphics Processing Unit (GPU) that processes image data of still pictures or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode, and a microphone. The processed image frames may be displayed on the display 103. The image frames processed by the graphics processor may be stored in the memory 102 (or other storage medium) or transmitted via the radio frequency unit 108 or the network unit 106. The microphone may receive sound and be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 108 in case of the phone call mode.
The input unit 104 may be a user input unit operable to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus 100. Specifically, the user input unit includes a touch panel and other input devices. A touch panel, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel (e.g., operations by a user on or near the touch panel using a finger, a stylus, or any other suitable object or attachment). The touch panel may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 101, receives a command from the processor 101, and executes the command. In addition, the touch panel may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit may include other input devices in addition to the touch panel. Specifically, the other input devices may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel may be overlaid on the display panel, and when the touch panel detects a touch operation thereon or nearby, the touch panel transmits the touch operation to the processor 101 to determine the type of the touch event, and then the processor 101 provides a corresponding visual output on the display panel according to the type of the touch event. The touch panel and the display panel 1061 may be used as two independent components to implement the input and output functions of the electronic device 100, or the touch panel and the display panel may be integrated to implement the input and output functions of the electronic device 100, which is not limited herein.
The output unit 105 may be an audio output unit, and may convert audio data received by the radio frequency unit 108 or the network unit 106 or stored in the memory 102 into an audio signal and output as sound. Also, the audio output unit may also provide audio output related to a specific function performed by the electronic apparatus 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit comprises a loudspeaker, a buzzer, a receiver and the like.
The electronic device 100 provides the user with wireless broadband internet access via the network unit 106, such as assisting the user in e-mailing, browsing web pages, and accessing streaming media.
The interface unit 107 is an interface for connecting an external device to the electronic apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 107 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 100 or may be used to transmit data between the electronic apparatus 100 and the external device.
The radio frequency unit 108 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink data from a base station and then process the received downlink data to the processor 101; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 108 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 108 can also communicate with a network and other devices through a wireless communication system.
A power supply 109 (e.g., a battery) may be used to supply power to the various components, and optionally, the power supply 109 may be logically connected to the processor 101 through a power management system, so as to manage charging, discharging, and power consumption through the power management system.
The sensor 110 may include at least one of a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that turns off the display panel and/or the backlight when the electronic device 100 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 110 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
In addition, the electronic device 100 includes some functional modules (e.g., a camera) not shown, which are not described herein.
In an exemplary embodiment, the disclosed embodiments also provide a storage medium comprising instructions, such as the memory 102 comprising instructions, executable by the processor 101 of the electronic device 100 to perform the above-described method. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a Read-Only Memory (ROM), a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, the disclosed embodiments also provide a computer program product comprising one or more instructions executable by the processor 101 of the electronic device 100 to perform the above-described method.
It should be noted that the instructions in the storage medium or one or more instructions in the computer program product are executed by the processor 101 to implement the processes of the method embodiments, and the same technical effect can be achieved.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A page resource updating method is applied to electronic equipment, and is characterized by comprising the following steps:
sending an update request message to a server, wherein the update request message is used for requesting to update the page resource of the first application program;
receiving an update response message sent by the server, wherein the update response message comprises a target page resource, the target page resource is a page resource meeting a first condition in first page resources, and the first page resource is a page resource of the first application program stored by the server; the first condition includes at least one of: page resources of the first N pages, which are arranged from large to small in page access times, and page resources of pages accessed within a preset time period, wherein N is a positive integer;
updating a second page resource to the target page resource, where the second page resource is a page resource of the first application stored in the electronic device, and the second page resource and the first page resource are page resources of different versions.
2. The page resource updating method according to claim 1, wherein before sending the update request message to the server, the method further comprises:
and starting the first application program.
3. The page resource updating method according to claim 2, wherein after the starting of the first application, the method further comprises:
generating an update prompting instruction and displaying the update prompting instruction, wherein the update prompting instruction is used for prompting whether to update the page resource of the first application program;
acquiring a first operation instruction of the user for the update prompt instruction, wherein the first operation instruction is used for indicating to update the page resource of the first application program;
the sending of the update request message to the server includes:
and sending the updating request message to the server according to the first operation instruction.
4. The page resource updating method according to claim 1, wherein after the updating of the second page resource to the target page resource, the method further comprises:
acquiring a second operation instruction of a user, wherein the second operation instruction is used for triggering access to a first target page in the first application program;
and acquiring the page resource of the first target page from the target page resource stored in the electronic equipment according to the second operation instruction.
5. A page resource updating method is applied to a server, and is characterized in that the method comprises the following steps:
receiving an update request message sent by electronic equipment, wherein the update request message is used for requesting to update page resources of a first application program;
determining a target page resource meeting a first condition from first page resources, wherein the first page resource is a page resource of the first application program stored by the server; the first condition includes at least one of: page resources of the first N pages, which are arranged from large to small in page access times, and page resources of pages accessed within a preset time period, wherein N is a positive integer;
and sending an update response message to the electronic equipment, wherein the update response message comprises the target page resource.
6. A page resource updating device is applied to electronic equipment and is characterized by comprising a first sending module, a first receiving module and a first processing module;
the first sending module is configured to execute sending an update request message to a server, wherein the update request message is used for requesting to update the page resource of the first application program;
the first receiving module is configured to receive an update response message sent by a server after the first sending module sends an update request message to the server, where the update response message includes a target page resource, where the target page resource is a page resource that meets a first condition in first page resources, and the first page resource is a page resource of the first application stored by the server; the first condition includes at least one of: page resources of the first N pages, which are arranged from large to small in page access times, and page resources of pages accessed within a preset time period, wherein N is a positive integer;
the first processing module is configured to update a second page resource to the target page resource received by the first receiving module, where the second page resource is a page resource of the first application stored in the electronic device, and the second page resource and the first page resource are page resources of different versions.
7. A page resource updating device is applied to a server and is characterized by comprising a second receiving module, a second processing module and a second sending module;
the second receiving module is configured to execute receiving of an update request message sent by the electronic device, where the update request message is used for requesting to update a page resource of the first application program;
the second processing module is configured to execute determining, according to the update request message received by the second receiving module, a target page resource satisfying a first condition from first page resources, where the first page resource is a page resource of the first application stored by the server; the first condition includes at least one of: page resources of the first N pages, which are arranged from large to small in page access times, and page resources of pages accessed within a preset time period, wherein N is a positive integer;
the second sending module is configured to execute sending of an update response message to the electronic device, where the update response message includes the target page resource determined by the second processing module.
8. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the page resource updating method of any of claims 1 to 4.
9. A server, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the page resource updating method of claim 5.
10. A storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the page resource updating method of any one of claims 1 to 5.
CN202010209875.8A 2020-03-23 2020-03-23 Page resource updating method and device, electronic equipment, server and storage medium Pending CN111427648A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010209875.8A CN111427648A (en) 2020-03-23 2020-03-23 Page resource updating method and device, electronic equipment, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010209875.8A CN111427648A (en) 2020-03-23 2020-03-23 Page resource updating method and device, electronic equipment, server and storage medium

Publications (1)

Publication Number Publication Date
CN111427648A true CN111427648A (en) 2020-07-17

Family

ID=71548628

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010209875.8A Pending CN111427648A (en) 2020-03-23 2020-03-23 Page resource updating method and device, electronic equipment, server and storage medium

Country Status (1)

Country Link
CN (1) CN111427648A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112035339A (en) * 2020-07-28 2020-12-04 长沙市到家悠享网络科技有限公司 Page testing method, device and equipment
CN113094131A (en) * 2021-03-31 2021-07-09 北京达佳互联信息技术有限公司 Prompt resource display method, device, terminal, server and storage medium
CN113221049A (en) * 2021-04-27 2021-08-06 北京奇艺世纪科技有限公司 Page updating method and device, electronic equipment and storage medium
CN113590618A (en) * 2021-07-19 2021-11-02 上海淇玥信息技术有限公司 Zero-access-volume page resource cleaning method and device and electronic equipment
CN113825008A (en) * 2021-11-24 2021-12-21 飞狐信息技术(天津)有限公司 Active page display method and device
CN113946392A (en) * 2021-09-24 2022-01-18 北京达佳互联信息技术有限公司 Object description information processing method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101957827A (en) * 2009-07-16 2011-01-26 英业达股份有限公司 System and method for configuring personalized webpage
US20190095196A1 (en) * 2017-09-27 2019-03-28 Whatsapp Inc. Techniques for web application updates
CN110287432A (en) * 2019-06-28 2019-09-27 北京金山安全软件有限公司 Network information processing method and device and electronic equipment
CN110377360A (en) * 2019-07-12 2019-10-25 深圳市酷开网络科技有限公司 Method, display terminal and the computer readable storage medium that webview is quickly loaded
CN110769052A (en) * 2019-10-18 2020-02-07 腾讯科技(深圳)有限公司 Channel information determination method and device, storage medium and electronic device
CN110990733A (en) * 2019-10-31 2020-04-10 合肥美的电冰箱有限公司 Page loading method and device, electronic equipment and medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101957827A (en) * 2009-07-16 2011-01-26 英业达股份有限公司 System and method for configuring personalized webpage
US20190095196A1 (en) * 2017-09-27 2019-03-28 Whatsapp Inc. Techniques for web application updates
CN110287432A (en) * 2019-06-28 2019-09-27 北京金山安全软件有限公司 Network information processing method and device and electronic equipment
CN110377360A (en) * 2019-07-12 2019-10-25 深圳市酷开网络科技有限公司 Method, display terminal and the computer readable storage medium that webview is quickly loaded
CN110769052A (en) * 2019-10-18 2020-02-07 腾讯科技(深圳)有限公司 Channel information determination method and device, storage medium and electronic device
CN110990733A (en) * 2019-10-31 2020-04-10 合肥美的电冰箱有限公司 Page loading method and device, electronic equipment and medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112035339A (en) * 2020-07-28 2020-12-04 长沙市到家悠享网络科技有限公司 Page testing method, device and equipment
CN113094131A (en) * 2021-03-31 2021-07-09 北京达佳互联信息技术有限公司 Prompt resource display method, device, terminal, server and storage medium
CN113221049A (en) * 2021-04-27 2021-08-06 北京奇艺世纪科技有限公司 Page updating method and device, electronic equipment and storage medium
CN113221049B (en) * 2021-04-27 2023-09-01 北京奇艺世纪科技有限公司 Page updating method and device, electronic equipment and storage medium
CN113590618A (en) * 2021-07-19 2021-11-02 上海淇玥信息技术有限公司 Zero-access-volume page resource cleaning method and device and electronic equipment
CN113590618B (en) * 2021-07-19 2023-10-13 上海淇玥信息技术有限公司 Zero access amount page resource cleaning method and device and electronic equipment
CN113946392A (en) * 2021-09-24 2022-01-18 北京达佳互联信息技术有限公司 Object description information processing method and device, electronic equipment and storage medium
CN113825008A (en) * 2021-11-24 2021-12-21 飞狐信息技术(天津)有限公司 Active page display method and device

Similar Documents

Publication Publication Date Title
CN111427648A (en) Page resource updating method and device, electronic equipment, server and storage medium
CN109768926B (en) Data processing method, terminal equipment and computer readable storage medium
CN109471690B (en) Message display method and terminal equipment
CN108984066B (en) Application icon display method and mobile terminal
CN107562539B (en) Application program processing method and device, computer equipment and storage medium
CN108241703B (en) Webpage data transmission method and device
CN110879680B (en) Icon management method and electronic equipment
CN108600516B (en) Data acquisition method, mobile terminal and computer readable storage medium
WO2014198116A1 (en) Method, apparatus and system for short message-based information push and mobile client supporting the same
CN109995862B (en) Resource scheduling method and terminal
CN110780940A (en) Application program loading method, electronic device and storage medium
CN107765954B (en) Application icon updating method, mobile terminal and server
CN108009031B (en) Application program control method and mobile terminal
CN111124706A (en) Application program sharing method and electronic equipment
CN111444425B (en) Information pushing method, electronic equipment and medium
CN111131607A (en) Information sharing method, electronic equipment and computer readable storage medium
CN112612552B (en) Application resource loading method and device, electronic equipment and readable storage medium
CN108228357B (en) Memory cleaning method and mobile terminal
CN107704287B (en) Installation-free method for program application, mobile terminal and computer-readable storage medium
CN110809186B (en) Video processing method and electronic equipment
CN109889568B (en) Data export method, server and system
CN106230919B (en) File uploading method and device
CN112748970A (en) Message display method and terminal equipment
CN108491225B (en) Update package generation method and mobile terminal
CN107688498B (en) Application program processing 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