WO2019109513A1 - Resource updating method and system, electronic device, and medium - Google Patents

Resource updating method and system, electronic device, and medium Download PDF

Info

Publication number
WO2019109513A1
WO2019109513A1 PCT/CN2018/074845 CN2018074845W WO2019109513A1 WO 2019109513 A1 WO2019109513 A1 WO 2019109513A1 CN 2018074845 W CN2018074845 W CN 2018074845W WO 2019109513 A1 WO2019109513 A1 WO 2019109513A1
Authority
WO
WIPO (PCT)
Prior art keywords
update
package
page resource
page
application
Prior art date
Application number
PCT/CN2018/074845
Other languages
French (fr)
Chinese (zh)
Inventor
张清云
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019109513A1 publication Critical patent/WO2019109513A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms

Definitions

  • the present application belongs to the field of data processing technologies, and in particular, to a resource update method, system, electronic device, and medium.
  • the page resource package Due to the fast update of web page resources, the page resource package often needs to be updated.
  • the application generally starts at the startup of the application, and sends an update query request to the resource server for update query at a fixed time interval based on the HTTP protocol, and the resource server needs to receive the update. After querying the request, the query page resource package is updated, and the application is responded after the query is completed. Since each query application needs to send an update query request, and also needs to wait for the server to respond to determine whether it needs to be updated. This makes the application's query workload a lot, affecting the performance of the application.
  • the prior art page resource package update method has a large impact on application performance and the update is lagging, and it is difficult to ensure timely and effective update and use of the application.
  • the embodiment of the present application provides a resource update method and system, which solves the problem that it is difficult to timely and effectively update and use the application page resource package in the prior art.
  • a first aspect of the embodiment of the present application provides a resource update method, including:
  • the page resource version identifier in the local page resource package is read, and the handshake request information including the page resource version identifier is sent to the resource server;
  • the resource server After receiving the handshake request, the resource server compares the page resource version identifier with the included page resource version identifier in the page resource update package, and compares the local page resource of the application. When the package needs to be updated, the download link of the page resource update package is pushed to the application;
  • the application program downloads the page resource update package by using the download link, and performs keyword search on the update description data corresponding to the page resource update package, and determines whether the update description data includes a preset keyword;
  • the page resource update package is used.
  • the local page resource bundle is updated.
  • a second aspect of the embodiments of the present application provides a resource update system, including: an application and a server;
  • the application is configured to: when starting, read a page resource version identifier in the local page resource package, and send handshake request information including the page resource version identifier to the resource server;
  • the resource server is configured to compare the page resource version identifier with the included page resource version identifier in the page resource update package after receiving the handshake request, and compare the described application When the local page resource package needs to be updated, the download link of the page resource update package is pushed to the application;
  • the application is further configured to download the page resource update package by using the download link, perform keyword search on the update description data corresponding to the page resource update package, and determine whether the update description data includes a preset key. word;
  • the application is further configured to: if the result of the keyword search is that the preset description keyword is not included in the update description data, when detecting that the display page of the application is switched, closed, or refreshed,
  • the page resource update package updates the local page resource package.
  • a third aspect of the embodiments of the present application provides a resource update electronic device, including a memory, a processor, and an application running on the processor, where the processor executes the application The following steps are implemented:
  • the page resource update package is used.
  • the local page resource bundle is updated.
  • a fourth aspect of the embodiments of the present application provides a computer readable storage medium storing an application, wherein the application is executed by at least one processor to implement the following steps:
  • the page resource update package is used.
  • the local page resource bundle is updated.
  • the resource server is used to automatically identify the page resource package update, and when it is determined that the local page resource package update is needed, the download link is actively pushed to the application, and the application only needs to send a local page resource version identifier at startup.
  • the handshake request information is sent to the resource server, so that the query of the page resource package update can be realized, which greatly reduces the query workload of the application.
  • the keyword search is performed according to the update description data corresponding to the page resource update package, and when the update description data does not include any preset keyword, the update is normal.
  • the update is only performed when the user leaves the currently displayed page, so that the update does not need to wait until the next application launch to update, and does not have an excessive impact on the user's current operation, ensuring that the application can be updated in time. At the same time, it also ensures that the application can be used effectively.
  • FIG. 1 is a schematic flowchart of an implementation process of a resource update method according to Embodiment 1 of the present application;
  • FIG. 2 is a schematic flowchart of an implementation process of a resource update method according to Embodiment 2 of the present application;
  • FIG. 3 is a schematic flowchart of an implementation process of a resource update method according to Embodiment 3 of the present application.
  • FIG. 4 is a schematic flowchart of an implementation process of a resource update method according to Embodiment 4 of the present application.
  • FIG. 5 is a schematic flowchart of implementing a resource update method according to Embodiment 5 of the present application.
  • FIG. 6 is a system interaction diagram of a resource update system according to Embodiment 6 of the present application.
  • FIG. 1 is a flowchart of implementing a resource update method according to Embodiment 1 of the present application, which is described in detail as follows:
  • the page resource version identifier in the local page resource package is read, and the handshake request information including the page resource version identifier is sent to the resource server.
  • the web page resource package includes, but is not limited to, a local page resource package and a page resource update package.
  • the local page resource package refers to a web page resource package currently used by the application for offline storage
  • the page resource update package is a pointer for optimizing the deficiencies or vulnerabilities existing in the old version of the web page resource package, and is used for Version of the Web Page Resource Pack for version update and upgrade of the Web Page Resource Pack.
  • the page resource version identifier is used to identify the version of the web page resource package. By comparing the page resource version identifiers, it is possible to determine the new and old versions of the two web page resource bundles.
  • the resource server After receiving the handshake request, the resource server compares the page resource version identifier with the page resource version identifier included in the page resource update package, and compares the application local page resource package to the application when comparing Push the download link for the page resource update package.
  • the traditional page resource package update method is that the application polls the server based on the HTTP protocol. Since the time for the technician to publish the page resource update package to the server cannot be determined, it may be released before the application is started, and there are also It may not be released during the startup of the application. Therefore, when the polling mechanism is used to query the page resource update, the application needs to actively perform the page resource update query to the resource server multiple times, which will bring the application to the application. Large query workloads affect the performance of the application. In order to reduce the workload of the application page resource update query, in the embodiment of the present application, the resource server actively pushes the update download link to the application to perform the page resource update query.
  • the server can transmit data to the application only when the application requests the resource from the resource server, which cannot meet the requirements of the embodiment of the present application. Therefore, the resource server actively pushes data to the application.
  • a duplex protocol that can actively send data to the application is used to implement communication data transmission between the application and the resource server, including but not limited to, for example, the WebSocket protocol.
  • the resource server After receiving the handshake request, the resource server establishes a connection channel with the application, and compares the page resource identifier included in the handshake request with the included page resource version identifier in the stored page resource update package to determine the application.
  • the local page resource bundle and the page resource update package version in the resource server are old and new. If the version of the local page resource package is older than the version of the page resource update package, the local page resource package is an old version of the web page resource package, and needs to be updated.
  • the resource server generates a download link of the page resource update package, and passes the The connection channel is sent to the application to remind the application to update the page resources.
  • the application downloads a page resource update package by using a download link, and performs keyword search on the update description data corresponding to the page resource update package, and determines whether the update description data includes a preset keyword.
  • the update description data is mainly used to inform the user that the page resource update package is improved compared with the old version, such as patching the security vulnerability, updating the function module, beautifying the page, etc., by the resource server. Send the download link to the app as soon as it is pushed.
  • the update is preferably divided into three categories, and the corresponding page resource update package is divided into three categories, including: security for performing security class update on security issues related to application vulnerability repair.
  • Class update package for time-based class update packages that do not involve application security issues, but that involve age-sensitive class updates that require more time-sensitive updates, such as application feature updates, and for use in the above-mentioned security class updates with time-sensitive class updates.
  • the update description includes relevant keywords to improve the update point, such as "vulnerabilities", “fixes” and “patches” related to security updates.
  • the technical staff will sort out the keywords related to the security class update and the aging update, and preset the obtained keywords into the application, and the application passes these By matching the preset keywords, the type of the update can be determined and the corresponding update strategy can be executed.
  • the local page resource package is updated by using the page resource update package when detecting that the display page of the application is switched, closed, or refreshed.
  • the update description data does not include the preset keyword, it indicates that the update is a common class update, and does not involve security problem repair and aging requirements.
  • the application is timely updated.
  • the user monitors the operation of the currently displayed page of the application, and determines whether the user controls the application to leave the current display page, such as whether the user refreshes the page, switches the page, or closes the page, when the user controls the application to leave the current display.
  • the page indicates that the user does not need to use the current display page at this time.
  • the page resource update package is decompressed to overwrite the local page resource package, and the update of the local page resource package is completed, which can greatly reduce the normal to the user. Use the impact of the application to achieve even updates to the application while ensuring normal user use.
  • the closed page in the embodiment of the present application includes at least the above two types. happening.
  • the communication data transmission between the resource server and the application is implemented by using, for example, the WebSocket protocol, and the resource server performs automatic identification of the page resource package update, and when it is determined that the local page resource package update is required, Proactively push the download link to the application, the application only needs to send a handshake request message with the local page resource version identifier to the resource server at startup, so that the query of the page resource package update can be realized, and the application is greatly reduced.
  • the amount of query work.
  • the keyword search is performed according to the update description data corresponding to the page resource update package, and the current update is recognized as a normal class update, and only when the user leaves the currently displayed page.
  • the update enables the update to be updated without the need to wait for the next application launch, without significantly affecting the user's current operations, while ensuring that the application can be updated in a timely manner while ensuring that the application can be used effectively.
  • the method includes:
  • the page resource update package is determined to be a security class update package, and the security class update package is used for a local page resource package. Existing security vulnerabilities are updated.
  • the update is divided into three categories in the embodiment of the present application, and the page resource update package is also divided into three types, and the type identification of the page resource update package is implemented by the keyword search.
  • the first type of preset keyword is a keyword related to the security class update, including but not limited to, such as “vulnerability”, “repair” and “patches”, because the number of keywords related to the security class update is compared. Many of them are well known to those skilled in the art, and therefore, they are not enumerated here. If it is recognized that the update description data includes the first type of preset keyword, it indicates that the update involves an update to the application security issue, so the updated page resource update package is a security class update package.
  • the control application stops responding to the user's operation instruction until the update of the local page resource package is completed by using the page resource update package.
  • the security class update directly relates to whether the application can be used safely, especially for applications related to important user information data and user property data, such as banking applications, if the local pages of these applications are not timely Resource pack updates may result in user information disclosure and property damage. Therefore, in order to ensure that the user can securely use the application and ensure the security of the user data, the embodiment of the present application stops responding to any operation instruction input by the user to the application after downloading the page resource update package, that is, the user cannot The application performs any operation, directly forces the application to update, and restarts the application after the forced update is completed, restoring the normal response to the user's operation instructions.
  • the display page of the control application directly displays the page displayed by the application when the forced update is started, so that the user can continue to use the application more conveniently.
  • the page resource update package is identified as a security class update package by keyword search.
  • the update is a security class update
  • the user operation is stopped and forced update is performed to ensure user data security.
  • the forced update is completed, the page at the time of starting the update is continuously displayed, so that the user can use the application more conveniently, and the effect of the update on the normal use of the user is reduced.
  • the method includes:
  • the page resource update package is an aging-time update package, and performing functions on the currently displayed page of the application.
  • the module recognizes and sorts the used function modules by using frequency, and the aging class update package is used to perform function module update on the local page resource package.
  • the second type of preset keywords in the third embodiment of the present application is a keyword related to the update of the aging class, including but not limited to, for example, “function modification”, “function adjustment”, “function deletion”,
  • the number of keywords related to the aging update is large and is well known to those skilled in the art, and therefore, it is not enumerated here.
  • the aging class update is mainly an update to the application function module, such as adding some functions or culling/modifying some functions. Although this type of update has nothing to do with the safe use of the application, due to changes in the functions in the application, this If the user does not update in time, the user may not be able to respond properly when clicking on the function that is modified in the application, and may even run an error. Therefore, the time-based update requires a timely update. Update the application to ensure the normal use of the user.
  • a page resource update may involve both security updates and aging updates, considering that security updates are much more important than aging updates, they should respond with standards for security class updates. Therefore, in the update description data, as long as the keyword related to the security class update is included, and the packet does not include the keyword related to the aging update, in the embodiment of the present application, the update is responded to as the security class update. Only when it contains keywords related to the update of the aging class will it respond as an aging update.
  • a page is composed of multiple function modules.
  • function recognition on the display page it is easy to confirm the function modules included in the display page.
  • a page can be searched for by hot recommendation, main business, and account information.
  • Module composition Since the user must have a certain difference in the frequency of use of each function module, the lower the frequency, the less likely the user is to use the function. Therefore, in the embodiment of the present application, in order to implement timely updating of the time-sensitive update. To ensure the normal use of the application by the user, the function modules with low frequency of use will be preferentially updated one by one, so that the impact on the normal use of the user is minimized.
  • the operation data of the user to the application is first read, and the operation data of each function module corresponding to the currently displayed page of the user is found out.
  • the operation data of the application to the application is recorded by the application when receiving the operation instruction input by the user, and the operation data recorded by the application program should not be too large, so as to prevent the normal operation of the application, the application
  • the recorded operation data may be stored in a manner of being uploaded to a server corresponding to the application, or may be stored locally only by storing operation data within a preset time range, and deleting the expired data in a local manner.
  • the operation data of the user in the past month is stored locally, and the data exceeding one month is deleted, so as to prevent the storage space occupied by the operation data from being too large, which affects the normal use of the application, and the specific manner of storage may be used.
  • the technicians are selected according to the actual situation.
  • the operation data that is too long from the current time. The value is lower. Therefore, in order to achieve a better reduction of the impact on the normal use of the user, it is preferable to use the operation data of the preset duration before the current time to calculate the usage frequency of the function module, such as only for one week of the user's current time.
  • the operation data is used to calculate the frequency of use of the function module, and the specific preset duration can be set by the technician according to actual needs.
  • the preset time since the operation data stored in the preset time range may be taken during the operation data storage, in order to ensure the normal calculation of the frequency of use of the function module, the preset time must be greater than or equal to the frequency calculation corresponding to The preset duration.
  • the number of times each function module is used in the preset duration is separately counted, and the corresponding use frequency of each function module in the preset duration is obtained. For example, 100 times/week, and using the obtained frequency of use, the function modules in the current display page are sorted in frequency, and then the function modules are updated in order from low to high.
  • the function module when the function module is updated, it is identified whether the user is currently operating the function module, and if the user is identified to be operating on a function module, the function module is used as the last update. Functional module.
  • the application is updated.
  • the embodiment is the same as the processing method in S104. For details, refer to the related description of S104, and details are not described herein again.
  • the matching description data is preferentially matched to whether the first type of preset keywords are included in the update description data.
  • the second type of preset keyword is matched.
  • the function module of the display page is used according to the frequency of use.
  • the update is sequentially performed, so that the update of the display page is completed in time and effectively without affecting the normal use of the user.
  • the method includes:
  • the page resource update package is not a security class update package
  • the page resource update package download and the video stream transmission are controlled by flow, and the video stream is preferentially transmitted.
  • the embodiment of the present application when it is detected that there is video streaming in the display page, it indicates that the user may be watching the video. Because the bandwidth requirement of the video is high, more bandwidth traffic is required to play normally, and the downloading of the page resource update packet requires more bandwidth traffic. In this case, the two simultaneous operations may affect the normal viewing of the video by the user.
  • the page resource update package to be downloaded is a security class update package. If the security package is not updated, the update does not involve the data security of the user. In this case, in order to ensure that the user can normally use the application to view the video normally, the embodiment of the present application preferentially allocates bandwidth traffic to video playback.
  • the page update resource package download task and the video stream download task may be prioritized, so that the video stream download task may be preferentially executed.
  • the specific priority setting method includes but is not limited to the following methods. :
  • the page update resource package download task and the video stream download task are assigned different bandwidth traffic priorities, so that the bandwidth of the video stream download task is higher than the page update resource package.
  • the thread corresponding to the high-priority download task is preferentially guaranteed to transmit data, and the bandwidth requirement of the high-priority download task is satisfied.
  • Bandwidth traffic is allocated to low priority download tasks. For example, when a user watches a video that requires high bandwidth traffic (such as watching a video with high definition), and the maximum bandwidth that can be used by the application is difficult to meet or just meets the video playback requirements, the application does not have excess bandwidth.
  • the traffic is allocated to the page update resource bundle download task, so that the available bandwidth traffic of the page update resource bundle download task is zero. Conversely, if the maximum bandwidth that the application can use is greater than the video playback requirement, the excess bandwidth traffic is allocated to the page update resource bundle download task for downloading the page update resource bundle.
  • the embodiment of the present application performs flow control on downloading of the page resource update package and video stream transmission, and preferentially downloads the page resource update package to ensure User data is secure.
  • the priority setting method adopted in the embodiment of the present application is the same as the above, and only the priority of the page update resource package download task needs to be set to be greater than the priority of the video stream download task.
  • the method further includes:
  • the page corresponding to the switching/refresh operation in the display page of the updated application is switched, so that the user can Continue to use the application normally after the update, which is convenient for the user to use the application normally.
  • the workload of the application update query is greatly reduced by using the server to actively push the page resource update package download link.
  • the application intelligently adjusts the bandwidth of the update package download and the video stream transmission when the user watches the video, and automatically identifies the type of the update by keyword search after the download is completed, and performs the characteristics of each update type.
  • the targeted response enables the user to take into account the normal use of the application and the timely update of the application, ensuring that the application can be updated in time while ensuring the normal use of the application.
  • FIG. 6 is a structural block diagram of a resource updating apparatus provided by an embodiment of the present application.
  • the resource update device illustrated in FIG. 6 may be the execution body of the resource update method provided in the foregoing first embodiment.
  • the resource update system includes: an application and a server;
  • the application is configured to: when starting, read a page resource version identifier in the local page resource package, and send handshake request information including the page resource version identifier to the resource server.
  • the resource server is configured to compare the page resource version identifier with the included page resource version identifier in the page resource update package after receiving the handshake request, and compare the described application When the local page resource package needs to be updated, the download link of the page resource update package is pushed to the application.
  • the application is further configured to download the page resource update package by using the download link, perform keyword search on the update description data corresponding to the page resource update package, and determine whether the update description data includes a preset key. word.
  • the application is further configured to: if the result of the keyword search is that the preset description keyword is not included in the update description data, when detecting that the display page of the application is switched, closed, or refreshed,
  • the page resource update package updates the local page resource package.
  • the application is further configured to determine that the page resource update package is a security class if a result of the keyword search is that the update description data includes a first type of preset keyword in the preset keyword.
  • An update package, the security class update package is used to update a security vulnerability existing in the local page resource package.
  • the application is further configured to: if the result of the keyword search is that the update description data includes only the second type of preset keywords in the preset keyword, determine that the page resource update package is An aging-time update package, performing function module identification on a page currently displayed by the application, and performing frequency usage ordering on the identified function module, where the aging-time update package is used to perform function module update on the local page resource package .
  • the function module is updated in order from the lowest frequency to the high frequency by using the page resource update package.
  • the application is further configured to determine, according to the keyword search result, whether the page resource update package is the security class update package, if the video stream transmission is found in the display page of the application.
  • the page resource update package is not the security class update package
  • downloading the page resource update package and the video stream transmission are performed. Flow control, the video stream is preferentially transmitted.
  • the application is further configured to: after detecting that the current display page of the application is switched, display the application after updating the local page resource package by using the page resource update package The page is switched.
  • first, second, and the like are used in the text to describe various elements in the embodiments of the present application, these elements should not be limited by these terms. These terms are only used to distinguish one element from another.
  • the first contact can be named a second contact, and similarly, the second contact can be named the first contact without departing from the scope of the various described embodiments. Both the first contact and the second contact are contacts, but they are not the same contact.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated modules/units if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium.
  • the present application implements all or part of the processes in the foregoing embodiments, and may also be implemented by an application to instruct related hardware, where the application may be stored in a computer readable storage medium, the application
  • the steps of the various method embodiments described above may be implemented when the program is executed by the processor.
  • the application includes code of an application, and the application code may be in the form of source code, an object code form, an executable file, or some intermediate form.
  • the computer readable medium may include any entity or device capable of carrying the application code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read only memory (ROM, Read-Only) Memory), random access memory (RAM, Random) Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. It should be noted that the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in a jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, computer readable media Does not include electrical carrier signals and telecommunication signals.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

Provided are a resource updating method and system, an electronic device, and a medium, wherein same are applicable to the technical field of data processing. The method comprises: when started, an application program sending handshake request information including a page resource version identifier to a resource server; the resource server pushing a page resource update package downloading link to the application program when it is found, through comparison, that a local page resource package of the application program needs to be updated; the application program downloading the page resource update package and carrying out a keyword search according to update description data; and if the update description data does not include a pre-set keyword, updating the local page resource package by using the page resource update package when it is detected that a display page of the application program is switched, closed or refreshed. By means of using a server for downloading and pushing, the query workload of an application program is greatly reduced; moreover, a common class update is carried out only when a user leaves the current page, thereby ensuring that the application program can be updated in time and also ensuring that the application program can be used effectively.

Description

一种资源更新方法、系统、电子设备及介质Resource update method, system, electronic device and medium
本申请要求于2017年12月08日提交中国专利局、申请号为201711297980.6、发明名称为“一种资源更新方法及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. PCT Application No. No. No. No. No. No. No. No. No. No. No. No. No. No. .
技术领域Technical field
本申请属于数据处理技术领域,尤其涉及一种资源更新方法、系统、电子设备及介质。The present application belongs to the field of data processing technologies, and in particular, to a resource update method, system, electronic device, and medium.
背景技术Background technique
为了缩短应用程序的开发周期,提高应用程序在各个终端的兼容性,很多应用程序采用混合开发模式进行开发,即应用程序中嵌入了Web页面作为功能页面。但应用程序加载的Web页面内容会随着迭代开发而多次发版更新功能,这就导致了第一次加载页面或页面有更新后再次加载页面会花费较长时间去加载Web页面资源,为了解决这一问题,现在很多应用程序都是采用了离线页面资源包的模式来进行页面资源的存储,即将页面资源包一起打包整合进应用程序,需要时再进行调用,极大地加快了Web页面响应的速度。In order to shorten the development cycle of the application and improve the compatibility of the application in each terminal, many applications are developed in a hybrid development mode, that is, the Web page is embedded as a function page in the application. However, the content of the web page loaded by the application will be updated several times with the iterative development, which causes the first time the page is loaded or the page is updated and the page is loaded again. It takes a long time to load the web page resource. To solve this problem, many applications now use the offline page resource package mode to store page resources, that is, the page resource package is packaged and integrated into the application, and then called when needed, greatly speeding up the web page response. speed.
由于Web页面资源更新较快,页面资源包时常需要更新,目前一般采用在应用程序启动时开始,基于HTTP协议以固定时间间隔向资源服务器发送更新查询请求进行更新查询,资源服务器需要在接收到更新查询请求后,查询页面资源包是否进行了更新,并在查询完成后对应用程序进行响应,由于每次查询应用程序都需要发送一条更新查询请求,同时还需要等候服务器进行响应才能确定是否需要更新,这使得应用程序的查询工作量较大,影响了应用程序的性能。同时现有技术中很多都是在更新包下载完成后等下一次启动应用程序时,才会对页面资源包进行更新,这使得应用程序的更新滞后,用户难以体验到最新的页面功能。而在下载完成后直接对页面资源包进行更新,又会导致应用程序无法正常使用。Due to the fast update of web page resources, the page resource package often needs to be updated. At present, the application generally starts at the startup of the application, and sends an update query request to the resource server for update query at a fixed time interval based on the HTTP protocol, and the resource server needs to receive the update. After querying the request, the query page resource package is updated, and the application is responded after the query is completed. Since each query application needs to send an update query request, and also needs to wait for the server to respond to determine whether it needs to be updated. This makes the application's query workload a lot, affecting the performance of the application. At the same time, many of the prior art will update the page resource package when the application is started next time after the update package is downloaded, which makes the update of the application lag, and it is difficult for the user to experience the latest page function. If the page resource package is updated directly after the download is completed, the application will not work properly.
因此,现有技术的页面资源包更新方法,对应用程序性能影响较大且更新滞后,难以保证应用程序及时有效的更新与使用。Therefore, the prior art page resource package update method has a large impact on application performance and the update is lagging, and it is difficult to ensure timely and effective update and use of the application.
技术问题technical problem
有鉴于此,本申请实施例提供了一种资源更新方法及系统,以解决现有技术中难以对应用程序页面资源包进行及时有效的更新与使用的问题。In view of this, the embodiment of the present application provides a resource update method and system, which solves the problem that it is difficult to timely and effectively update and use the application page resource package in the prior art.
技术解决方案Technical solution
本申请实施例的第一方面提供了一种资源更新方法,包括:A first aspect of the embodiment of the present application provides a resource update method, including:
应用程序在启动时,读取本地页面资源包中的页面资源版本标识,并向资源服务器发送包含所述页面资源版本标识的握手请求信息;When the application starts, the page resource version identifier in the local page resource package is read, and the handshake request information including the page resource version identifier is sent to the resource server;
所述资源服务器在接收到所述握手请求后,将所述页面资源版本标识与页面资源更新包中的包含的页面资源版本标识进行对比,并在对比出所述应用程序的所述本地页面资源包需要更新时,向所述应用程序推送所述页面资源更新包的下载链接;After receiving the handshake request, the resource server compares the page resource version identifier with the included page resource version identifier in the page resource update package, and compares the local page resource of the application. When the package needs to be updated, the download link of the page resource update package is pushed to the application;
所述应用程序通过所述下载链接下载所述页面资源更新包,并对所述页面资源更新包对应的更新说明数据进行关键词查找,判断所述更新说明数据中是否包含预设关键词;The application program downloads the page resource update package by using the download link, and performs keyword search on the update description data corresponding to the page resource update package, and determines whether the update description data includes a preset keyword;
若关键词查找的结果为所述更新说明数据中不包含所述预设关键词,则在检测出所述应用程序的显示页面被切换、关闭或刷新时,利用所述页面资源更新包对所述本地页面资源包进行更新。If the result of the keyword search is that the preset keyword is not included in the update description data, when the display page of the application is detected to be switched, closed, or refreshed, the page resource update package is used. The local page resource bundle is updated.
本申请实施例的第二方面提供了一种资源更新系统,包括:应用程序以及服务器;A second aspect of the embodiments of the present application provides a resource update system, including: an application and a server;
所述应用程序,用于在启动时,读取本地页面资源包中的页面资源版本标识,并向资源服务器发送包含所述页面资源版本标识的握手请求信息;The application is configured to: when starting, read a page resource version identifier in the local page resource package, and send handshake request information including the page resource version identifier to the resource server;
所述资源服务器,用于在接收到所述握手请求后,将所述页面资源版本标识与页面资源更新包中的包含的页面资源版本标识进行对比,并在对比出所述应用程序的所述本地页面资源包需要更新时,向所述应用程序推送所述页面资源更新包的下载链接;The resource server is configured to compare the page resource version identifier with the included page resource version identifier in the page resource update package after receiving the handshake request, and compare the described application When the local page resource package needs to be updated, the download link of the page resource update package is pushed to the application;
所述应用程序还用于通过所述下载链接下载所述页面资源更新包,并对所述页面资源更新包对应的更新说明数据进行关键词查找,判断所述更新说明数据中是否包含预设关键词;The application is further configured to download the page resource update package by using the download link, perform keyword search on the update description data corresponding to the page resource update package, and determine whether the update description data includes a preset key. word;
所述应用程序还用于若关键词查找的结果为所述更新说明数据中不包含所述预设关键词,则在检测出所述应用程序的显示页面被切换、关闭或刷新时,利用所述页面资源更新包对所述本地页面资源包进行更新。The application is further configured to: if the result of the keyword search is that the preset description keyword is not included in the update description data, when detecting that the display page of the application is switched, closed, or refreshed, The page resource update package updates the local page resource package.
本申请实施例的第三方面提供了一种资源更新电子设备,包括存储器、处理器,所述存储器上存储有可在所述处理器上运行的应用程序,所述处理器执行所述应用程序时实现如下步骤:A third aspect of the embodiments of the present application provides a resource update electronic device, including a memory, a processor, and an application running on the processor, where the processor executes the application The following steps are implemented:
在启动时,读取本地页面资源包中的页面资源版本标识,并向资源服务器发送包含所述页面资源版本标识的握手请求信息,以使得资源服务器在接收到所述握手请求后,将所述页面资源版本标识与页面资源更新包中的包含的页面资源版本标识进行对比,并在对比出所述应用程序的所述本地页面资源包需要更新时,向所述应用程序推送所述页面资源更新包的下载链接;At startup, reading a page resource version identifier in the local page resource package, and sending handshake request information including the page resource version identifier to the resource server, so that the resource server, after receiving the handshake request, The page resource version identifier is compared with the included page resource version identifier in the page resource update package, and when the local page resource package of the application needs to be updated, the page resource update is pushed to the application. Package download link;
通过所述下载链接下载所述页面资源更新包,并对所述页面资源更新包对应的更新说明数据进行关键词查找,判断所述更新说明数据中是否包含预设关键词;Downloading, by the download link, the page resource update package, and performing keyword search on the update description data corresponding to the page resource update package, and determining whether the update description data includes a preset keyword;
若关键词查找的结果为所述更新说明数据中不包含所述预设关键词,则在检测出所述应用程序的显示页面被切换、关闭或刷新时,利用所述页面资源更新包对所述本地页面资源包进行更新。If the result of the keyword search is that the preset keyword is not included in the update description data, when the display page of the application is detected to be switched, closed, or refreshed, the page resource update package is used. The local page resource bundle is updated.
本申请实施例的第四方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储有应用程序,其特征在于,所述应用程序被至少一个处理器执行时实现如下步骤:A fourth aspect of the embodiments of the present application provides a computer readable storage medium storing an application, wherein the application is executed by at least one processor to implement the following steps:
在启动时,读取本地页面资源包中的页面资源版本标识,并向资源服务器发送包含所述页面资源版本标识的握手请求信息,以使得资源服务器在接收到所述握手请求后,将所述页面资源版本标识与页面资源更新包中的包含的页面资源版本标识进行对比,并在对比出所述应用程序的所述本地页面资源包需要更新时,向所述应用程序推送所述页面资源更新包的下载链接;At startup, reading a page resource version identifier in the local page resource package, and sending handshake request information including the page resource version identifier to the resource server, so that the resource server, after receiving the handshake request, The page resource version identifier is compared with the included page resource version identifier in the page resource update package, and when the local page resource package of the application needs to be updated, the page resource update is pushed to the application. Package download link;
通过所述下载链接下载所述页面资源更新包,并对所述页面资源更新包对应的更新说明数据进行关键词查找,判断所述更新说明数据中是否包含预设关键词;Downloading, by the download link, the page resource update package, and performing keyword search on the update description data corresponding to the page resource update package, and determining whether the update description data includes a preset keyword;
若关键词查找的结果为所述更新说明数据中不包含所述预设关键词,则在检测出所述应用程序的显示页面被切换、关闭或刷新时,利用所述页面资源更新包对所述本地页面资源包进行更新。If the result of the keyword search is that the preset keyword is not included in the update description data, when the display page of the application is detected to be switched, closed, or refreshed, the page resource update package is used. The local page resource bundle is updated.
有益效果Beneficial effect
通过资源服务器来进行页面资源包更新的自动判别,并在确定出需要进行本地页面资源包更新时,主动向应用程序推送下载链接,应用程序只需在启动时发送一个带有本地页面资源版本标识的握手请求信息至资源服务器,即可实现对页面资源包更新的查询,极大地减小了应用程序的查询工作量。而在根据下载链接完成页面资源更新包的下载后,根据页面资源更新包对应的更新说明数据进行关键词查找,并在更新说明数据不包含任何预设关键词时,即本次更新为普通类更新时,仅在用户脱离当前显示的页面时进行更新,使得更新既无需等到下一次应用程序的启动才能进行更新,又不会对用户当前的操作产生过大影响,在保证应用程序能及时更新的同时,也保证了应用程序可以有效使用。The resource server is used to automatically identify the page resource package update, and when it is determined that the local page resource package update is needed, the download link is actively pushed to the application, and the application only needs to send a local page resource version identifier at startup. The handshake request information is sent to the resource server, so that the query of the page resource package update can be realized, which greatly reduces the query workload of the application. After the downloading of the page resource update package is completed according to the download link, the keyword search is performed according to the update description data corresponding to the page resource update package, and when the update description data does not include any preset keyword, the update is normal. When updating, the update is only performed when the user leaves the currently displayed page, so that the update does not need to wait until the next application launch to update, and does not have an excessive impact on the user's current operation, ensuring that the application can be updated in time. At the same time, it also ensures that the application can be used effectively.
附图说明DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only the present application. For some embodiments, other drawings may be obtained from those of ordinary skill in the art in light of the inventive workability.
图1是本申请实施例一提供的资源更新方法的实现流程示意图;1 is a schematic flowchart of an implementation process of a resource update method according to Embodiment 1 of the present application;
图2是本申请实施例二提供的资源更新方法的实现流程示意图;2 is a schematic flowchart of an implementation process of a resource update method according to Embodiment 2 of the present application;
图3是本申请实施例三提供的资源更新方法的实现流程示意图;3 is a schematic flowchart of an implementation process of a resource update method according to Embodiment 3 of the present application;
图4是本申请实施例四提供的资源更新方法的实现流程示意图;4 is a schematic flowchart of an implementation process of a resource update method according to Embodiment 4 of the present application;
图5是本申请实施例五提供的资源更新方法的实现流程示意图;5 is a schematic flowchart of implementing a resource update method according to Embodiment 5 of the present application;
图6是本申请实施例六提供的资源更新系统的系统交互图。FIG. 6 is a system interaction diagram of a resource update system according to Embodiment 6 of the present application.
本发明的实施方式Embodiments of the invention
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for purposes of illustration and description However, it will be apparent to those skilled in the art that the present invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, circuits, and methods are omitted so as not to obscure the description of the application.
为了说明本申请所述的技术方案,下面通过具体实施例来进行说明。In order to explain the technical solutions described in the present application, the following description will be made by way of specific embodiments.
图1示出了本申请实施例一提供的资源更新方法的实现流程图,详述如下:FIG. 1 is a flowchart of implementing a resource update method according to Embodiment 1 of the present application, which is described in detail as follows:
S101,应用程序在启动时,读取本地页面资源包中的页面资源版本标识,并向资源服务器发送包含页面资源版本标识的握手请求信息。S101. When the application starts, the page resource version identifier in the local page resource package is read, and the handshake request information including the page resource version identifier is sent to the resource server.
应当说明的,在本申请实施例中,Web页面资源包包括但不限于本地页面资源包以及页面资源更新包。其中,本地页面资源包是指应用程序当前离线存储使用的Web页面资源包,页面资源更新包是指针对旧版本的Web页面资源包中存在的不足或漏洞进行优化后发布的,用于对旧版本的Web页面资源包进行版本更新升级的Web页面资源包。页面资源版本标识用于标识Web页面资源包的版本,通过将页面资源版本标识进行对比,可以判断出两个Web页面资源包版本的新旧。It should be noted that, in the embodiment of the present application, the web page resource package includes, but is not limited to, a local page resource package and a page resource update package. The local page resource package refers to a web page resource package currently used by the application for offline storage, and the page resource update package is a pointer for optimizing the deficiencies or vulnerabilities existing in the old version of the web page resource package, and is used for Version of the Web Page Resource Pack for version update and upgrade of the Web Page Resource Pack. The page resource version identifier is used to identify the version of the web page resource package. By comparing the page resource version identifiers, it is possible to determine the new and old versions of the two web page resource bundles.
S102,资源服务器在接收到握手请求后,将页面资源版本标识与页面资源更新包中的包含的页面资源版本标识进行对比,并在对比出应用程序的本地页面资源包需要更新时,向应用程序推送页面资源更新包的下载链接。S102: After receiving the handshake request, the resource server compares the page resource version identifier with the page resource version identifier included in the page resource update package, and compares the application local page resource package to the application when comparing Push the download link for the page resource update package.
传统的页面资源包更新方法都是由应用程序基于HTTP协议向服务器进行轮询,由于技术人员向服务器发布页面资源更新包的时间无法确定,既有可能在应用程序启动之前就已经发布了,也有可能在应用程序此次启动使用过程中都不会发布,因此,采用轮询机制进行页面资源更新查询时,应用程序需要多次主动向资源服务器进行页面资源更新查询,会给应用程序带来较大的查询工作量,对应用程序的性能造成影响。为了减小应用程序页面资源更新查询的工作量,本申请实施例中,采用资源服务器主动向应用程序推送更新下载链接的方式,来进行页面资源更新查询。由于传统的HTTP协议属于单向协议,只有应用程序向资源服务器请求资源时,服务器才能将数据传输给应用程序,无法满足本申请实施例的需求,因此为了实现的资源服务器主动向应用程序推送数据,本申请实施例中优选地,可采用可以主动向应用程序发送数据的双工协议来实现应用程序与资源服务器的通信数据传输,包括但不限于如WebSocket协议。The traditional page resource package update method is that the application polls the server based on the HTTP protocol. Since the time for the technician to publish the page resource update package to the server cannot be determined, it may be released before the application is started, and there are also It may not be released during the startup of the application. Therefore, when the polling mechanism is used to query the page resource update, the application needs to actively perform the page resource update query to the resource server multiple times, which will bring the application to the application. Large query workloads affect the performance of the application. In order to reduce the workload of the application page resource update query, in the embodiment of the present application, the resource server actively pushes the update download link to the application to perform the page resource update query. Since the traditional HTTP protocol is a one-way protocol, the server can transmit data to the application only when the application requests the resource from the resource server, which cannot meet the requirements of the embodiment of the present application. Therefore, the resource server actively pushes data to the application. Preferably, in the embodiment of the present application, a duplex protocol that can actively send data to the application is used to implement communication data transmission between the application and the resource server, including but not limited to, for example, the WebSocket protocol.
资源服务器在接收到握手请求后与应用程序建立连接通道,并通过将握手请求中包含的页面资源标识与存储的页面资源更新包中的包含的页面资源版本标识进行对比,判断出应用程序中的本地页面资源包与资源服务器中的页面资源更新包版本的新旧。若本地页面资源包的版本旧于页面资源更新包的版本,说明本地页面资源包是旧版本的Web页面资源包,需要进行更新,此时资源服务器会生成页面资源更新包的下载链接,并通过连接通道发送给应用程序,提醒应用程序进行页面资源更新。After receiving the handshake request, the resource server establishes a connection channel with the application, and compares the page resource identifier included in the handshake request with the included page resource version identifier in the stored page resource update package to determine the application. The local page resource bundle and the page resource update package version in the resource server are old and new. If the version of the local page resource package is older than the version of the page resource update package, the local page resource package is an old version of the web page resource package, and needs to be updated. At this time, the resource server generates a download link of the page resource update package, and passes the The connection channel is sent to the application to remind the application to update the page resources.
S103,应用程序通过下载链接下载页面资源更新包,并对页面资源更新包对应的更新说明数据进行关键词查找,判断更新说明数据中是否包含预设关键词。S103. The application downloads a page resource update package by using a download link, and performs keyword search on the update description data corresponding to the page resource update package, and determines whether the update description data includes a preset keyword.
其中,更新说明数据主要用于告知用户此次的页面资源更新包相对旧版本改进更新之处,常见的如对安全漏洞进行补丁,对功能模块进行更新,对页面进行美化等,由资源服务器在推送下载链接时一同发送给应用程序。The update description data is mainly used to inform the user that the page resource update package is improved compared with the old version, such as patching the security vulnerability, updating the function module, beautifying the page, etc., by the resource server. Send the download link to the app as soon as it is pushed.
在本申请实施例中,优选地将更新分为三类,并对应的将页面资源更新包划分为三大类,包括:用于对涉及到应用程序漏洞修复等安全问题进行安全类更新的安全类更新包,用于对没有涉及到应用程序安全问题,但涉及到应用程序功能更新等更新时效要求比较高的时效类更新的时效类更新包,以及用于上述安全类更新以时效类更新以外,进行普通类更新的普通类更新包。In the embodiment of the present application, the update is preferably divided into three categories, and the corresponding page resource update package is divided into three categories, including: security for performing security class update on security issues related to application vulnerability repair. Class update package for time-based class update packages that do not involve application security issues, but that involve age-sensitive class updates that require more time-sensitive updates, such as application feature updates, and for use in the above-mentioned security class updates with time-sensitive class updates. , a generic class update package for common class updates.
由于更新说明数据中在对每一类页面资源更新包进行更新说明时,都会涉及到具体的改进更新点说明,特别是对安全类更新以及时效类更新,必定会说明具体更新了什么安全问题,具体改进了什么时效功能,因此,更新说明中包含着改进更新点的相关关键词,如安全类更新相关的“漏洞”“修复”“补丁”等。正是利用这一特点,本申请实施例中,技术人员会预先对安全类更新以及时效类更新相关的关键词进行梳理,并将得到的关键词预设至应用程序中,应用程序通过对这些预设关键词进行匹配,即可判断出此次更新的类型,并执行相应的更新策略。Due to the update description of each type of page resource update package in the update description data, specific improvement update point descriptions will be involved, especially for security class updates and time-sensitive class updates, which will definitely indicate what security issues have been specifically updated. What aging features have been specifically improved, so the update description includes relevant keywords to improve the update point, such as "vulnerabilities", "fixes" and "patches" related to security updates. With this feature, in the embodiment of the present application, the technical staff will sort out the keywords related to the security class update and the aging update, and preset the obtained keywords into the application, and the application passes these By matching the preset keywords, the type of the update can be determined and the corresponding update strategy can be executed.
S104,若关键词查找的结果为更新说明数据中不包含预设关键词,则在检测出应用程序的显示页面被切换、关闭或刷新时,利用页面资源更新包对本地页面资源包进行更新。S104. If the result of the keyword search is that the update description data does not include the preset keyword, the local page resource package is updated by using the page resource update package when detecting that the display page of the application is switched, closed, or refreshed.
当更新说明数据中不包含预设关键词时,说明本次更新是普通类更新,没有涉及安全问题修复以及时效要求,为了在尽量减少对用户使用影响的同时,保证应用程序的及时更新,本申请实施例中会对用户对应用程序当前显示页面的操作进行监测,判断用户是否控制应用程序脱离当前显示页面时,如用户是否刷新页面、切换页面或者关闭页面,当用户控制应用程序脱离当前显示页面时,说明用户此时已经不需要使用当前显示页面了,此时对页面资源更新包进行解压覆盖本地页面资源包,完成对本地页面资源包的更新,可很大程度的减小对用户正常使用应用程序的影响,在保证用户正常使用的同时,实现对应用程序的即使更新。When the update description data does not include the preset keyword, it indicates that the update is a common class update, and does not involve security problem repair and aging requirements. In order to minimize the impact on the user, the application is timely updated. In the application embodiment, the user monitors the operation of the currently displayed page of the application, and determines whether the user controls the application to leave the current display page, such as whether the user refreshes the page, switches the page, or closes the page, when the user controls the application to leave the current display. The page indicates that the user does not need to use the current display page at this time. At this time, the page resource update package is decompressed to overwrite the local page resource package, and the update of the local page resource package is completed, which can greatly reduce the normal to the user. Use the impact of the application to achieve even updates to the application while ensuring normal user use.
应当说明的,由于用户直接选择关闭当前显示页面或者用户控制应用程序进入后台运行时,都会导致当前显示页面无法在用户的终端中进行显示,因此本申请实施例中的关闭页面至少包含上述两种情况。It should be noted that, because the user directly selects to close the current display page or the user control application enters the background, the current display page cannot be displayed in the user's terminal. Therefore, the closed page in the embodiment of the present application includes at least the above two types. Happening.
在本申请实施例中,通过使用如WebSocket协议来实现资源服务器与应用程序的通信数据传输,由资源服务器来进行页面资源包更新的自动判别,并在确定出需要进行本地页面资源包更新时,主动向应用程序推送下载链接,应用程序只需在启动时发送一个带有本地页面资源版本标识的握手请求信息至资源服务器,即可实现对页面资源包更新的查询,极大地减小了应用程序的查询工作量。在根据下载链接完成页面资源更新包的下载后,根据页面资源更新包对应的更新说明数据进行关键词查找,并识别出本次更新为普通类更新时,仅在用户脱离当前显示的页面时进行更新,使得更新既无需等到下一次应用程序的启动才能进行更新,又不会对用户当前的操作产生过大影响,在保证应用程序能及时更新的同时,也保证了应用程序可以有效使用。In the embodiment of the present application, the communication data transmission between the resource server and the application is implemented by using, for example, the WebSocket protocol, and the resource server performs automatic identification of the page resource package update, and when it is determined that the local page resource package update is required, Proactively push the download link to the application, the application only needs to send a handshake request message with the local page resource version identifier to the resource server at startup, so that the query of the page resource package update can be realized, and the application is greatly reduced. The amount of query work. After the download of the page resource update package is completed according to the download link, the keyword search is performed according to the update description data corresponding to the page resource update package, and the current update is recognized as a normal class update, and only when the user leaves the currently displayed page. The update enables the update to be updated without the need to wait for the next application launch, without significantly affecting the user's current operations, while ensuring that the application can be updated in a timely manner while ensuring that the application can be used effectively.
作为本申请优选实施例二,如图2所示,包括:As a preferred embodiment 2 of the present application, as shown in FIG. 2, the method includes:
S105,若关键词查找的结果为更新说明数据中包含预设关键词中的第一类预设关键词,判定页面资源更新包为安全类更新包,安全类更新包用于对本地页面资源包存在的安全漏洞进行更新。S105. If the result of the keyword search is that the update description data includes the first type of preset keywords in the preset keyword, the page resource update package is determined to be a security class update package, and the security class update package is used for a local page resource package. Existing security vulnerabilities are updated.
由S103相关说明可知,本申请实施例中将更新分为三类,将页面资源更新包也划分为了对应三类,并通过关键词查找的方式来实现对页面资源更新包的类型识别。本申请实施例中,第一类预设关键词即为与安全类更新相关的关键词,包括但不限于如“漏洞”“修复”“补丁”,由于与安全类更新相关的关键词数量较多且都属于本领域技术人员熟知的内容,因此,此处不一一进行列举。若识别出更新说明数据中包含第一类预设关键词,则说明此处更新涉及到对应用程序安全问题的更新,因此此次更新的页面资源更新包为安全类更新包。It can be seen from the description of S103 that the update is divided into three categories in the embodiment of the present application, and the page resource update package is also divided into three types, and the type identification of the page resource update package is implemented by the keyword search. In the embodiment of the present application, the first type of preset keyword is a keyword related to the security class update, including but not limited to, such as “vulnerability”, “repair” and “patches”, because the number of keywords related to the security class update is compared. Many of them are well known to those skilled in the art, and therefore, they are not enumerated here. If it is recognized that the update description data includes the first type of preset keyword, it indicates that the update involves an update to the application security issue, so the updated page resource update package is a security class update package.
S106,控制应用程序停止对用户的操作指令的响应,直至利用页面资源更新包对本地页面资源包的更新完成。S106. The control application stops responding to the user's operation instruction until the update of the local page resource package is completed by using the page resource update package.
由于安全类更新直接涉及到了应用程序是否能安全的使用,特别是对一些与用户重要信息数据以及用户财产数据相关的应用程序而言,如银行应用程序,若不及时对这些应用程序的本地页面资源包进行更新,可能会造成用户信息泄露以及财产损失。因此,为了保证用户能够安全使用应用程序,保证用户数据的安全,本申请实施例会在下载完成页面资源更新包后,停止对用户对应用程序输入的任何操作指令进行响应,即用户此时无法对应用程序进行任何操作,直接对应用程序进行强制更新,并在强制更新完成后重启应用程序,恢复对用户操作指令的正常响应。Because the security class update directly relates to whether the application can be used safely, especially for applications related to important user information data and user property data, such as banking applications, if the local pages of these applications are not timely Resource pack updates may result in user information disclosure and property damage. Therefore, in order to ensure that the user can securely use the application and ensure the security of the user data, the embodiment of the present application stops responding to any operation instruction input by the user to the application after downloading the page resource update package, that is, the user cannot The application performs any operation, directly forces the application to update, and restarts the application after the forced update is completed, restoring the normal response to the user's operation instructions.
作为本申请的一个优选实施例,在强制更新完成之后,控制应用程序的显示页面直接显示在开始强制更新时应用程序显示的页面,以使得用户能更加方便的继续使用应用程序。As a preferred embodiment of the present application, after the forced update is completed, the display page of the control application directly displays the page displayed by the application when the forced update is started, so that the user can continue to use the application more conveniently.
由于安全类更新直接涉及到了用户的数据安全,用户是否能安全的使用应用程序,因此,其优先级远大于在更新时用户是否能正常使用应用程序。因此本申请实施例中,通过关键词查找识别出页面资源更新包为安全类更新包,此次更新为安全类更新时,会直接停止响应用户操作,并进行强制更新,以保障用户的数据安全。同时在强制更新完成后,继续显示开始更新时的页面,使得用户能够更加方便地使用应用程序,减小了更新对用户正常使用的影响。Since the security class update directly relates to the user's data security, whether the user can use the application securely, the priority is much greater than whether the user can use the application normally when updating. Therefore, in the embodiment of the present application, the page resource update package is identified as a security class update package by keyword search. When the update is a security class update, the user operation is stopped and forced update is performed to ensure user data security. . At the same time, after the forced update is completed, the page at the time of starting the update is continuously displayed, so that the user can use the application more conveniently, and the effect of the update on the normal use of the user is reduced.
作为本申请优选实施例三,如图3所示,包括:As a preferred embodiment 3 of the present application, as shown in FIG. 3, the method includes:
S107,若关键词查找的结果为更新说明数据中仅包含预设关键词中的第二类预设关键词时,判定页面资源更新包为时效类更新包,对应用程序当前显示的页面进行功能模块识别,并对识别出的功能模块进行使用频率排序,时效类更新包用于对本地页面资源包进行功能模块更新。S107. If the result of the keyword search is that the update description data includes only the second type of preset keywords in the preset keyword, determining that the page resource update package is an aging-time update package, and performing functions on the currently displayed page of the application The module recognizes and sorts the used function modules by using frequency, and the aging class update package is used to perform function module update on the local page resource package.
由上述说明可知,本申请实施例三中的第二类预设关键词即为与时效类更新相关的关键词,包括但不限于如“功能修改”“功能调整”“功能删除”,由于与时效类更新相关的关键词数量较多且都属于本领域技术人员熟知的内容,因此,此处不一一进行列举。时效类更新主要是对应用程序功能模块的更新,如增添一些功能或者剔除/修改一些功能,这一类的更新虽然与应用程序的安全使用无关,但由于应用程序中的功能产生了变化,此时若不及时进行更新,用户在点击激活应用程序中被修改的功能时,会导致应用程序无法正常响应,甚至可能会出现运行错误,因此,时效类更新对更新是否及时要求较高,需要及时对应用程序进行更新以保障用户的正常使用。It can be seen from the above description that the second type of preset keywords in the third embodiment of the present application is a keyword related to the update of the aging class, including but not limited to, for example, “function modification”, “function adjustment”, “function deletion”, The number of keywords related to the aging update is large and is well known to those skilled in the art, and therefore, it is not enumerated here. The aging class update is mainly an update to the application function module, such as adding some functions or culling/modifying some functions. Although this type of update has nothing to do with the safe use of the application, due to changes in the functions in the application, this If the user does not update in time, the user may not be able to respond properly when clicking on the function that is modified in the application, and may even run an error. Therefore, the time-based update requires a timely update. Update the application to ensure the normal use of the user.
应当说明的,由于一次页面资源更新可能会同时涉及到安全更新以及时效更新,考虑到安全更新重要程度远高于时效更新,应当以安全类更新的标准进行响应。因此,更新说明数据中只要包含与安全类更新相关的关键词,无论包不包含与时效类更新相关的关键词,在本申请实施例中,均会将此次更新作为安全类更新进行响应,而只有仅包含与时效类更新相关的关键词时,才会作为时效类更新进行响应。It should be noted that since a page resource update may involve both security updates and aging updates, considering that security updates are much more important than aging updates, they should respond with standards for security class updates. Therefore, in the update description data, as long as the keyword related to the security class update is included, and the packet does not include the keyword related to the aging update, in the embodiment of the present application, the update is responded to as the security class update. Only when it contains keywords related to the update of the aging class will it respond as an aging update.
S108,利用页面资源更新包,按照使用频率由低到高的顺序依次对功能模块进行更新。S108, using the page resource update package, sequentially updating the function module according to the frequency of use from low to high.
一个页面是由多个功能模块组合而成,通过对显示页面进行功能识别,可以很容易的确认出显示页面中包含的功能模块,如一个页面可由热门推荐、主要业务、账户信息查询三个功能模块构成。由于用户对每个功能模块的使用频率必然存在一定的差别,频率越低说明用户使用该功能的可能性越低,因此本申请实施例中,为了在实现在对时效类更新进行及时更新的同时,保证用户对应用程序的正常使用,会优先对使用频率低的功能模块进行一一更新,使得对用户正常使用的影响降到最低。A page is composed of multiple function modules. By function recognition on the display page, it is easy to confirm the function modules included in the display page. For example, a page can be searched for by hot recommendation, main business, and account information. Module composition. Since the user must have a certain difference in the frequency of use of each function module, the lower the frequency, the less likely the user is to use the function. Therefore, in the embodiment of the present application, in order to implement timely updating of the time-sensitive update. To ensure the normal use of the application by the user, the function modules with low frequency of use will be preferentially updated one by one, so that the impact on the normal use of the user is minimized.
作为本申请的一个优选实施例,在进行频率排序时,会首先读取用户对应用程序的操作数据,并从中查找出用户当前显示页面对应的各个功能模块的操作数据。其中,用户对应用程序的操作数据,由应用程序在接收到用户输入的操作指令时进行记录,考虑到应用程序记录的操作数据不宜过大,以防对应用程序正常的运行造成影响,本申请实施例中,记录后的操作数据可以采用上传到应用程序对应的服务器的方式进行存储,亦可以采用本地仅存储预设时间范围内的操作数据,并对过期的数据进行删除的方式进行本地存储,如仅本地存储用户在近一个月内的操作数据,并对超出一个月的数据进行删除,以防操作数据占用的存储空间过大影响应用程序正常使用,具体采用何种方式进行存储,可由技术人员根据实际情况进行选定。As a preferred embodiment of the present application, when the frequency is sorted, the operation data of the user to the application is first read, and the operation data of each function module corresponding to the currently displayed page of the user is found out. The operation data of the application to the application is recorded by the application when receiving the operation instruction input by the user, and the operation data recorded by the application program should not be too large, so as to prevent the normal operation of the application, the application In an embodiment, the recorded operation data may be stored in a manner of being uploaded to a server corresponding to the application, or may be stored locally only by storing operation data within a preset time range, and deleting the expired data in a local manner. For example, only the operation data of the user in the past month is stored locally, and the data exceeding one month is deleted, so as to prevent the storage space occupied by the operation data from being too large, which affects the normal use of the application, and the specific manner of storage may be used. The technicians are selected according to the actual situation.
作为一种优选的实施方式,考虑到用户不同时期对功能的需求不同,同时因为不同时期不同版本的应用程序所具有的功能模块也存在差异,因此对于距离当前时刻时间过久的操作数据其参考价值较低。因此,为了实现更好地减小对用户正常使用的影响,优选地采用获取当前时间以前预设时长的操作数据来进行功能模块使用频率的计算,如仅对用户在当前时间为止的一周时长内的操作数据进行功能模块的使用频率计算,具体的预设时长可由技术人员根据实际需求进行设定。应当说明地,由于在进行操作数据存储时,可能会采取在本地存储预设时间范围内的操作数据,为了保证对功能模块使用频率的正常计算,该预设时间必须大于或等于频率计算对应的预设时长。As a preferred implementation manner, considering that the user has different requirements for functions in different periods, and because different types of applications have different functional modules in different periods, reference is made to the operation data that is too long from the current time. The value is lower. Therefore, in order to achieve a better reduction of the impact on the normal use of the user, it is preferable to use the operation data of the preset duration before the current time to calculate the usage frequency of the function module, such as only for one week of the user's current time. The operation data is used to calculate the frequency of use of the function module, and the specific preset duration can be set by the technician according to actual needs. It should be noted that, since the operation data stored in the preset time range may be taken during the operation data storage, in order to ensure the normal calculation of the frequency of use of the function module, the preset time must be greater than or equal to the frequency calculation corresponding to The preset duration.
在读取出当前显示页面对应的各个功能模块的操作数据后,对每个功能模块在预设时长内被使用次数分别进行统计,得出每个功能模块在预设时长内对应的使用频率,如100次/周,并利用得到的使用频率对当前显示页面中的功能模块进行使用频率高低的排序,再按照使用频率由低到高的顺序依次对功能模块进行更新。After the operation data of each function module corresponding to the currently displayed page is read, the number of times each function module is used in the preset duration is separately counted, and the corresponding use frequency of each function module in the preset duration is obtained. For example, 100 times/week, and using the obtained frequency of use, the function modules in the current display page are sorted in frequency, and then the function modules are updated in order from low to high.
作为本申请的一个优选实施例,在进行功能模块更新时,会识别用户当前是否在对功能模块进行操作,若识别出用户在对某一功能模块进行操作时,将该功能模块作为最后一个更新的功能模块。As a preferred embodiment of the present application, when the function module is updated, it is identified whether the user is currently operating the function module, and if the user is identified to be operating on a function module, the function module is used as the last update. Functional module.
作为本申请的一个另优选实施例,当对显示页面功能模块更新完成后,判断用户是否控制应用程序脱离当前显示页面,若识别出脱离当前显示页面时,对本地页面资源包进行更新,本申请实施例与S104中处理方法相同,详情可参考S104的相关说明,此处不再赘述。As a further preferred embodiment of the present application, after the update of the display page function module is completed, it is determined whether the user controls the application to leave the current display page, and if the local page resource package is identified as being removed from the current display page, the application is updated. The embodiment is the same as the processing method in S104. For details, refer to the related description of S104, and details are not described herein again.
作为本申请的一个在优选实施例,为了减少匹配时间,节约匹配占用的资源,本申请实施例中,在进行关键词查找时,会优先匹配更新说明数据中是否包含第一类预设关键词,在确认出不包含第一类预设关键词时,再进行第二类预设关键词的匹配。In a preferred embodiment of the present application, in order to reduce the matching time and save the resources occupied by the matching, in the embodiment of the present application, when the keyword search is performed, the matching description data is preferentially matched to whether the first type of preset keywords are included in the update description data. When it is confirmed that the first type of preset keyword is not included, the second type of preset keyword is matched.
由于时效类更新对更新的及时性要求较高,不及时更新可能会导致用户对显示页面进行操作时出错,因此,本申请实施例中,会根据使用频率从低至高对显示页面的功能模块进行依次更新,使得在不影响用户正常使用的同时,及时有效地完成对显示页面的更新。Because the aging time update requires a high timeliness for the update, the update may not cause the user to make an error in the operation of the display page. Therefore, in the embodiment of the present application, the function module of the display page is used according to the frequency of use. The update is sequentially performed, so that the update of the display page is completed in time and effectively without affecting the normal use of the user.
作为S103的一种具体实现方式,作为本申请实施例四,如图4所示,包括:As a specific implementation manner of S103, as shown in FIG. 4, as shown in FIG. 4, the method includes:
S401,若识别出应用程序的显示页面中存在视频流传输,根据关键词查找结果判断页面资源更新包是否为安全类更新包。S401. If it is recognized that the video stream transmission exists in the display page of the application, determine whether the page resource update package is a security class update package according to the keyword search result.
S402,若判断结果为页面资源更新包不为安全类更新包,在通过下载链接下载页面资源更新包时,对页面资源更新包的下载以及视频流传输进行流量控制,优先进行视频流传输。S402. If the result of the determination is that the page resource update package is not a security class update package, when the page resource update package is downloaded through the download link, the page resource update package download and the video stream transmission are controlled by flow, and the video stream is preferentially transmitted.
本申请实施例中,当检测出显示页面中存在视频流传输时,说明用户可能正在观看视频。由于视频对带宽的要求较高,需要较多的带宽流量才能正常进行播放,而下载页面资源更新包也需要较多的带宽流量,此时两种同时进行可能会影响用户正常观看视频,因此,本申请实施例中,在检测出用户正在观看视频时,会识别要下载的页面资源更新包是否为安全类更新包。若不为安全类更新包,说明此次更新没有涉及到用户的数据安全,此时,为了保证用户能正常使用应用程序正常观看视频,本申请实施例会优先分配带宽流量至视频播放。In the embodiment of the present application, when it is detected that there is video streaming in the display page, it indicates that the user may be watching the video. Because the bandwidth requirement of the video is high, more bandwidth traffic is required to play normally, and the downloading of the page resource update packet requires more bandwidth traffic. In this case, the two simultaneous operations may affect the normal viewing of the video by the user. In the embodiment of the present application, when detecting that the user is watching a video, it is identified whether the page resource update package to be downloaded is a security class update package. If the security package is not updated, the update does not involve the data security of the user. In this case, in order to ensure that the user can normally use the application to view the video normally, the embodiment of the present application preferentially allocates bandwidth traffic to video playback.
为了实现对视频播放的带宽流量优先分配,可以对页面更新资源包下载任务和视频流下载任务进行优先度设置,使得视频流下载任务得以优先执行,具体的优先度设置方法包括但不限于以下方法:In order to implement priority allocation of bandwidth traffic for video playback, the page update resource package download task and the video stream download task may be prioritized, so that the video stream download task may be preferentially executed. The specific priority setting method includes but is not limited to the following methods. :
1、当检测到上述情况发生时,对页面更新资源包下载任务和视频流下载任务设置不同的最大线程连接数,使得视频流下载任务的最大线程连接数大于页面更新资源包下载任务的最大线程连接数。例如,对视频流下载任务设置最大5条线程,对页面资源更新包下载任务设置最大1条线程,由于每条线程之间的优先度是相同的(本方法没有设置线程之间的优先度),即每条线程被分配到的带宽流量也是相同的,因此,线程数越多的下载任务所获得的总的带宽流量也就越多,从而使得视频播放所分配到的带宽流量也就越多,进而实现了优先视频播放的目的。1. When the above situation is detected, set a maximum number of thread connections for the page update resource package download task and the video stream download task, so that the maximum thread connection number of the video stream download task is greater than the maximum thread of the page update resource package download task. The number of connections. For example, set up a maximum of 5 threads for the video stream download task and 1 thread for the page resource update package download task, since the priority between each thread is the same (this method does not set the priority between threads) That is, the bandwidth traffic allocated to each thread is the same. Therefore, the more bandwidth the download task gets, the more bandwidth traffic is obtained, so that the bandwidth traffic allocated by video playback is more. , in turn, achieve the purpose of priority video playback.
2、当检测到上述情况发生时,对页面更新资源包下载任务和视频流下载任务分配不同的带宽流量优先度,使得视频流下载任务带宽流量优先度的高于页面更新资源包,此时,无论两个下载任务各自对应的线程数为多少,都会优先保证高优先度的下载任务对应的线程进行数据传输,并在满足了高优先度的下载任务的带宽流量需求的前提下,才将多余的带宽流量分配给低优先度的下载任务。例如,当用户观看的视频对带宽流量要求较高(如观看清晰度较高的视频),而应用程序可使用的最大带宽难以满足或者刚好满足视频播放的需求时,应用程序没有有多余的带宽流量分配给页面更新资源包下载任务,从而使得页面更新资源包下载任务的可使用带宽流量为零。相反地,若而应用程序可使用的最大带宽大于视频播放的需求,则会将多余的带宽流量分配给页面更新资源包下载任务进行页面更新资源包的下载。2. When the above situation occurs, the page update resource package download task and the video stream download task are assigned different bandwidth traffic priorities, so that the bandwidth of the video stream download task is higher than the page update resource package. Regardless of the number of threads corresponding to each of the two download tasks, the thread corresponding to the high-priority download task is preferentially guaranteed to transmit data, and the bandwidth requirement of the high-priority download task is satisfied. Bandwidth traffic is allocated to low priority download tasks. For example, when a user watches a video that requires high bandwidth traffic (such as watching a video with high definition), and the maximum bandwidth that can be used by the application is difficult to meet or just meets the video playback requirements, the application does not have excess bandwidth. The traffic is allocated to the page update resource bundle download task, so that the available bandwidth traffic of the page update resource bundle download task is zero. Conversely, if the maximum bandwidth that the application can use is greater than the video playback requirement, the excess bandwidth traffic is allocated to the page update resource bundle download task for downloading the page update resource bundle.
作为本申请的一个优选实施例,若页面资源更新包为安全类更新包,本申请实施例会对页面资源更新包的下载以及视频流传输进行流量控制,优先进行页面资源更新包的下载,以保证用户数据的安全。本申请实施例所采用的优先度设置方法与上述相同,仅需将对页面更新资源包下载任务的优先度设置为大于视频流下载任务的优先度即可。As a preferred embodiment of the present application, if the page resource update package is a security class update package, the embodiment of the present application performs flow control on downloading of the page resource update package and video stream transmission, and preferentially downloads the page resource update package to ensure User data is secure. The priority setting method adopted in the embodiment of the present application is the same as the above, and only the priority of the page update resource package download task needs to be set to be greater than the priority of the video stream download task.
作为本申请优选实施例五,如图5所示,在S104之后,还包括:As a preferred embodiment 5 of the present application, as shown in FIG. 5, after S104, the method further includes:
S109,若检测出应用程序当前显示页面被切换,在利用页面资源更新包对本地页面资源包进行更新完成之后,对应用程序的显示页面进行切换。S109. If it is detected that the current display page of the application is switched, after the local resource resource package is updated by using the page resource update package, the display page of the application is switched.
S110,若检测出应用程序当前显示页面被刷新,在利用页面资源更新包对本地页面资源包进行更新完成之后,对应用程序的显示页面进行刷新。S110. If it is detected that the current display page of the application is refreshed, after the local resource resource package is updated by using the page resource update package, the display page of the application is refreshed.
为了方便用户的正常使用,在S104页面被切换或者刷新对应用程序进行更新后,本申请实施例中,会将更新后应用程序的显示页面切换中切换/刷新操作对应的页面,以使得用户能在更新后继续正常使用应用程序,方便了用户对应用程序的正常使用。In order to facilitate the normal use of the user, after the S104 page is switched or refreshed to update the application, in the embodiment of the present application, the page corresponding to the switching/refresh operation in the display page of the updated application is switched, so that the user can Continue to use the application normally after the update, which is convenient for the user to use the application normally.
本申请实施例中,通过利用服务器主动推送页面资源更新包下载链接,使得应用程序更新查询的工作量大大减小。同时,通过应用程序在用户观看视频时智能调控分配更新包下载与视频流传输的带宽,并在下载完成后通过关键词查找自动识别出本次更新的类型,并针对每种更新类型的特点进行针对性响应,使得用户对应用程序的正常使用与应用程序的及时更新得到了兼顾,在保证应用程序能及时更新的同时,保证了应用程序的正常使用。In the embodiment of the present application, the workload of the application update query is greatly reduced by using the server to actively push the page resource update package download link. At the same time, the application intelligently adjusts the bandwidth of the update package download and the video stream transmission when the user watches the video, and automatically identifies the type of the update by keyword search after the download is completed, and performs the characteristics of each update type. The targeted response enables the user to take into account the normal use of the application and the timely update of the application, ensuring that the application can be updated in time while ensuring the normal use of the application.
对应于上文实施例的方法,图6示出了本申请实施例提供的资源更新装置的结构框图,为了便于说明,仅示出了与本申请实施例相关的部分。图6示例的资源更新装置可以是前述实施例一提供的资源更新方法的执行主体。Corresponding to the method of the above embodiment, FIG. 6 is a structural block diagram of a resource updating apparatus provided by an embodiment of the present application. For the convenience of description, only parts related to the embodiment of the present application are shown. The resource update device illustrated in FIG. 6 may be the execution body of the resource update method provided in the foregoing first embodiment.
参照图6,该资源更新系统包括:应用程序以及服务器;Referring to FIG. 6, the resource update system includes: an application and a server;
所述应用程序,用于在启动时,读取本地页面资源包中的页面资源版本标识,并向资源服务器发送包含所述页面资源版本标识的握手请求信息。The application is configured to: when starting, read a page resource version identifier in the local page resource package, and send handshake request information including the page resource version identifier to the resource server.
所述资源服务器,用于在接收到所述握手请求后,将所述页面资源版本标识与页面资源更新包中的包含的页面资源版本标识进行对比,并在对比出所述应用程序的所述本地页面资源包需要更新时,向所述应用程序推送所述页面资源更新包的下载链接。The resource server is configured to compare the page resource version identifier with the included page resource version identifier in the page resource update package after receiving the handshake request, and compare the described application When the local page resource package needs to be updated, the download link of the page resource update package is pushed to the application.
所述应用程序还用于通过所述下载链接下载所述页面资源更新包,并对所述页面资源更新包对应的更新说明数据进行关键词查找,判断所述更新说明数据中是否包含预设关键词。The application is further configured to download the page resource update package by using the download link, perform keyword search on the update description data corresponding to the page resource update package, and determine whether the update description data includes a preset key. word.
所述应用程序还用于若关键词查找的结果为所述更新说明数据中不包含所述预设关键词,则在检测出所述应用程序的显示页面被切换、关闭或刷新时,利用所述页面资源更新包对所述本地页面资源包进行更新。The application is further configured to: if the result of the keyword search is that the preset description keyword is not included in the update description data, when detecting that the display page of the application is switched, closed, or refreshed, The page resource update package updates the local page resource package.
进一步地,所述应用程序还用于若关键词查找的结果为所述更新说明数据中包含所述预设关键词中的第一类预设关键词,判定所述页面资源更新包为安全类更新包,所述安全类更新包用于对所述本地页面资源包存在的安全漏洞进行更新。Further, the application is further configured to determine that the page resource update package is a security class if a result of the keyword search is that the update description data includes a first type of preset keyword in the preset keyword. An update package, the security class update package is used to update a security vulnerability existing in the local page resource package.
控制所述应用程序停止对用户的操作指令的响应,直至利用所述页面资源更新包对所述本地页面资源包的更新完成。Controlling the application to stop responding to the user's operational instructions until the update of the local page resource bundle is completed using the page resource update package.
进一步地,所述应用程序还用于若关键词查找的结果为所述更新说明数据中仅包含所述预设关键词中的第二类预设关键词时,判定所述页面资源更新包为时效类更新包,对所述应用程序当前显示的页面进行功能模块识别,并对识别出的功能模块进行使用频率排序,所述时效类更新包用于对所述本地页面资源包进行功能模块更新。Further, the application is further configured to: if the result of the keyword search is that the update description data includes only the second type of preset keywords in the preset keyword, determine that the page resource update package is An aging-time update package, performing function module identification on a page currently displayed by the application, and performing frequency usage ordering on the identified function module, where the aging-time update package is used to perform function module update on the local page resource package .
利用所述页面资源更新包,按照使用频率由低到高的顺序依次对所述功能模块进行更新。The function module is updated in order from the lowest frequency to the high frequency by using the page resource update package.
进一步地,所述应用程序还用于若识别出所述应用程序的显示页面中存在视频流传输,根据所述关键词查找结果判断所述页面资源更新包是否为所述安全类更新包。Further, the application is further configured to determine, according to the keyword search result, whether the page resource update package is the security class update package, if the video stream transmission is found in the display page of the application.
若判断结果为所述页面资源更新包不为所述安全类更新包,在通过所述下载链接下载所述页面资源更新包时,对所述页面资源更新包的下载以及所述视频流传输进行流量控制,优先进行所述视频流传输。If the result of the determination is that the page resource update package is not the security class update package, when the page resource update package is downloaded through the download link, downloading the page resource update package and the video stream transmission are performed. Flow control, the video stream is preferentially transmitted.
进一步地,所述应用程序还用于若检测出所述应用程序当前显示页面被切换,在利用所述页面资源更新包对所述本地页面资源包进行更新完成之后,对所述应用程序的显示页面进行切换。Further, the application is further configured to: after detecting that the current display page of the application is switched, display the application after updating the local page resource package by using the page resource update package The page is switched.
若检测出所述应用程序当前显示页面被刷新,在利用所述页面资源更新包对所述本地页面资源包进行更新完成之后,对所述应用程序的显示页面进行刷新。If it is detected that the current display page of the application is refreshed, after the update of the local page resource package is completed by using the page resource update package, the display page of the application is refreshed.
本申请实施例提供的资源更新装置中各模块实现各自功能的过程,具体可参考前述图1所示实施例一的描述,此处不再赘述。For the process of implementing the respective functions in the resource update device provided by the embodiment of the present application, refer to the description of the first embodiment shown in FIG. 1 , and details are not described herein again.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence of the steps in the above embodiments does not mean that the order of execution is performed. The order of execution of each process should be determined by its function and internal logic, and should not be construed as limiting the implementation process of the embodiments of the present application.
还应理解的是,虽然术语“第一”、“第二”等在文本中在一些本申请实施例中用来描述各种元素,但是这些元素不应该受到这些术语的限制。这些术语只是用来将一个元素与另一元素区分开。例如,第一接触可以被命名为第二接触,并且类似地,第二接触可以被命名为第一接触,而不背离各种所描述的实施例的范围。第一接触和第二接触都是接触,但是它们不是同一接触。It should also be understood that although the terms "first", "second", and the like are used in the text to describe various elements in the embodiments of the present application, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, the first contact can be named a second contact, and similarly, the second contact can be named the first contact without departing from the scope of the various described embodiments. Both the first contact and the second contact are contacts, but they are not the same contact.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过应用程序来指令相关的硬件来完成,所述的应用程序可存储于一计算机可读存储介质中,该应用程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述应用程序包括应用程序代码,所述应用程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述应用程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the present application implements all or part of the processes in the foregoing embodiments, and may also be implemented by an application to instruct related hardware, where the application may be stored in a computer readable storage medium, the application The steps of the various method embodiments described above may be implemented when the program is executed by the processor. The application includes code of an application, and the application code may be in the form of source code, an object code form, an executable file, or some intermediate form. The computer readable medium may include any entity or device capable of carrying the application code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read only memory (ROM, Read-Only) Memory), random access memory (RAM, Random) Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. It should be noted that the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in a jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, computer readable media Does not include electrical carrier signals and telecommunication signals.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使对应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still implement the foregoing embodiments. The technical solutions described in the examples are modified or equivalently replaced with some of the technical features; and the modifications or substitutions do not deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in Within the scope of protection of this application.

Claims (20)

  1. 一种资源更新方法,其特征在于,包括:A resource update method, comprising:
    应用程序在启动时,读取本地页面资源包中的页面资源版本标识,并向资源服务器发送包含所述页面资源版本标识的握手请求信息;When the application starts, the page resource version identifier in the local page resource package is read, and the handshake request information including the page resource version identifier is sent to the resource server;
    所述资源服务器在接收到所述握手请求后,将所述页面资源版本标识与页面资源更新包中的包含的页面资源版本标识进行对比,并在对比出所述应用程序的所述本地页面资源包需要更新时,向所述应用程序推送所述页面资源更新包的下载链接;After receiving the handshake request, the resource server compares the page resource version identifier with the included page resource version identifier in the page resource update package, and compares the local page resource of the application. When the package needs to be updated, the download link of the page resource update package is pushed to the application;
    所述应用程序通过所述下载链接下载所述页面资源更新包,并对所述页面资源更新包对应的更新说明数据进行关键词查找,判断所述更新说明数据中是否包含预设关键词;The application program downloads the page resource update package by using the download link, and performs keyword search on the update description data corresponding to the page resource update package, and determines whether the update description data includes a preset keyword;
    若关键词查找的结果为所述更新说明数据中不包含所述预设关键词,则在检测出所述应用程序的显示页面被切换、关闭或刷新时,利用所述页面资源更新包对所述本地页面资源包进行更新。If the result of the keyword search is that the preset keyword is not included in the update description data, when the display page of the application is detected to be switched, closed, or refreshed, the page resource update package is used. The local page resource bundle is updated.
  2. 如权利要求1所述的资源更新方法,其特征在于,还包括:The method for updating a resource according to claim 1, further comprising:
    若关键词查找的结果为所述更新说明数据中包含所述预设关键词中的第一类预设关键词,判定所述页面资源更新包为安全类更新包,所述安全类更新包用于对所述本地页面资源包存在的安全漏洞进行更新;If the result of the keyword search is that the update description data includes the first type of preset keywords in the preset keyword, determining that the page resource update package is a security class update package, and the security class update package is used. Updating the security vulnerability existing in the local page resource package;
    控制所述应用程序停止对用户的操作指令的响应,直至利用所述页面资源更新包对所述本地页面资源包的更新完成。Controlling the application to stop responding to the user's operational instructions until the update of the local page resource bundle is completed using the page resource update package.
  3. 如权利要求1所述的资源更新方法,其特征在于,还包括:The method for updating a resource according to claim 1, further comprising:
    若关键词查找的结果为所述更新说明数据中仅包含所述预设关键词中的第二类预设关键词时,判定所述页面资源更新包为时效类更新包,对所述应用程序当前显示的页面进行功能模块识别,并对识别出的功能模块进行使用频率排序,所述时效类更新包用于对所述本地页面资源包进行功能模块更新;If the result of the keyword search is that the update description data includes only the second type of preset keywords in the preset keyword, determining that the page resource update package is an aging class update package, and the application is The currently displayed page performs function module identification, and performs frequency usage ordering on the identified function modules, where the aging class update package is used to perform function module update on the local page resource package;
    利用所述页面资源更新包,按照使用频率由低到高的顺序依次对所述功能模块进行更新。The function module is updated in order from the lowest frequency to the high frequency by using the page resource update package.
  4. 如权利要求2所述的资源更新方法,其特征在于,所述应用程序通过所述下载链接下载所述页面资源更新包,根据所述页面资源更新包对应的更新说明数据进行关键词查找,还包括:The resource update method according to claim 2, wherein the application program downloads the page resource update package by using the download link, and performs keyword search according to the update description data corresponding to the page resource update package, and further include:
    若识别出所述应用程序的显示页面中存在视频流传输,根据所述关键词查找结果判断所述页面资源更新包是否为所述安全类更新包;If it is found that the video stream transmission exists in the display page of the application, determining, according to the keyword search result, whether the page resource update package is the security class update package;
    若判断结果为所述页面资源更新包不为所述安全类更新包,在通过所述下载链接下载所述页面资源更新包时,对所述页面资源更新包的下载以及所述视频流传输进行流量控制,优先进行所述视频流传输。If the result of the determination is that the page resource update package is not the security class update package, when the page resource update package is downloaded through the download link, downloading the page resource update package and the video stream transmission are performed. Flow control, the video stream is preferentially transmitted.
  5. 如权利要求1所述的资源更新方法,其特征在于,在所述检测出所述应用程序的显示页面被切换、关闭或刷新时,利用所述页面资源更新包对所述本地页面资源包进行更新之后,还包括:The resource update method according to claim 1, wherein when the display page of the application is detected to be switched, closed or refreshed, the local page resource package is performed by using the page resource update package. After the update, it also includes:
    若检测出所述应用程序当前显示页面被切换,在利用所述页面资源更新包对所述本地页面资源包进行更新完成之后,对所述应用程序的显示页面进行切换;If it is detected that the current display page of the application is switched, after the update of the local page resource package is completed by using the page resource update package, the display page of the application is switched;
    若检测出所述应用程序当前显示页面被刷新,在利用所述页面资源更新包对所述本地页面资源包进行更新完成之后,对所述应用程序的显示页面进行刷新。If it is detected that the current display page of the application is refreshed, after the update of the local page resource package is completed by using the page resource update package, the display page of the application is refreshed.
  6. 一种资源更新系统,其特征在于,包括:A resource update system, comprising:
    所述应用程序用于在启动时,读取本地页面资源包中的页面资源版本标识,并向资源服务器发送包含所述页面资源版本标识的握手请求信息;The application is configured to: when starting, read a page resource version identifier in the local page resource package, and send handshake request information including the page resource version identifier to the resource server;
    所述资源服务器用于在接收到所述握手请求后,将所述页面资源版本标识与页面资源更新包中的包含的页面资源版本标识进行对比,并在对比出所述应用程序的所述本地页面资源包需要更新时,向所述应用程序推送所述页面资源更新包的下载链接;The resource server is configured to compare the page resource version identifier with the included page resource version identifier in the page resource update package after receiving the handshake request, and compare the local content of the application When the page resource package needs to be updated, the download link of the page resource update package is pushed to the application;
    所述应用程序还用于通过所述下载链接下载所述页面资源更新包,并对所述页面资源更新包对应的更新说明数据进行关键词查找,判断所述更新说明数据中是否包含预设关键词;The application is further configured to download the page resource update package by using the download link, perform keyword search on the update description data corresponding to the page resource update package, and determine whether the update description data includes a preset key. word;
    所述应用程序还用于若关键词查找的结果为所述更新说明数据中不包含所述预设关键词,则在检测出所述应用程序的显示页面被切换、关闭或刷新时,利用所述页面资源更新包对所述本地页面资源包进行更新。The application is further configured to: if the result of the keyword search is that the preset description keyword is not included in the update description data, when detecting that the display page of the application is switched, closed, or refreshed, The page resource update package updates the local page resource package.
  7. 如权利要求6所述资源更新系统,其特征在于;The resource update system of claim 6 wherein:
    所述应用程序还用于若关键词查找的结果为所述更新说明数据中包含所述预设关键词中的第一类预设关键词,判定所述页面资源更新包为安全类更新包,所述安全类更新包用于对所述本地页面资源包存在的安全漏洞进行更新;The application is further configured to: if the result of the keyword search is that the update description data includes the first type of preset keywords in the preset keyword, determine that the page resource update package is a security update package, The security class update package is configured to update a security vulnerability existing in the local page resource package;
    控制所述应用程序停止对用户的操作指令的响应,直至利用所述页面资源更新包对所述本地页面资源包的更新完成。Controlling the application to stop responding to the user's operational instructions until the update of the local page resource bundle is completed using the page resource update package.
  8. 如权利要求6所述资源更新系统,其特征在于:A resource update system according to claim 6 wherein:
    所述应用程序还用于若关键词查找的结果为所述更新说明数据中仅包含所述预设关键词中的第二类预设关键词时,判定所述页面资源更新包为时效类更新包,对所述应用程序当前显示的页面进行功能模块识别,并对识别出的功能模块进行使用频率排序,所述时效类更新包用于对所述本地页面资源包进行功能模块更新;The application is further configured to determine that the page resource update package is an aging update if the result of the keyword search is that the update description data includes only the second type of preset keywords in the preset keyword. a packet, performing function module identification on the currently displayed page of the application, and performing frequency usage ordering on the identified function module, where the aging class update package is used to perform function module update on the local page resource package;
    利用所述页面资源更新包,按照使用频率由低到高的顺序依次对所述功能模块进行更新。The function module is updated in order from the lowest frequency to the high frequency by using the page resource update package.
  9. 如权利要求7所述资源更新系统,其特征在于:The resource update system of claim 7 wherein:
    所述应用程序还用于若识别出所述应用程序的显示页面中存在视频流传输,根据所述关键词查找结果判断所述页面资源更新包是否为所述安全类更新包;The application is further configured to determine, according to the keyword search result, whether the page resource update package is the security class update package, if the video stream transmission is found in the display page of the application;
    若判断结果为所述页面资源更新包不为所述安全类更新包,在通过所述下载链接下载所述页面资源更新包时,对所述页面资源更新包的下载以及所述视频流传输进行流量控制,优先进行所述视频流传输。If the result of the determination is that the page resource update package is not the security class update package, when the page resource update package is downloaded through the download link, downloading the page resource update package and the video stream transmission are performed. Flow control, the video stream is preferentially transmitted.
  10. 如权利要求6所述资源更新系统,其特征在于:A resource update system according to claim 6 wherein:
    所述应用程序还用于若检测出所述应用程序当前显示页面被切换,在利用所述页面资源更新包对所述本地页面资源包进行更新完成之后,对所述应用程序的显示页面进行切换;The application is further configured to: if it is detected that the current display page of the application is switched, after the update of the local page resource package is completed by using the page resource update package, switch the display page of the application ;
    若检测出所述应用程序当前显示页面被刷新,在利用所述页面资源更新包对所述本地页面资源包进行更新完成之后,对所述应用程序的显示页面进行刷新。If it is detected that the current display page of the application is refreshed, after the update of the local page resource package is completed by using the page resource update package, the display page of the application is refreshed.
  11. 一种资源更新电子设备,其特征在于,所述资源更新处理电子设备包括存储器、处理器,所述存储器上存储有可在所述处理器上运行的应用程序,所述处理器执行所述应用程序时实现如下步骤:A resource update electronic device, comprising: a memory, a processor, an application stored on the processor, the processor executing the application The program implements the following steps:
    在启动时,读取本地页面资源包中的页面资源版本标识,并向资源服务器发送包含所述页面资源版本标识的握手请求信息,以使得资源服务器在接收到所述握手请求后,将所述页面资源版本标识与页面资源更新包中的包含的页面资源版本标识进行对比,并在对比出所述应用程序的所述本地页面资源包需要更新时,向所述应用程序推送所述页面资源更新包的下载链接;At startup, reading a page resource version identifier in the local page resource package, and sending handshake request information including the page resource version identifier to the resource server, so that the resource server, after receiving the handshake request, The page resource version identifier is compared with the included page resource version identifier in the page resource update package, and when the local page resource package of the application needs to be updated, the page resource update is pushed to the application. Package download link;
    通过所述下载链接下载所述页面资源更新包,并对所述页面资源更新包对应的更新说明数据进行关键词查找,判断所述更新说明数据中是否包含预设关键词;Downloading, by the download link, the page resource update package, and performing keyword search on the update description data corresponding to the page resource update package, and determining whether the update description data includes a preset keyword;
    若关键词查找的结果为所述更新说明数据中不包含所述预设关键词,则在检测出所述应用程序的显示页面被切换、关闭或刷新时,利用所述页面资源更新包对所述本地页面资源包进行更新。If the result of the keyword search is that the preset keyword is not included in the update description data, when the display page of the application is detected to be switched, closed, or refreshed, the page resource update package is used. The local page resource bundle is updated.
  12. 如权利要求11所述的资源更新电子设备,其特征在于,还包括:The resource update electronic device of claim 11, further comprising:
    若关键词查找的结果为所述更新说明数据中包含所述预设关键词中的第一类预设关键词,判定所述页面资源更新包为安全类更新包,所述安全类更新包用于对所述本地页面资源包存在的安全漏洞进行更新;If the result of the keyword search is that the update description data includes the first type of preset keywords in the preset keyword, determining that the page resource update package is a security class update package, and the security class update package is used. Updating the security vulnerability existing in the local page resource package;
    控制所述应用程序停止对用户的操作指令的响应,直至利用所述页面资源更新包对所述本地页面资源包的更新完成。Controlling the application to stop responding to the user's operational instructions until the update of the local page resource bundle is completed using the page resource update package.
  13. 如权利要求11所述的资源更新电子设备,其特征在于,还包括:The resource update electronic device of claim 11, further comprising:
    若关键词查找的结果为所述更新说明数据中仅包含所述预设关键词中的第二类预设关键词时,判定所述页面资源更新包为时效类更新包,对所述应用程序当前显示的页面进行功能模块识别,并对识别出的功能模块进行使用频率排序,所述时效类更新包用于对所述本地页面资源包进行功能模块更新;If the result of the keyword search is that the update description data includes only the second type of preset keywords in the preset keyword, determining that the page resource update package is an aging class update package, and the application is The currently displayed page performs function module identification, and performs frequency usage ordering on the identified function modules, where the aging class update package is used to perform function module update on the local page resource package;
    利用所述页面资源更新包,按照使用频率由低到高的顺序依次对所述功能模块进行更新。The function module is updated in order from the lowest frequency to the high frequency by using the page resource update package.
  14. 如权利要求12所述的资源更新电子设备,其特征在于,所述应用程序通过所述下载链接下载所述页面资源更新包,根据所述页面资源更新包对应的更新说明数据进行关键词查找,还包括:The resource update electronic device according to claim 12, wherein the application program downloads the page resource update package by using the download link, and performs keyword search according to the update description data corresponding to the page resource update package. Also includes:
    若识别出所述应用程序的显示页面中存在视频流传输,根据所述关键词查找结果判断所述页面资源更新包是否为所述安全类更新包;If it is found that the video stream transmission exists in the display page of the application, determining, according to the keyword search result, whether the page resource update package is the security class update package;
    若判断结果为所述页面资源更新包不为所述安全类更新包,在通过所述下载链接下载所述页面资源更新包时,对所述页面资源更新包的下载以及所述视频流传输进行流量控制,优先进行所述视频流传输。If the result of the determination is that the page resource update package is not the security class update package, when the page resource update package is downloaded through the download link, downloading the page resource update package and the video stream transmission are performed. Flow control, the video stream is preferentially transmitted.
  15. 如权利要求11所述的资源更新电子设备,其特征在于,在所述检测出所述应用程序的显示页面被切换、关闭或刷新时,利用所述页面资源更新包对所述本地页面资源包进行更新之后,还包括:The resource update electronic device according to claim 11, wherein when the display page of the application is detected to be switched, closed or refreshed, the local page resource package is updated by using the page resource update package. After the update, it also includes:
    若检测出所述应用程序当前显示页面被切换,在利用所述页面资源更新包对所述本地页面资源包进行更新完成之后,对所述应用程序的显示页面进行切换;If it is detected that the current display page of the application is switched, after the update of the local page resource package is completed by using the page resource update package, the display page of the application is switched;
    若检测出所述应用程序当前显示页面被刷新,在利用所述页面资源更新包对所述本地页面资源包进行更新完成之后,对所述应用程序的显示页面进行刷新。If it is detected that the current display page of the application is refreshed, after the update of the local page resource package is completed by using the page resource update package, the display page of the application is refreshed.
  16. 一种计算机可读存储介质,所述计算机可读存储介质存储有应用程序,其特征在于,所述应用程序被至少一个处理器执行时实现如下步骤:A computer readable storage medium storing an application, wherein the application is executed by at least one processor to implement the following steps:
    在启动时,读取本地页面资源包中的页面资源版本标识,并向资源服务器发送包含所述页面资源版本标识的握手请求信息,以使得资源服务器在接收到所述握手请求后,将所述页面资源版本标识与页面资源更新包中的包含的页面资源版本标识进行对比,并在对比出所述应用程序的所述本地页面资源包需要更新时,向所述应用程序推送所述页面资源更新包的下载链接;At startup, reading a page resource version identifier in the local page resource package, and sending handshake request information including the page resource version identifier to the resource server, so that the resource server, after receiving the handshake request, The page resource version identifier is compared with the included page resource version identifier in the page resource update package, and when the local page resource package of the application needs to be updated, the page resource update is pushed to the application. Package download link;
    通过所述下载链接下载所述页面资源更新包,并对所述页面资源更新包对应的更新说明数据进行关键词查找,判断所述更新说明数据中是否包含预设关键词;Downloading, by the download link, the page resource update package, and performing keyword search on the update description data corresponding to the page resource update package, and determining whether the update description data includes a preset keyword;
    若关键词查找的结果为所述更新说明数据中不包含所述预设关键词,则在检测出所述应用程序的显示页面被切换、关闭或刷新时,利用所述页面资源更新包对所述本地页面资源包进行更新。If the result of the keyword search is that the preset keyword is not included in the update description data, when the display page of the application is detected to be switched, closed, or refreshed, the page resource update package is used. The local page resource bundle is updated.
  17. 如权利要求16所述的计算机可读存储介质,其特征在于,还包括:The computer readable storage medium of claim 16 further comprising:
    若关键词查找的结果为所述更新说明数据中包含所述预设关键词中的第一类预设关键词,判定所述页面资源更新包为安全类更新包,所述安全类更新包用于对所述本地页面资源包存在的安全漏洞进行更新;If the result of the keyword search is that the update description data includes the first type of preset keywords in the preset keyword, determining that the page resource update package is a security class update package, and the security class update package is used. Updating the security vulnerability existing in the local page resource package;
    控制所述应用程序停止对用户的操作指令的响应,直至利用所述页面资源更新包对所述本地页面资源包的更新完成。Controlling the application to stop responding to the user's operational instructions until the update of the local page resource bundle is completed using the page resource update package.
  18. 如权利要求16所述的计算机可读存储介质,其特征在于,还包括:The computer readable storage medium of claim 16 further comprising:
    若关键词查找的结果为所述更新说明数据中仅包含所述预设关键词中的第二类预设关键词时,判定所述页面资源更新包为时效类更新包,对所述应用程序当前显示的页面进行功能模块识别,并对识别出的功能模块进行使用频率排序,所述时效类更新包用于对所述本地页面资源包进行功能模块更新;If the result of the keyword search is that the update description data includes only the second type of preset keywords in the preset keyword, determining that the page resource update package is an aging class update package, and the application is The currently displayed page performs function module identification, and performs frequency usage ordering on the identified function modules, where the aging class update package is used to perform function module update on the local page resource package;
    利用所述页面资源更新包,按照使用频率由低到高的顺序依次对所述功能模块进行更新。The function module is updated in order from the lowest frequency to the high frequency by using the page resource update package.
  19. 如权利要求17所述的计算机可读存储介质,其特征在于,所述应用程序通过所述下载链接下载所述页面资源更新包,根据所述页面资源更新包对应的更新说明数据进行关键词查找,还包括:The computer readable storage medium according to claim 17, wherein the application program downloads the page resource update package through the download link, and performs keyword search according to the update description data corresponding to the page resource update package. ,Also includes:
    若识别出所述应用程序的显示页面中存在视频流传输,根据所述关键词查找结果判断所述页面资源更新包是否为所述安全类更新包;If it is found that the video stream transmission exists in the display page of the application, determining, according to the keyword search result, whether the page resource update package is the security class update package;
    若判断结果为所述页面资源更新包不为所述安全类更新包,在通过所述下载链接下载所述页面资源更新包时,对所述页面资源更新包的下载以及所述视频流传输进行流量控制,优先进行所述视频流传输。If the result of the determination is that the page resource update package is not the security class update package, when the page resource update package is downloaded through the download link, downloading the page resource update package and the video stream transmission are performed. Flow control, the video stream is preferentially transmitted.
  20. 如权利要求16所述的计算机可读存储介质,其特征在于,在所述检测出所述应用程序的显示页面被切换、关闭或刷新时,利用所述页面资源更新包对所述本地页面资源包进行更新之后,还包括:The computer readable storage medium according to claim 16, wherein said local page resource is updated by said page resource update package when said display page of said application is detected to be switched, closed or refreshed After the package is updated, it also includes:
    若检测出所述应用程序当前显示页面被切换,在利用所述页面资源更新包对所述本地页面资源包进行更新完成之后,对所述应用程序的显示页面进行切换;If it is detected that the current display page of the application is switched, after the update of the local page resource package is completed by using the page resource update package, the display page of the application is switched;
    若检测出所述应用程序当前显示页面被刷新,在利用所述页面资源更新包对所述本地页面资源包进行更新完成之后,对所述应用程序的显示页面进行刷新。If it is detected that the current display page of the application is refreshed, after the update of the local page resource package is completed by using the page resource update package, the display page of the application is refreshed.
PCT/CN2018/074845 2017-12-08 2018-01-31 Resource updating method and system, electronic device, and medium WO2019109513A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711297980.6 2017-12-08
CN201711297980.6A CN108228210B (en) 2017-12-08 2017-12-08 Resource updating method and system

Publications (1)

Publication Number Publication Date
WO2019109513A1 true WO2019109513A1 (en) 2019-06-13

Family

ID=62653390

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/074845 WO2019109513A1 (en) 2017-12-08 2018-01-31 Resource updating method and system, electronic device, and medium

Country Status (2)

Country Link
CN (1) CN108228210B (en)
WO (1) WO2019109513A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210141629A1 (en) * 2019-11-08 2021-05-13 Toyota Jidosha Kabushiki Kaisha Program update system and vehicle management server

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109358873A (en) * 2018-09-25 2019-02-19 平安普惠企业管理有限公司 A kind of application program update method, storage medium and terminal device
CN109257426B (en) * 2018-09-26 2022-10-14 平安普惠企业管理有限公司 Service line resource loading method and device, computer equipment and storage medium
CN110619101B (en) * 2018-12-29 2022-09-13 北京时光荏苒科技有限公司 Method and apparatus for processing information
CN111767063A (en) * 2019-04-02 2020-10-13 青岛海信移动通信技术股份有限公司 Resource updating method, device and equipment for application program
CN110134473A (en) * 2019-04-12 2019-08-16 深圳市元征科技股份有限公司 Software interface optimizes display methods, device, diagnostic device and storage medium
CN111913767B (en) * 2019-05-09 2024-10-18 北京沃东天骏信息技术有限公司 View updating method and updating system
CN111984343B (en) * 2019-05-22 2024-03-01 百度(中国)有限公司 Plug-in resource searching method, device, equipment and readable storage medium
CN112835610A (en) * 2019-11-25 2021-05-25 华为终端有限公司 Method and device for constructing application program resource package and terminal equipment
CN111427628A (en) * 2020-03-27 2020-07-17 李琦 Software function module configuration method, device, software product and storage medium
CN112783539B (en) * 2020-04-20 2024-09-10 招商证券股份有限公司 Application updating method, system, terminal equipment and storage medium
CN111722865A (en) * 2020-06-18 2020-09-29 广州小鹏车联网科技有限公司 Resource data processing method and device for application program
CN112783907B (en) * 2020-12-31 2024-06-07 深圳云天励飞技术股份有限公司 Data updating method, application end data updating method and related products
CN113434171A (en) * 2021-06-22 2021-09-24 青岛海尔科技有限公司 Resource package updating method and device, storage medium and electronic device
CN113703815B (en) * 2021-10-29 2022-02-11 腾讯科技(深圳)有限公司 Offline resource updating method, device, terminal and storage medium
CN114296775B (en) * 2022-03-09 2022-07-19 南京易联阳光信息技术股份有限公司 Intelligent operation and maintenance method and system based on big data
CN116166682A (en) * 2023-04-26 2023-05-26 国家工业信息安全发展研究中心 Data updating method and server
CN116302212A (en) * 2023-05-25 2023-06-23 广州市千钧网络科技有限公司 Method, device, equipment and storage medium for refreshing application embedded HTML page

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140123037A1 (en) * 2012-10-29 2014-05-01 Samsung Electronics Co., Ltd. Apparatus and method for displaying loading state of web browser in portable terminal
CN103916373A (en) * 2013-01-07 2014-07-09 腾讯科技(深圳)有限公司 Data updating method, server, client side and system
CN106326489A (en) * 2016-09-09 2017-01-11 腾讯科技(深圳)有限公司 Network resource updating method and device
CN106603311A (en) * 2017-01-18 2017-04-26 北京洋浦伟业科技发展有限公司 OTA upgrade method, client, server and system
CN106598645A (en) * 2016-11-18 2017-04-26 北京奇虎科技有限公司 Application updating method and device and mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103209199B (en) * 2012-01-16 2018-09-28 深圳市腾讯计算机系统有限公司 A kind of method and information carrying means of transmission information
CN106506601B (en) * 2016-10-12 2020-05-15 北京奇虎科技有限公司 Data transmission method and device
CN106850745B (en) * 2016-12-23 2021-01-15 北京五八信息技术有限公司 Real-time synchronization method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140123037A1 (en) * 2012-10-29 2014-05-01 Samsung Electronics Co., Ltd. Apparatus and method for displaying loading state of web browser in portable terminal
CN103916373A (en) * 2013-01-07 2014-07-09 腾讯科技(深圳)有限公司 Data updating method, server, client side and system
CN106326489A (en) * 2016-09-09 2017-01-11 腾讯科技(深圳)有限公司 Network resource updating method and device
CN106598645A (en) * 2016-11-18 2017-04-26 北京奇虎科技有限公司 Application updating method and device and mobile terminal
CN106603311A (en) * 2017-01-18 2017-04-26 北京洋浦伟业科技发展有限公司 OTA upgrade method, client, server and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210141629A1 (en) * 2019-11-08 2021-05-13 Toyota Jidosha Kabushiki Kaisha Program update system and vehicle management server
US11704106B2 (en) * 2019-11-08 2023-07-18 Toyota Jidosha Kabushiki Kaisha Program update system and vehicle management server
US20230305835A1 (en) * 2019-11-08 2023-09-28 Toyota Jidosha Kabushiki Kaisha Program update system and vehicle management server

Also Published As

Publication number Publication date
CN108228210A (en) 2018-06-29
CN108228210B (en) 2021-06-04

Similar Documents

Publication Publication Date Title
WO2019109513A1 (en) Resource updating method and system, electronic device, and medium
US11064012B2 (en) File downloading method, apparatus, and non-transitory computer-readable storage medium
US8027671B2 (en) Delivering files to a mobile device
US10387451B2 (en) Synchronization system for multiple client devices
CN107832100B (en) APK plug-in loading method and terminal thereof
US20080113656A1 (en) System and method for updating contents
EP2527999A1 (en) Method and apparatus for splitting media files
WO2014026613A1 (en) Network bandwidth distribution method and terminal
WO2013086128A1 (en) Quality of service application controller and user equipment application profiler
US9049164B2 (en) Dynamic message retrieval by subdividing a message queue into sub-queues
EP3282734B1 (en) Data transmission method and terminal
WO2018071432A1 (en) Information pushing
CN106569917B (en) Data backup method and mobile terminal
US20150296014A1 (en) Picture download method and apparatus
US11038783B2 (en) Method and apparatus for managing network connection, and storage medium
CN111343089A (en) Method and system for solving flooding problem caused by MAC address HASH conflict
CN108710534A (en) The tune of multi-process plays method, apparatus, terminal device and computer storage media
WO2017219872A1 (en) Set top box upgrading and channel changing methods and systems
CN108052575A (en) File scanning method, equipment and storage medium
CN110675058A (en) Work order processing method, electronic device, storage medium and system
CN110224863A (en) A kind of file accelerates method for down loading and device
US10042414B2 (en) Concurrent network application scheduling for reduced power consumption
CN115269063A (en) Process creation method, system, device and medium
EP3992770A1 (en) Message processing method and apparatus, and computer storage medium
CN110069493B (en) Data processing method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18886796

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 12.10.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18886796

Country of ref document: EP

Kind code of ref document: A1