CN112783539A - Application updating method, system, terminal device and storage medium - Google Patents

Application updating method, system, terminal device and storage medium Download PDF

Info

Publication number
CN112783539A
CN112783539A CN202010312163.9A CN202010312163A CN112783539A CN 112783539 A CN112783539 A CN 112783539A CN 202010312163 A CN202010312163 A CN 202010312163A CN 112783539 A CN112783539 A CN 112783539A
Authority
CN
China
Prior art keywords
configuration
application
updating
page
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010312163.9A
Other languages
Chinese (zh)
Inventor
申健
李建新
罗建飞
刘彦良
许超
冯昊
林旻
巴景云
李清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Merchants Securities Co ltd
Original Assignee
China Merchants Securities Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Merchants Securities Co ltd filed Critical China Merchants Securities Co ltd
Priority to CN202010312163.9A priority Critical patent/CN112783539A/en
Publication of CN112783539A publication Critical patent/CN112783539A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides an application updating method, a system, a terminal device and a storage medium, wherein the method comprises the following steps: when any application is started, acquiring an application configuration abstract of a current application, and sending the application configuration abstract to a configuration center to inquire a differential quantity updating configuration, wherein the differential quantity updating configuration carries a page identifier; if the current page opened by the current application is matched with the page identifier, sending the residual quantity updating configuration to a resource center query residual quantity configuration file; and downloading the queried delta configuration file from the resource center, and updating the current page according to the delta configuration file. The invention realizes the updating of the application by adopting the mode of inquiring the differential quantity updating configuration and downloading the differential quantity configuration file, so that an updating package does not need to be downloaded, the updating efficiency and the accuracy of the application are effectively improved, the downloading of invalid data is effectively reduced by directly downloading the required differential quantity configuration file, and the updating efficiency of the application is improved.

Description

Application updating method, system, terminal device and storage medium
Technical Field
The present invention belongs to the field of application update, and in particular, to an application update method, system, terminal device, and storage medium.
Background
At present, mobile phone Applications (APPs) compete for being popular, good interaction and performance are only basic, and it is critical that one APP cannot be updated quickly to provide content and services for customers. In order to improve user experience, in recent years, all large applications start to adopt an offline cache technology, and resource files are read from a local storage space of a mobile phone to accelerate the page loading speed. And in addition, the offline resource packet updating service is added, and the online client offline page is updated. The key point of using the offline update package to update the page in the application is the size of the update package, and when the update package is too large, the cost of network bandwidth is high, the update speed is slow, and the download process of the mobile phone network is easy to fail, so that the update reach rate is low.
In the existing application updating process, the size of an updating packet is reduced by adopting a differential updating packet mode, and a complete packet is replaced by the differential packet by calculating the differential between two updating packets, so that the size of a packet body is further reduced.
Disclosure of Invention
The embodiment of the application updating method and system, terminal equipment and storage medium aims to solve the problem that in the existing application updating process, due to the fact that difference tolerance is prone to matching errors, application updating accuracy is low.
In a first aspect, an embodiment of the present application provides an application update method, where the method includes:
when any application is started, acquiring an application configuration abstract of a current application, and sending the application configuration abstract to a configuration center to inquire a differential quantity updating configuration, wherein the differential quantity updating configuration carries a page identifier;
if the current page opened by the current application is matched with the page identifier, sending the residual quantity updating configuration to a resource center query residual quantity configuration file;
and downloading the queried delta configuration file from the resource center, and updating the current page according to the delta configuration file.
Compared with the prior art, the embodiment of the application has the advantages that: the updating of the application is realized by inquiring the differential quantity updating configuration and downloading the differential quantity configuration file, so that an updating package does not need to be downloaded, the updating efficiency and the updating accuracy of the application are effectively improved, the downloading of invalid data is effectively reduced by directly downloading the required differential quantity configuration file, and the updating efficiency of the application is improved.
Further, after the step of starting any application, the method further includes:
acquiring user information in the current application, and sending the user information to the configuration center to inquire recommended version information;
acquiring the current version number of the configuration element of each functional page in the current application, and matching the configuration element with the recommended version information to obtain a recommended version number;
judging whether the current version number is the same as the recommended version number;
if the current version number is different from the recommended version number, the configuration elements and the recommended version number are correspondingly stored to obtain the delta updating configuration;
if the current page opened by the current application is matched with the page identifier, sending the residual quantity updating configuration to the resource center to inquire the residual quantity configuration file;
and downloading the queried delta configuration file from the resource center, and updating the current page according to the delta configuration file.
Further, after the step of sending the application configuration summary to the configuration center to query the delta update configuration, the method further includes:
acquiring a page website of the current page, and judging whether the page website is matched with the page identifier in the difference amount updating configuration;
if the page website is matched with the page identifier, sending the residual quantity updating configuration corresponding to the matched page identifier to the resource center so as to query the residual quantity configuration file;
and downloading the queried delta configuration file from the resource center, and updating the current page according to the delta configuration file.
Further, after the step of sending the application configuration summary to the configuration center to query the delta update configuration, the method further includes:
acquiring the page identifier in the delta updating configuration, and judging whether the current application stores configuration information carrying the same page identifier according to the page identifier;
and if the current application storage carries the configuration information with the same page identifier, covering the queried differential quantity updating configuration on the configuration information.
Further, the method further comprises:
acquiring a locally pre-stored update white list, and downloading a configuration file from the resource center according to a preset configuration name in the update white list;
and updating the current application according to the downloaded configuration file.
Further, the obtaining the application configuration summary of the current application includes:
calculating hash values of files corresponding to configuration elements on all functional pages in the current application;
and correspondingly storing the name of the function page, the name of the configuration element and the calculated hash value to obtain the application configuration abstract.
In a second aspect, an embodiment of the present application provides an application update system, including:
the system comprises a delta configuration query module, a configuration center and a delta updating module, wherein the delta configuration query module is used for acquiring an application configuration abstract of a current application when any application is started, and sending the application configuration abstract to the configuration center for querying delta updating configuration, and the delta updating configuration carries a page identifier;
a residual quantity configuration file query module, configured to send the residual quantity update configuration to a resource center to query a residual quantity configuration file if the current page opened by the current application matches the page identifier;
and the page updating module is used for downloading the queried differential configuration file from the resource center and updating the current page according to the differential configuration file.
Further, the application update system further includes:
an application version recommending module: the system comprises a configuration center, a user information acquisition module and a user information acquisition module, wherein the configuration center is used for acquiring user information in the current application and sending the user information to the configuration center to inquire recommended version information;
acquiring the current version number of the configuration element of each functional page in the current application, and matching the configuration element with the recommended version information to obtain a recommended version number;
judging whether the current version number is the same as the recommended version number;
if the current version number is different from the recommended version number, the configuration elements and the recommended version number are correspondingly stored to obtain the delta updating configuration;
if the current page opened by the current application is matched with the page identifier, sending the residual quantity updating configuration to the resource center to inquire the residual quantity configuration file;
and downloading the queried delta configuration file from the resource center, and updating the current page according to the delta configuration file.
In a third aspect, an embodiment of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the method described above.
In a fourth aspect, the present application provides a storage medium storing a computer program, and when the computer program is executed by a processor, the computer program implements the method as described above.
In a fifth aspect, an embodiment of the present application provides a computer program product, which, when run on a terminal device, causes the terminal device to execute the application updating method according to any one of the above first aspects.
It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.
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 description of the prior art will be briefly described below.
Fig. 1 is a flowchart of an application update method according to a first embodiment of the present application;
FIG. 2 is a flowchart of an application update method according to a second embodiment of the present application;
FIG. 3 is a flowchart of an application update method according to a third embodiment of the present application;
FIG. 4 is a flowchart of an application update method according to a fourth embodiment of the present application;
fig. 5 is a flowchart of an application update method according to a fifth embodiment of the present application;
FIG. 6 is a flowchart of an application update method according to a sixth embodiment of the present application;
fig. 7 is a schematic structural diagram of an application update system according to a seventh embodiment of the present application;
fig. 8 is a schematic structural diagram of a terminal device according to an eighth embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
Example one
Please refer to fig. 1, which is a flowchart illustrating an application update method according to a first embodiment of the present application, including the steps of:
step S10, when any application is started, acquiring the application configuration abstract of the current application, and sending the application configuration abstract to a configuration center to inquire the differential quantity updating configuration;
the difference updating configuration carries a page identifier, the application updating method is applied to any terminal device, the terminal device can be a mobile phone, a tablet, a computer or wearable intelligent equipment and the like, and in the step, whether the corresponding application is started or not is judged by monitoring process information of all applications on the terminal device.
In this step, the obtaining of the application configuration summary of the current application includes:
calculating hash values of files corresponding to configuration elements on all functional pages in the current application;
and correspondingly storing the name of the function page, the name of the configuration element and the calculated hash value to obtain the application configuration abstract.
In this step, the process information stores CPU information, memory information, disk information, network information, GPU information, and the like occupied by each application in the terminal device, and whether the corresponding application is in a start state on the terminal device is determined by monitoring fluctuations of the CPU information, the memory information, the disk information, the network information, and the GPU information.
Preferably, in this step, the application configuration abstract may store user information in the current application and page configuration data of the functional pages in the current application, where the page configuration data stores a version number of a configuration element in each functional page, and the configuration element includes one or a combination of more of a page frame, a page title, page content, a page column, and a page navigation bar.
Specifically, in this step, the application configuration abstract is sent to the configuration center to query the content that needs to be updated for the application configuration abstract, so as to obtain the delta update configuration, for example, when the configuration information of the functional page a is stored in the application configuration abstract, the configuration information includes version information of the page frame a, the page title a, the page content a and the page column a, whether the versions that need to be updated for the page frame a, the page title a, the page content a and the page column a are needed to be queried by sending the application configuration abstract to the configuration center, and when the versions that need to be updated are queried, the delta update configuration is obtained according to the query result, so in this embodiment, by sending the application configuration abstract, the configuration elements that need to be updated for the current application can be directly queried, so as to perform targeted update, the updating package does not need to be downloaded for comprehensive updating, and the updating efficiency of the application is improved.
Step S20, judging whether the current page opened by the current application is matched with the page identification;
the delta updating configuration is stored with a plurality of updating information, each updating information is stored with a page identifier, each page identifier points to a unique corresponding configuration element, that is, the updating information is used for triggering the updating of the corresponding configuration element.
Specifically, when it is determined that a page element in a current page matches a page identifier stored in any update information in the delta update configuration, it is determined that the current page matches the page identifier.
And if the current page started by the current application is not matched with the page identifier stored in the updating information in the residual quantity updating configuration, judging that the current page does not need to be updated.
If the current page opened by the current application is matched with the page identifier, executing step S30;
step S30, sending the residual quantity updating configuration to a resource center to inquire a residual quantity configuration file;
the resource center stores the corresponding relationship between different delta updating configurations and corresponding delta configuration files, and the delta configuration files are used for updating the information of configuration elements in the functional pages.
Specifically, in this step, the delta update configuration and the delta configuration file may be stored in correspondence in a manner of a configuration identifier, so that when the delta update configuration is sent to the resource center for file query, a target delta configuration file is obtained, preferably, the configuration identifier may be stored in a manner of a text identifier, a code identifier, or a digital identifier, so that the delta update configuration can correspond to the delta configuration file one to one, and the accuracy of querying the target delta configuration file is effectively improved.
Step S40, downloading the queried delta configuration file from the resource center, and updating the current page according to the delta configuration file;
the resource center stores all downloading ports of the differential configuration files, the terminal device can effectively and conveniently download the inquired differential configuration files based on the downloading ports, and the current page is updated through the design of downloading the obtained differential configuration files, so that only the current page needs to be updated, the updating information of other pages does not need to be downloaded, and the application updating efficiency is improved.
In addition, in this step, the method further includes:
acquiring a locally pre-stored update white list, and downloading a configuration file from the resource center according to a preset configuration name in the update white list;
updating the current application according to the downloaded configuration file;
the preset configuration name in the update white list may be set as required, that is, when the current application is updated, the application may be forcibly updated in a directional manner based on the preset configuration name.
In the embodiment, the updating of the application is realized by inquiring the differential quantity updating configuration and downloading the differential quantity configuration file, so that an updating package does not need to be downloaded, the updating efficiency and the updating accuracy of the application are effectively improved, the downloading of invalid data is effectively reduced by directly downloading the required differential quantity configuration file, and the updating efficiency of the application is improved.
Example two
Please refer to fig. 2, which is a flowchart illustrating an application update method according to a second embodiment of the present application, including the steps of:
step S11, when any application is started, acquiring the page number of the functional page in the current application, and generating a page configuration item according to the page number;
the method comprises the steps that a page information table is stored in each application, the page information table stores the number of pages corresponding to functional pages in the application and the number of configuration elements in each functional page, therefore, the page information table is inquired to obtain the number of the corresponding pages, and page configuration items of the corresponding number are generated based on the number of the pages, for example, when the number of the pages of the functional pages in the current application is 3, 3 page configuration items are correspondingly generated.
Step S21, associating the page configuration item with the function page, and acquiring the configuration elements in the function page;
the page configuration items and the function pages are designed in a correlation mode, so that the function pages and the page configuration items are in one-to-one correspondence, and subsequent information storage and query of the page configuration items are effectively facilitated.
Step S31, generating element configuration items according to the configuration elements, and acquiring the current version number of each configuration element;
and generating element configuration items with corresponding quantity according to the quantity of the configuration elements by inquiring the quantity of the configuration elements under each function page in the page information table.
For example, function page a includes configuration element a1, configuration element a2, and configuration element a3, page configuration item B associated with function page a, and the correspondingly generated element configuration items include element configuration item B1, element configuration item B2, and element configuration item B3.
Step S41, according to the current version number, setting parameters of the element configuration item, and storing the element configuration item after setting into the page configuration item associated with the corresponding function page;
that is, in this step, the element configuration item B1, the element configuration item B2, and the element configuration item B3 after the parameter setting are stored into the page configuration item B.
Step S51, generating the application configuration abstract according to the page configuration item, and sending the application configuration abstract to a configuration center to inquire residual quantity updating configuration;
preferably, a plurality of update information are stored in the delta update configuration, each update information stores a page identifier, and each page identifier points to a unique corresponding configuration element, that is, the update information is used to trigger updating of the corresponding configuration element.
In this step, the configuration center stores the latest version numbers corresponding to all configuration elements in the functional pages in different applications, and determines whether the configuration element corresponding to the element configuration item needs to be updated by determining whether the current version number carried on the element configuration item is equal to the corresponding latest version number.
Step S61, judging whether the current page opened by the current application is matched with the page identification;
and if the current page started by the current application is not matched with the page identifier stored in the updating information in the residual quantity updating configuration, judging that the current page does not need to be updated.
If the current page opened by the current application is matched with the page identifier, executing step S71;
step S71, sending the residual quantity updating configuration to a resource center to inquire a residual quantity configuration file;
step S81, downloading the queried delta configuration file from the resource center, and updating the current page according to the delta configuration file.
In the embodiment, the updating of the application is realized by inquiring the differential quantity updating configuration and downloading the differential quantity configuration file, so that an updating package does not need to be downloaded, the updating efficiency and the updating accuracy of the application are effectively improved, the downloading of invalid data is effectively reduced by directly downloading the required differential quantity configuration file, and the updating efficiency of the application is improved.
EXAMPLE III
Please refer to fig. 3, which is a flowchart illustrating an application update method according to a third embodiment of the present application, including the steps of:
step S12, when any application is started, obtaining the user information in the current application, and sending the user information to the configuration center to inquire the recommended version information;
the user information stores a user identifier, where the user identifier may be a user account, a user name, a user contact address, or a user biological characteristic, and preferably, the user contact address may be a mobile phone number or a mailbox address, and the user biological characteristic may be a fingerprint characteristic, a facial characteristic, a voiceprint characteristic, or a pupil characteristic.
Specifically, the configuration center stores the corresponding relationship between different user information and corresponding recommended version information, so that the user information is sent to the configuration center to query the corresponding recommended version information, and further different versions of different users can be recommended to the same application, for example, the recommended version information queried in the configuration center is different for the user information of a common user and a member user.
Step S22, acquiring the current version number of the configuration element of each function page in the current application, and matching the configuration element with the recommended version information to obtain a recommended version number;
the recommended version information stores recommended version numbers corresponding to the configuration elements of all the functional pages in the current application, so that the configuration elements are matched with the recommended version information to obtain the corresponding recommended version numbers.
Step S32, judging whether the current version number is the same as the recommended version number;
and if the current version number is the same as the recommended version number, judging that the version of the configuration element corresponding to the current version number is the latest version, and updating the configuration element without need.
If the current version number is not the same as the recommended version number, executing step S42;
step S42, the configuration elements and the recommended version number are correspondingly stored, and the delta updating configuration is obtained;
wherein the delta update configuration carries a page identifier;
step S52, judging whether the current page opened by the current application is matched with the page identifier;
if the current page opened by the current application is matched with the page identifier, executing step S62;
step S62, sending the residual quantity updating configuration to the resource center to inquire the residual quantity configuration file;
step S72, downloading the queried delta configuration file from the resource center, and updating the current page according to the delta configuration file;
in the embodiment, the updating of the application is realized by inquiring the differential quantity updating configuration and downloading the differential quantity configuration file, so that an updating package does not need to be downloaded, the updating efficiency and the updating accuracy of the application are effectively improved, the downloading of invalid data is effectively reduced by directly downloading the required differential quantity configuration file, and the updating efficiency of the application is improved.
Example four
Please refer to fig. 4, which is a flowchart illustrating an application update method according to a fourth embodiment of the present application, including the steps of:
step S13, when any application is started, acquiring the application configuration abstract of the current application, and sending the application configuration abstract to a configuration center to inquire the differential quantity updating configuration;
wherein the delta update configuration carries a page identifier;
step S23, judging whether the continuous display time of the current page in the current application is larger than a time threshold value;
when the current application is switched, the switched current page is timed to obtain the continuous display time, and whether the current page needs to be updated or not is judged by judging whether the continuous display time is greater than a time threshold or not.
If the continuous display time of the current page is less than or equal to a time threshold, judging that the current page is not updated;
specifically, when it is determined that the duration of the current page is greater than the time threshold, it is determined that the usage time of the user for the current page is longer, and therefore, the current page needs to be updated in time to ensure the usage experience of the user for the current page, preferably, the time threshold may be set according to a requirement, for example, the time threshold may be set to 2 minutes, 3 minutes, or 10 minutes.
If the continuous display time of the current page is greater than the time threshold, executing step S33;
step S33, acquiring the web address of the current page;
and the page websites corresponding to different functional pages in the current application are different.
Step S43, determining whether the web address of the page matches the page identifier in the delta update configuration;
the difference amount updating configuration is stored with a plurality of updating information, each updating information is stored with a page identifier, each page identifier points to a unique corresponding page website, namely when the page website is judged to be matched with the page identifier in the difference amount updating configuration, it is judged that an updated version exists for the function page corresponding to the page website.
If the page website is not matched with all the page identifiers in the residual quantity updating configuration, judging that no updated version exists for the functional page corresponding to the page website;
if the web address of the page matches the page identifier, executing step S53;
step S53, sending the delta update configuration corresponding to the matched page identifier to the resource center to query the delta configuration file;
step S63, downloading the queried delta configuration file from the resource center, and updating the current page according to the delta configuration file;
in the embodiment, the updating of the application is realized by inquiring the differential quantity updating configuration and downloading the differential quantity configuration file, so that an updating package does not need to be downloaded, the updating efficiency and the updating accuracy of the application are effectively improved, the downloading of invalid data is effectively reduced by directly downloading the required differential quantity configuration file, and the updating efficiency of the application is improved.
EXAMPLE five
Please refer to fig. 5, which is a flowchart of an application update method according to a fifth embodiment of the present application, including the steps of:
step S14, when any application is started, acquiring the application configuration abstract of the current application, and sending the application configuration abstract to a configuration center to inquire the differential quantity updating configuration;
wherein the delta update configuration carries a page identifier;
step S24, obtaining the running time of each function page in the preset time of the current application, and sequencing the function pages according to the length of the running time;
the preset time may be set according to a requirement, for example, may be set to one day, two days, one week, or the like, and the use condition of the user for all the function pages in the current application is determined by obtaining the design of the running time of each function page in the current application within the preset time.
Step S34, determining the function pages ordered in the preset digit;
the preset digits can be set according to requirements, for example, 3 digits, 4 digits or 5 digits, and the functional pages ordered in the preset digits are marked as pages to be updated.
Specifically, in this step, the functional page with the longest user use time is preferentially updated by determining the design of the functional pages sorted within the preset number of digits.
Step S44, determining whether the function page matches the page identifier in the delta update configuration;
the page address of each page to be updated can be obtained, the page address is matched with the page identifier in the delta updating configuration, and whether the corresponding page to be updated is matched with the page identifier is judged according to a matching result.
If the determined function page matches the page identifier in the delta update configuration, performing step S54;
step S54, sending the delta update configuration corresponding to the matched page identifier to the resource center to query the delta configuration file;
step S64, downloading the queried delta configuration file from the resource center, and updating the current page according to the delta configuration file;
in the embodiment, the updating of the application is realized by inquiring the differential quantity updating configuration and downloading the differential quantity configuration file, so that an updating package does not need to be downloaded, the updating efficiency and the updating accuracy of the application are effectively improved, the downloading of invalid data is effectively reduced by directly downloading the required differential quantity configuration file, and the updating efficiency of the application is improved.
EXAMPLE six
Please refer to fig. 6, which is a flowchart illustrating an application updating method according to a sixth embodiment of the present application, including the steps of:
step S15, when any application is started, acquiring the application configuration abstract of the current application, and sending the application configuration abstract to a configuration center to inquire the differential quantity updating configuration;
the difference updating configuration carries a page identifier, the application updating method is applied to any terminal device, the terminal device can be a mobile phone, a tablet, a computer or wearable intelligent equipment and the like, and in the step, whether the corresponding application is started or not is judged by monitoring process information of all applications on the terminal device.
Step S25, acquiring the page identifier in the delta update configuration;
the delta updating configuration is stored with a plurality of updating information, each updating information is stored with a page identifier, each page identifier points to a unique corresponding configuration element, that is, the updating information is used for triggering the updating of the corresponding configuration element.
Step S35, judging whether the current application stores the configuration information carrying the same page identifier according to the page identifier;
each page identifier points to a unique corresponding configuration element, so that when the page identifier stored in the delta update configuration is judged to be the same as the page identifier stored in the configuration information in the current application, it is judged that the configuration element pointed by the page identifier has two versions to be updated.
If the current application store carries the configuration information with the same page identifier, executing step S45;
step S45, the queried delta update configuration is used to override the configuration information;
the queried delta updating configuration is designed to cover the configuration information, so that the queried latest version is updated and covered on the version stored in the configuration information in the current application, the phenomenon of updating errors of corresponding configuration elements is effectively prevented, and the accuracy of application updating is improved.
Step S55, judging whether the current page opened by the current application is matched with the page identification;
if the current page opened by the current application is matched with the page identifier, executing step S65;
step S65, sending the residual quantity updating configuration to a resource center to inquire a residual quantity configuration file;
step S75, downloading the queried delta configuration file from the resource center, and updating the current page according to the delta configuration file.
In the embodiment, the updating of the application is realized by inquiring the differential quantity updating configuration and downloading the differential quantity configuration file, so that an updating package does not need to be downloaded, the updating efficiency and the updating accuracy of the application are effectively improved, the downloading of invalid data is effectively reduced by directly downloading the required differential quantity configuration file, and the updating efficiency of the application is improved.
EXAMPLE seven
Fig. 7 shows a schematic structural diagram of an application updating system 100 provided in a seventh embodiment of the present application, corresponding to the application updating method described in the foregoing embodiments, and only shows portions related to the embodiments of the present application for convenience of description.
Referring to fig. 7, the system includes: a delta configuration query module 10, a delta configuration file query module 11, and a page update module 12, wherein:
the delta configuration query module 10 is configured to, when any application is started, obtain an application configuration abstract of a current application, and send the application configuration abstract to a configuration center to query a delta update configuration, where the delta update configuration carries a page identifier.
Wherein the delta configuration query module 10 is further configured to: acquiring the page number of the functional page in the current application, and generating a page configuration item according to the page number;
associating the page configuration item with the function page, and acquiring configuration elements in the function page;
generating element configuration items according to the configuration elements, and acquiring the current version number of each configuration element;
setting parameters of the element configuration items according to the current version number, and storing the set element configuration items into the page configuration items associated with the corresponding function pages;
and generating the application configuration abstract according to the page configuration item.
Preferably, the delta configuration query module 10 is further configured to: calculating hash values of files corresponding to configuration elements on all functional pages in the current application;
and correspondingly storing the name of the function page, the name of the configuration element and the calculated hash value to obtain the application configuration abstract.
And the residual quantity configuration file query module 11 is configured to send the residual quantity update configuration to the resource center to query a residual quantity configuration file if the current page opened by the current application matches the page identifier.
Wherein, the delta profile query module 11 is further configured to: if the continuous display time of the current page is longer than a time threshold, acquiring a page website of the current page;
judging whether the page website is matched with the page identifier in the difference amount updating configuration;
if the page website is matched with the page identifier, sending the residual quantity updating configuration corresponding to the matched page identifier to the resource center so as to query the residual quantity configuration file;
and downloading the queried delta configuration file from the resource center, and updating the current page according to the delta configuration file.
Preferably, the delta profile query module 11 is further configured to: acquiring the running time of each functional page of the current application within preset time, and sequencing the functional pages according to the length of the running time;
determining the function pages ordered in the front preset digit;
if the determined function page is matched with the page identifier in the delta update configuration, sending the delta update configuration corresponding to the matched page identifier to the resource center to query the delta configuration file;
and downloading the queried delta configuration file from the resource center, and updating the current page according to the delta configuration file.
A page updating module 12, configured to download the queried delta configuration file from the resource center, and update the current page according to the delta configuration file.
Wherein the page update module 12 is further configured to: acquiring a locally pre-stored update white list, and downloading a configuration file from the resource center according to a preset configuration name in the update white list;
and updating the current application according to the downloaded configuration file.
In addition, in this embodiment, the application update system 100 further includes:
an application version recommending module 13, configured to obtain user information in the current application, and send the user information to the configuration center to query recommended version information;
acquiring the current version number of the configuration element of each functional page in the current application, and matching the configuration element with the recommended version information to obtain a recommended version number;
judging whether the current version number is the same as the recommended version number;
if the current version number is different from the recommended version number, the configuration elements and the recommended version number are correspondingly stored to obtain the delta updating configuration;
if the current page opened by the current application is matched with the page identifier, sending the residual quantity updating configuration to the resource center to inquire the residual quantity configuration file;
and downloading the queried delta configuration file from the resource center, and updating the current page according to the delta configuration file.
A configuration coverage module 14, configured to obtain the page identifier in the delta update configuration, and determine, according to the page identifier, whether the current application stores configuration information carrying the same page identifier;
and if the current application storage carries the configuration information with the same page identifier, covering the queried differential quantity updating configuration on the configuration information.
In the embodiment, the updating of the application is realized by inquiring the differential quantity updating configuration and downloading the differential quantity configuration file, so that an updating package does not need to be downloaded, the updating efficiency and the updating accuracy of the application are effectively improved, the downloading of invalid data is effectively reduced by directly downloading the required differential quantity configuration file, and the updating efficiency of the application is improved.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/modules, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and reference may be made to the part of the embodiment of the method specifically, and details are not described here.
Fig. 8 is a schematic structural diagram of a terminal device 2 according to an eighth embodiment of the present application. As shown in fig. 8, the terminal device 2 of this embodiment includes: at least one processor 20 (only one processor is shown in fig. 8), a memory 21, and a computer program 22 stored in the memory 21 and executable on the at least one processor 20, the steps of any of the various method embodiments described above being implemented when the computer program 22 is executed by the processor 20.
The terminal device 2 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 20, a memory 21. Those skilled in the art will appreciate that fig. 8 is merely an example of the terminal device 2, and does not constitute a limitation of the terminal device 2, and may include more or less components than those shown, or combine some components, or different components, such as an input-output device, a network access device, and the like.
The Processor 20 may be a Central Processing Unit (CPU), and the Processor 20 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 21 may in some embodiments be an internal storage unit of the terminal device 2, such as a hard disk or a memory of the terminal device 2. The memory 21 may also be an external storage device of the terminal device 2 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 2. Further, the memory 21 may include both an internal storage unit and an external storage device of the terminal device 2. The memory 21 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer program. The memory 21 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
An embodiment of the present application further provides a network device, where the network device includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, the processor implementing the steps of any of the various method embodiments described above when executing the computer program.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal apparatus, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. An application update method, the method comprising:
when any application is started, acquiring an application configuration abstract of a current application, and sending the application configuration abstract to a configuration center to inquire a differential quantity updating configuration, wherein the differential quantity updating configuration carries a page identifier;
if the current page opened by the current application is matched with the page identifier, sending the residual quantity updating configuration to a resource center query residual quantity configuration file;
and downloading the queried delta configuration file from the resource center, and updating the current page according to the delta configuration file.
2. The application updating method of claim 1, wherein after the step of any application launching, the method further comprises:
acquiring user information in the current application, and sending the user information to the configuration center to inquire recommended version information;
acquiring the current version number of the configuration element of each functional page in the current application, and matching the configuration element with the recommended version information to obtain a recommended version number;
judging whether the current version number is the same as the recommended version number;
if the current version number is different from the recommended version number, the configuration elements and the recommended version number are correspondingly stored to obtain the delta updating configuration;
if the current page opened by the current application is matched with the page identifier, sending the residual quantity updating configuration to the resource center to inquire the residual quantity configuration file;
and downloading the queried delta configuration file from the resource center, and updating the current page according to the delta configuration file.
3. The application update method of claim 1, wherein after the step of sending the application configuration summary to a configuration center for querying delta update configurations, the method further comprises:
acquiring a page website of the current page, and judging whether the page website is matched with the page identifier in the difference amount updating configuration;
if the page website is matched with the page identifier, sending the residual quantity updating configuration corresponding to the matched page identifier to the resource center so as to query the residual quantity configuration file;
and downloading the queried delta configuration file from the resource center, and updating the current page according to the delta configuration file.
4. The application update method of claim 1, wherein after the step of sending the application configuration summary to a configuration center for querying delta update configurations, the method further comprises:
acquiring the page identifier in the delta updating configuration, and judging whether the current application stores configuration information carrying the same page identifier according to the page identifier;
and if the current application storage carries the configuration information with the same page identifier, covering the queried differential quantity updating configuration on the configuration information.
5. The application update method of claim 1, wherein the method further comprises:
acquiring a locally pre-stored update white list, and downloading a configuration file from the resource center according to a preset configuration name in the update white list;
and updating the current application according to the downloaded configuration file.
6. The application updating method of claim 1, wherein the obtaining of the application configuration summary of the current application comprises:
calculating hash values of files corresponding to configuration elements on all functional pages in the current application;
and correspondingly storing the name of the function page, the name of the configuration element and the calculated hash value to obtain the application configuration abstract.
7. An application update system, comprising:
the system comprises a delta configuration query module, a configuration center and a delta updating module, wherein the delta configuration query module is used for acquiring an application configuration abstract of a current application when any application is started, and sending the application configuration abstract to the configuration center for querying delta updating configuration, and the delta updating configuration carries a page identifier;
a residual quantity configuration file query module, configured to send the residual quantity update configuration to a resource center to query a residual quantity configuration file if the current page opened by the current application matches the page identifier;
and the page updating module is used for downloading the queried differential configuration file from the resource center and updating the current page according to the differential configuration file.
8. The application update system of claim 7, wherein the application update system further comprises:
an application version recommending module: the system comprises a configuration center, a user information acquisition module and a user information acquisition module, wherein the configuration center is used for acquiring user information in the current application and sending the user information to the configuration center to inquire recommended version information;
acquiring the current version number of the configuration element of each functional page in the current application, and matching the configuration element with the recommended version information to obtain a recommended version number;
judging whether the current version number is the same as the recommended version number;
if the current version number is different from the recommended version number, the configuration elements and the recommended version number are correspondingly stored to obtain the delta updating configuration;
if the current page opened by the current application is matched with the page identifier, sending the residual quantity updating configuration to the resource center to inquire the residual quantity configuration file;
and downloading the queried delta configuration file from the resource center, and updating the current page according to the delta configuration file.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 6 when executing the computer program.
10. A storage medium storing a computer program, characterized in that the computer program, when executed by a processor, implements the method according to any one of claims 1 to 6.
CN202010312163.9A 2020-04-20 2020-04-20 Application updating method, system, terminal device and storage medium Pending CN112783539A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010312163.9A CN112783539A (en) 2020-04-20 2020-04-20 Application updating method, system, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010312163.9A CN112783539A (en) 2020-04-20 2020-04-20 Application updating method, system, terminal device and storage medium

Publications (1)

Publication Number Publication Date
CN112783539A true CN112783539A (en) 2021-05-11

Family

ID=75749247

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010312163.9A Pending CN112783539A (en) 2020-04-20 2020-04-20 Application updating method, system, terminal device and storage medium

Country Status (1)

Country Link
CN (1) CN112783539A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649395A (en) * 2015-11-03 2017-05-10 腾讯科技(深圳)有限公司 Webpage updating method and apparatus
CN106933614A (en) * 2015-12-30 2017-07-07 广州爱九游信息技术有限公司 A kind of single-page application upgrade method and device
CN108037946A (en) * 2017-11-03 2018-05-15 金证财富南京科技有限公司 A kind of method, system and the server of the renewal of application program heat
CN108228210A (en) * 2017-12-08 2018-06-29 平安科技(深圳)有限公司 A kind of resource regeneration method and system
CN110058873A (en) * 2019-03-12 2019-07-26 天津五八到家科技有限公司 Application page update method, device, equipment and storage medium
CN110059276A (en) * 2019-03-12 2019-07-26 天津五八到家科技有限公司 Method for updating pages, device, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649395A (en) * 2015-11-03 2017-05-10 腾讯科技(深圳)有限公司 Webpage updating method and apparatus
CN106933614A (en) * 2015-12-30 2017-07-07 广州爱九游信息技术有限公司 A kind of single-page application upgrade method and device
CN108037946A (en) * 2017-11-03 2018-05-15 金证财富南京科技有限公司 A kind of method, system and the server of the renewal of application program heat
CN108228210A (en) * 2017-12-08 2018-06-29 平安科技(深圳)有限公司 A kind of resource regeneration method and system
CN110058873A (en) * 2019-03-12 2019-07-26 天津五八到家科技有限公司 Application page update method, device, equipment and storage medium
CN110059276A (en) * 2019-03-12 2019-07-26 天津五八到家科技有限公司 Method for updating pages, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111447150B (en) Access request flow limiting method, server and storage medium
CN108768875B (en) Application gray level publishing method and device and computer readable storage medium
CN100507907C (en) Methods and apparatus for content protection in a wireless network
CN109951435B (en) Equipment identifier providing method and device and risk control method and device
US20180295193A1 (en) Method, device, apparatus, and storage medium for generating identification information
CN110516471B (en) Product promotion method based on information security and related equipment
CN111277635B (en) Method, equipment, device and computer medium for accessing external node to block chain
CN110543324B (en) Plug-in increment updating method and device for application program
CN105357204B (en) Method and device for generating terminal identification information
CN111694841A (en) Order mark generation method, device, server and storage medium
CN106649446B (en) Information pushing method and device
CN106534268B (en) Data sharing method and device
CN111651667B (en) Data push and distribution control method and device and computer readable storage medium
CN112947981A (en) Application program resource updating method and device, terminal equipment and server
CN114465998A (en) Multi-device file transmission method and device, terminal device and readable storage medium
CN111177121A (en) Order data feedback method and device, computer equipment and storage medium
CN112657182A (en) Game equipment switching method, device and system and terminal equipment
CN110830360A (en) Multi-application program intercommunication method, electronic device and computer readable storage medium
CN111367870A (en) Method, device and system for sharing picture book
CN109656592B (en) Card management method, device, terminal and computer readable storage medium
CN111432013A (en) Configuration item issuing method, configuration item acquiring method, equipment and readable storage medium
CN111176685A (en) Upgrading method and device
CN113656098B (en) Configuration acquisition method and system
CN113535226B (en) Application downloading method, terminal, server, computer device and storage medium
CN110619204A (en) Invitation code generation method and device, terminal equipment and storage medium

Legal Events

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