CN107402786A - Using update method and device - Google Patents

Using update method and device Download PDF

Info

Publication number
CN107402786A
CN107402786A CN201710576223.6A CN201710576223A CN107402786A CN 107402786 A CN107402786 A CN 107402786A CN 201710576223 A CN201710576223 A CN 201710576223A CN 107402786 A CN107402786 A CN 107402786A
Authority
CN
China
Prior art keywords
installation kit
target
updated
installation
intended application
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.)
Withdrawn
Application number
CN201710576223.6A
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.)
Hangzhou Green Bay Network Technology Co Ltd
Original Assignee
Hangzhou Green Bay Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Green Bay Network Technology Co Ltd filed Critical Hangzhou Green Bay Network Technology Co Ltd
Priority to CN201710576223.6A priority Critical patent/CN107402786A/en
Publication of CN107402786A publication Critical patent/CN107402786A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates

Abstract

The present invention proposes that one kind applies update method and device, wherein, method includes:Server is accessed according to renewal URL;The fresh information for being updated to the intended application installed on the client is obtained from server;Wherein, fresh information includes the update sequence between the first installation kit and the first installation kit to be updated;The installation kit of target first is sequentially chosen from all first installation kits to be updated according to update sequence and is downloaded one by one;Risk assessment is carried out to the installation kit of target first after download successively;If risk is not present in the installation kit of target first, intended application is updated using the installation kit of target first.Pass through this method, the update cycle of WEB application can be shortened, lift the response speed to customer demand, risk assessment can be carried out to renewal simultaneously, meet upgrading demand for specific customization client, the technical problem for solving long, for specific customization the unpredictable risk of product of update cycle in the prior art.

Description

Using update method and device
Technical field
The present invention relates to Computer Applied Technology field, more particularly to one kind to apply update method and device.
Background technology
With the fast development of Internet technology, WEB application program is more and more common.The WEB systems of product-orientation Bug often occurs, this requires that product business is quickly updated to product to repair bug.In addition, WEB application type product is in reality Generally require to carry out some special customizations in the project of border, inevitably modified on the basis of original product file, This brings some risks for the upgrading in project later stage, and client often wants to use product New function, worries that the file of customization is coated to again Lid.
Existing WEB application update method is typically that renewal cladding covered into former installation kit, or by former installation kit and renewal Bag is used as two single installation kits.Existing update method needs the complete bag of renewal one, and renewal bag data amount is big, renewal Cycle is longer, and for the unpredictable risk of product of specific customization.
The content of the invention
It is contemplated that at least solves one of technical problem in correlation technique to a certain extent.
Therefore, first purpose of the present invention is to propose that one kind applies update method, to shorten the renewal of WEB application week Phase, the response speed to customer demand is lifted, while risk assessment can be carried out to renewal, meet the renewal of specific customization client Demand, solves the technical problem of long, for specific customization the unpredictable risk of product of update cycle in the prior art.
Second object of the present invention is to propose that one kind applies updating device.
Third object of the present invention is to propose that another kind applies updating device.
Fourth object of the present invention is to propose a kind of computer program product.
The 5th purpose of the present invention is to propose a kind of non-transitorycomputer readable storage medium.
For the above-mentioned purpose, first aspect present invention embodiment proposes one kind and applies update method, including:
Server is accessed according to renewal URL;
The fresh information for being updated to the intended application installed on the client is obtained from the server;Its In, the fresh information includes the update sequence between the first installation kit to be updated and first installation kit;Described One installation kit is used to increasing or changing One function in the intended application;The first different installation kits correspond to the target The different function in;
According to the update sequence sequentially from all first installation kits to be updated choose the installation kit of target first and by Individual download;
Risk assessment is carried out to the installation kit of the target first after download successively;
If risk is not present in the installation kit of target first, the target is updated using the installation kit of target first Using.
The application update method of the embodiment of the present invention, by accessing server according to renewal URL, obtain and be used for from server The fresh information being updated to installing intended application on the client, fresh information include the first installation kit to be updated with And the first update sequence between installation kit, sequentially choose target from all first installation kits to be updated according to update sequence First installation kit is simultaneously downloaded one by one, carries out risk assessment to the installation kit of target first after download successively, and pacify in target first Dress bag utilizes the installation kit of target first renewal intended application when risk is not present.Thus, each function to intended application is passed through Single installation kit is set, and user can be updated to application without waiting for the issue that large and complete renewal is wrapped, can reduce The data volume of each installation kit, lifts the response speed to user's request.By carrying out risk assessment, energy to the installation kit of download Enough risk profiles realized to renewal bag, avoid user from updating application in the case where not knowing about risk, lift Consumer's Experience.
For the above-mentioned purpose, second aspect of the present invention embodiment proposes one kind and applies updating device, including:
Access modules, for accessing server according to renewal URL;
Acquisition module, for being obtained from the server for being updated to the intended application installed on the client Fresh information;Wherein, the fresh information is included between the first installation kit to be updated and first installation kit more New sequences;First installation kit is used to increasing or changing One function in the intended application;The first different installations Different function in the corresponding intended application of bag;
Download module, for sequentially choosing target the from all first installation kits to be updated according to the update sequence One installation kit is simultaneously downloaded one by one;
Risk evaluation module, for carrying out risk assessment to the installation kit of the target first after download successively;
Update module, for when risk is not present in the installation kit of target first, utilizing the installation kit of target first Update the intended application.
The embodiment of the present invention applies updating device, by accessing server according to renewal URL, obtains and is used for from server The fresh information being updated to installing intended application on the client, fresh information include the first installation kit to be updated with And the first update sequence between installation kit, sequentially choose target from all first installation kits to be updated according to update sequence First installation kit is simultaneously downloaded one by one, carries out risk assessment to the installation kit of target first after download successively, and pacify in target first Dress bag utilizes the installation kit of target first renewal intended application when risk is not present.Thus, each function to intended application is passed through Single installation kit is set, and user can be updated to application without waiting for the issue that large and complete renewal is wrapped, can reduce The data volume of each installation kit, lifts the response speed to user's request.By carrying out risk assessment, energy to the installation kit of download Enough risk profiles realized to renewal bag, avoid user from updating application in the case where not knowing about risk, lift Consumer's Experience.
For the above-mentioned purpose, third aspect present invention embodiment proposes that another kind applies updating device, including:Processor and Memory;Wherein, the processor by read the executable program code stored in the memory run with it is described can Program corresponding to configuration processor code, for realizing the application update method described in first aspect embodiment.
For the above-mentioned purpose, fourth aspect present invention embodiment proposes a kind of computer program product, when the computer When instruction in program product is by computing device, the application update method described in first aspect embodiment is performed.
For the above-mentioned purpose, fifth aspect present invention embodiment proposes a kind of non-transitorycomputer readable storage medium, Computer program is stored thereon with, the computer program realizes application described in first aspect embodiment more when being executed by processor New method.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description Obtain substantially, or recognized by the practice of the present invention.
Brief description of the drawings
Of the invention above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Substantially and it is readily appreciated that, wherein:
Fig. 1 is the schematic flow sheet using update method that one embodiment of the invention proposes;
Fig. 2 is the schematic flow sheet using update method that another embodiment of the present invention proposes;
Fig. 3 is the schematic flow sheet using update method that further embodiment of this invention proposes;
Fig. 4 is the structural representation using updating device that one embodiment of the invention proposes;
Fig. 5 is the structural representation using updating device that another embodiment of the present invention proposes;
Fig. 6 is the structural representation for the another kind application updating device that one embodiment of the invention proposes.
Embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the application update method and device of the embodiment of the present invention are described.
Fig. 1 is the schematic flow sheet using update method that one embodiment of the invention proposes, this method can be by being provided with The browser of WEB application program performs.
As shown in figure 1, this includes using update method:
S11, server is accessed according to renewal URL.
Application program generally has client/server (Client/Server, C/S) and browser/server (Browser/Server, B/S) both of which.WEB application program is generally B/S patterns, i.e. WEB application program is to be based on WEB Program, typically run by browsers such as IE, such as common counter, message board, chatroom, forum BBS etc..
Because WEB application program is mostly by various browser executions, therefore, in the present embodiment, can be installed first During WEB application program, while the renewal entrance of the WEB application program is installed, and utilizes URL (Uniform Resource Locator, URL) represent renewal entrance.When user needs to be updated WEB application program, operation installation URL., can be according to more after browser belonging to WEB application program receives trigger action of the user to updating URL Server corresponding to new URL access.
S12, the fresh information for being updated to the intended application installed on the client is obtained from server, more Fresh information includes the update sequence between the first installation kit and the first installation kit to be updated.
Wherein, client is to be provided with the browser client of WEB application program;Intended application be needs be updated or Repair bug WEB application program;First installation kit is used to increasing or changing One function in intended application;Different One installation kit corresponds to function different in intended application.
The developer of WEB application program write complete at least one function in WEB application program is updated Or after the file repaired, installation kit is packaged into after can the file of completion be arranged according to the regular catalogue of agreement, than Class file is such as put into same catalogue, alternative document is put into same catalogue, is one single file of data lab setting Deng, and the installation kit of generation is tested, installation kit is distributed to server after test passes through.
So as to which in the present embodiment, browser can obtain use by accessing server according to renewal URL from server Include developer in the fresh information that the intended application to installing on the client is updated, fresh information to be directed to In WEB application program it is to be updated or repair at least one function write generation be used at least one function is updated or The first installation kit repaired.
S13, according to update sequence sequentially from all first installation kits to be updated choose the installation kit of target first and by Individual download.
In the present embodiment, browser, can be with after server obtains the fresh information being updated to intended application The fresh information of acquisition is illustrated in browsing pages in the form of a list, for selection by the user the first peace needed for this renewal Dress bag.After last first installation kit that user selects this needs of completion to update, browser can be according to user's Selection, target first is sequentially chosen from all first installation kits to be updated shown in fresh information according to update sequence and is pacified Dress is wrapped and is downloaded one by one.
By downloading the installation kit of target first successively according to update sequence, can avoid follow-up because being deposited between the first installation kit The problem of failing is being updated caused by dependence.
S14, risk assessment is carried out to the installation kit of target first after download successively.
For have specific customization demand to WEB application program user for, user be often desirable to experience WEB application program New function, but worry that the file that customizes is capped after being updated to WEB application program, therefore, helps user to understand more The risk that new WEB application program may be brought, avoid the occurrence of because renewal causes what the function of user's specific customization can not use to ask Topic is very necessary.
In view of the above-mentioned problems, in the present embodiment, can be further after all installation kits of target first download completion Risk assessment is carried out to the installation kit of target first after download successively.
S15, if risk is not present in the installation kit of target first, update intended application using the installation kit of target first.
In the present embodiment, the result that the installation kit of target first after to download carries out risk assessment is installed for target first When risk is not present in bag, then the installation kit of target first downloaded can be utilized to be updated intended application.
The application update method of the present embodiment, by accessing server according to renewal URL, obtained from server for peace The fresh information that dress intended application on the client is updated, fresh information include the first installation kit to be updated and the Update sequence between one installation kit, target first is sequentially chosen from all first installation kits to be updated according to update sequence Installation kit is simultaneously downloaded one by one, carries out risk assessment to the installation kit of target first after download successively, and in the installation kit of target first The installation kit of target first renewal intended application is utilized during in the absence of risk.Thus, each function setting to intended application is passed through Single installation kit, user can be updated to application without waiting for the issue that large and complete renewal is wrapped, can reduce each The data volume of installation kit, lift the response speed to user's request.By carrying out risk assessment, Neng Goushi to the installation kit of download Now to the risk profile of renewal bag, avoid user from updating application in the case where not knowing about risk, lift Consumer's Experience.
In order to clearly illustrate that the implementation process for the fresh information being updated to intended application is obtained from server, The embodiment of the present invention proposes another kind and applies update method, and Fig. 2 is the application update method that another embodiment of the present invention proposes Schematic flow sheet.
As shown in Fig. 2 on the basis of embodiment as shown in Figure 1, step S12 may comprise steps of:
S21, receives the index file for including all installation kits for being used to update from server, and index file includes peace Fill the order between the mark wrapped and installation kit.
Checked for the ease of writing the installation kit of completion to developer, can be in advance in the server for each WEB application program sets a corresponding index file, and every a line of index file describes one and is used for WEB application program The installation kit that One function is updated, and mark is set for each installation kit, mark can embody the order between installation kit, For example mark as installation kit can be numbered according to the time of issue to issuing installation kit on the server, hair earliest The installation kit of cloth is identified as 1, and the installation kit of the second issue is identified as 2, by that analogy.Developer is every to be sent out on the server Cloth one is used for the installation kit updated, and the content of index file then increases a line, and the mark for the installation kit newly issued sequentially is incremented by. For example 1~30 installation kit has been have recorded in index file, when there is new installation kit to be distributed on server, indexing Increase a line content in file after 30th content corresponding to installation kit, and the installation kit allocation identification newly to issue is 31.
In the present embodiment, according to renewal URL access server after, can be received from server it is all be used for update The index file of installation kit.
Alternatively, can also include being used for more in a kind of possible implementation of the embodiment of the present invention, in index file The explanation of new installation kit, it is required when understanding the particular content of installation kit in order to user and/or be updated using installation kit Particular arrangement information etc..
Wherein, the explanation of installation kit can be write using default rule, such as, default rule can be as follows Form:
"=====installation kit * * start====="
Particular content explanation
"=====installation kit * * terminate=====".
Wherein, * * represent the type of explanation, can be particular arrangement, description of contents etc..When * * are particular arrangement, specifically Description of contents part is the descriptive information of the particular arrangement of installation kit, and when without particular arrangement, particular content declaratives can be with For sky.Other kinds of explanation is similar.
When including the explanation of order between the mark of installation kit, installation kit and installation kit in index file, rope Can be per the form of a line content in quotation part:Identify tab and separate explanation, the mark of installation kit and explanation according to mark from small Arranged to big order, the order between installation kit can be embodied.
By recording the mark and explanation of each installation kit in indexed file, user can be helped to understand the tool of installation kit Required particular arrangement information etc. when holding and/or be updated using installation kit in vivo.
S22, the mark of the first installation kit of final updating when obtaining the renewal of intended application last time.
For the WEB application program for being subordinated to browser, the renewal of One function is often completed, can be by the function pair The mark for the installation kit answered is stored in local storage corresponding to browser.When being updated to intended application next time, The mark of first installation kit of final updating when browser can obtain the renewal of intended application last time from local storage.Than Such as, it is assumed that intended application last time, which has altogether, have updated six installation kits for being identified as 25~30, then what browser obtained is identified as 30.
S23, according to the mark of the first installation kit of final updating compared with the mark of installation kit in index file.
S24, determine final updating the first installation kit mark corresponding to position in installation kit indexed file.
In the present embodiment, obtain the index file of installation kit for renewal and when intended application last time updates it is last , can be by installation kit in the mark of the first installation kit of final updating and index file after the mark of first installation kit of renewal Mark be compared, and from index file determine final updating the first installation kit mark corresponding to installation kit indexing Position in file.
S25, since the next installation kit in position, fresh information is obtained based on index file.
Due to have recorded the mark of installation kit in index file, and mark be it is tactic by from small to large, therefore, The installation kit of determined position and its installation kit before should be updated installation kit, so as to, can be with the present embodiment All installation kits using next installation kit of determined position and its afterwards are based on rope as the first installation kit to be updated Draw the mark of file acquisition the first installation kit to be updated, to be updated first is utilized according to order same in index file Installation kit forms fresh information.
For example, it is assumed that 100 that are identified as 1~100 are have recorded in index file for being carried out more to intended application New installation kit, last time have updated 1~30 when updating, then the mark of the first installation kit of the intended application final updating obtained For 30.Because the mark of installation kit in index file is arranged in order according to order from small to large, therefore, according to acquisition The mark of first installation kit of final updating, 31~100 installation kit can will be identified as the first installation kit to be updated, And form fresh information using installation kit corresponding to mark according to the order from 31 to 100.
The application update method of the present embodiment, the rope of all installation kits for being used to update is included by being received from server Quotation part, index file include installation kit mark and installation kit between order, obtain intended application last time renewal when The mark of first installation kit of final updating, according to installation kit in the mark of the first installation kit of final updating and index file Mark is compared, determine final updating the first installation kit mark corresponding to position in installation kit indexed file, from The next installation kit in position starts, and fresh information is obtained based on index file, renewable installation kit can be supplied into user, User can be updated or repair to the function of WEB application program without waiting for large and complete installation kit, shorten renewal week Phase, improve Consumer's Experience.
Fig. 3 is the schematic flow sheet using update method that further embodiment of this invention proposes.
As shown in figure 3, this may comprise steps of using update method:
S31, server is accessed according to renewal URL.
S32, the fresh information for being updated to the intended application installed on the client is obtained from server, more Fresh information includes the update sequence between the first installation kit and the first installation kit to be updated.
Wherein, the first installation kit is used to increasing or changing One function in intended application;The first different installation kits Different function in corresponding intended application.
S33, according to update sequence sequentially from all first installation kits to be updated choose the installation kit of target first and by Individual download.
It should be noted that description of the present invention to step S31~S33 may refer in previous embodiment to step S11 ~S13 description, to avoid repeating, no longer describe in detail herein.
S34, according to the store path of the installation kit of target first, inquire about the installation kit store path that prestores on the client with Mapping relations between the signing messages of installation kit, obtain target the first signing messages of the first installation kit.
For each WEB application program in client, each function in WEB application program can be directed to, according to File in installation kit corresponding to each function calculates the signing messages of the installation kit, for example, can by hash algorithm (for example, MD5 algorithms) calculation document hash values, the signing messages using hash values as the installation kit.For specific customization function be present WEB application program, calculate its signing messages also directed to the installation kit of specific customization function.And then according to the peace in client The store path and the signing messages of corresponding installation kit of dress bag pre-establish mapping relations between the two, and are stored in client On.
So as to, can be according to the store path of the installation kit of target first after download, by from client in the present embodiment The mapping relations of the signing messages of the upper store path for inquiring about the installation kit pre-established and installation kit, can obtain target first First signing messages of installation kit.
S35, calculate the second signing messages of the installation kit of target first.
Specifically, for each installation kit of target first, related algorithm meter can be used according to the file in installation kit The signing messages of each installation kit of target first is calculated, and the signing messages of gained will be calculated as the second of the installation kit of target first Signing messages.For example MD5 algorithms can be used to calculate the MD5 values of the file in each installation kit of target first, and tied calculating Second signing messages of the fruit as the corresponding installation kit of target first.
S36, judge whether the first signing messages is consistent with the second signing messages.
, can be same by the first signing messages of the installation kit of target first obtained by inquiring about mapping relations in the present embodiment The second signing messages for calculating the installation kit of target first of gained is compared, and judges the first signing messages and the second signing messages It is whether consistent.If the first signing messages is consistent with the second signing messages, step S310 is performed;Otherwise, step S37 is performed.
S37, assess the installation kit of target first and risk be present.
When calculating the second signing messages of the installation kit of target first using hash algorithm, due in calculating process, target the Each data in file in one installation kit are involved in computing, and the conversion of arbitrary data will all cause the hash values of calculating gained It is different.Therefore, when the first signing messages and inconsistent the second signing messages of the installation kit of target first, downloaded mesh is shown The file marked in the first installation kit changes, and user, which is now updated, may cause the function of specific customization capped and nothing Method uses.Therefore, in the present embodiment, when the first signing messages and inconsistent the second signing messages of the installation kit of target first, Assess the first installation kit and risk be present.
S38, obtain the risk information of the installation kit of target first.
In the present embodiment, when the assessment installation kit of target first has risk, the wind of the installation kit of target first can be obtained Dangerous information.
Specifically, when second installation kit corresponding with the installation kit of target first in intended application be present, by target first Installation kit obtains different information between the two compared with the second installation kit, and using different information as risk information.
As a kind of example, after assessing the installation kit of target first and risk being present, can by way of pop-up to Family shows " comparison " button, after user triggers the button, calculates the difference between the installation kit of target first and the second installation kit Different information, and show user using the different information as risk information.For example mesh can be realized using JavaScript code The body of an instrument marked between the first installation kit and the second installation kit compares, and is highlighted difference section, to facilitate user quick Obtain risk information.
S39, it will be opened up on the display interface of the risk information of all installation kits of target first that risk be present on the client Show to user corresponding to intended application.
, can be by risk after the risk information for obtaining all installation kits of target first that risk be present in the present embodiment Information is shown in the display interface of client in the form of a list, to show user corresponding to intended application.
Alternatively, in a kind of possible implementation of the embodiment of the present invention, by the risk information of the installation kit of target first After showing user corresponding to intended application, user can also determine whether to continue to update according to risk information.
As a kind of example, the lower section for the last item risk information that can be shown on display interface provides a pair " more Newly " and " cancellation " button, when user triggers " renewal " button, continue with the installation kit of target first and update intended application.When When user triggers " cancellation " button, renewal operation is not performed.
S310, assesses the installation kit of target first and risk is not present, and updates intended application using the installation kit of target first.
In the present embodiment, when the first signing messages is consistent with the second signing messages, assesses the installation kit of target first and do not deposit In risk, and then utilize the installation kit of target first renewal intended application.
S311, if there is renewal failure during using the installation kit of target first renewal intended application, again Intended application is updated using the installation kit of target first.
In the present embodiment, if being gone wrong during intended application is updated causes renewal to fail, it can re-use The installation kit of target first is updated to intended application.Preferably, it can pre-set and re-use the installation kit of target first more The frequency threshold value of fresh target application, when update times reach frequency threshold value again, even if intended application renewal failure, still stops The operation being only updated using the installation kit of target first to intended application.
S312, using the second signing messages of the installation kit of target first recalculated, update the peace to be prestored in client Fill the mapping relations between bag store path and the signing messages of installation kit.
In the present embodiment, after using the installation kit of target first renewal intended application, target first can be recalculated Second signing messages of installation kit, and utilize the storage road of the installation kit prestored in second signing messages renewal client Mapping relations between footpath and the signing messages of installation kit, for assessing risk during next update intended application.
Alternatively, in a kind of possible implementation of the embodiment of the present invention, the installation kit of target first is being utilized to target After being updated, the mark for being stored in the installation kit stored in local storage corresponding to browser can also be carried out Renewal, for determining to be updated first according to the mark of the installation kit updated after this renewal during next update intended application Installation kit.
The application update method of the present embodiment, by according to renewal URL access server, obtained from server for pair The fresh information that installation intended application on the client is updated, fresh information include the first installation kit to be updated and Update sequence between first installation kit, target the is sequentially chosen from all first installation kits to be updated according to update sequence One installation kit is simultaneously downloaded one by one, according to the store path of the installation kit of target first, is inquired about the installation kit to prestore on the client and is deposited The mapping relations between path and the signing messages of installation kit are stored up, obtain target the first signing messages of the first installation kit, calculate mesh The second signing messages of the first installation kit is marked, target first is assessed when the first signing messages and inconsistent the second signing messages and is pacified There is risk in dress bag, obtain and show target to answer on the risk information and display interface on the client of the installation kit of target first With corresponding user;, should using the installation kit of target first more fresh target when the first signing messages is consistent with the second signing messages With, and the installation kit of target first renewal intended application is re-used when updating failure, after being updated successfully, utilize what is recalculated Second signing messages of the installation kit of target first, update the A.L.S. of the installation kit store path to be prestored in client and installation kit Mapping relations between breath.Thereby, it is possible to risk information existing for user's displaying installation kit, avoid the occurrence of user because have updated The problem of intended application causes the function of specific customization not use, in the feelings for the specific customization function normal use for ensureing user New function can be experienced under condition, improves Consumer's Experience.
In order to realize above-described embodiment, the present invention also proposes that one kind applies updating device.Fig. 4 carries for one embodiment of the invention The structural representation using updating device gone out.
As shown in figure 4, this includes using updating device 40:Access modules 410, acquisition module 420, download module 430, wind Dangerous evaluation module 440, and update module 450.Wherein,
Access modules 410, for accessing server according to renewal URL.
Acquisition module 420, for being obtained from server for being updated to the intended application installed on the client Fresh information.
Specifically, in a kind of possible implementation of the embodiment of the present invention, acquisition module 420 is used to connect from server Packet receiving includes the index file of all installation kits for being used to update, and index file is included between mark and the installation kit of installation kit Order;The mark of first installation kit of final updating when obtaining the renewal of intended application last time;According to the first of final updating the peace The mark of bag is filled compared with the mark of installation kit in index file;Determine that the mark of the first installation kit of final updating is corresponding Installation kit indexed file in position;Since the next installation kit in position, fresh information is obtained based on index file.
Wherein, fresh information includes the update sequence between the first installation kit and the first installation kit to be updated;First Installation kit is used to increasing or changing One function in intended application;The first different installation kits corresponds to different in intended application Function.
Download module 430, for sequentially choosing target the from all first installation kits to be updated according to update sequence One installation kit is simultaneously downloaded one by one.
Risk evaluation module 440, for carrying out risk assessment to the installation kit of target first after download successively.
Update module 450, for when risk is not present in the installation kit of target first, updating mesh using the installation kit of target first Mark application.
Alternatively, in a kind of possible implementation of the embodiment of the present invention, update module 450 is additionally operable to utilizing target When there is renewal failure during the first installation kit renewal intended application, then the installation kit of target first more fresh target is re-used Using.
Alternatively, in a kind of possible implementation of the embodiment of the present invention, update module 450 is additionally operable in intended application After being updated successfully, using the second signing messages of the installation kit of target first recalculated, the installation to be prestored in client is updated Mapping relations between bag store path and the signing messages of installation kit.
Alternatively, in a kind of possible implementation of the embodiment of the present invention, as shown in figure 5, in embodiment as shown in Figure 4 On the basis of, risk evaluation module 440 can also include:
Acquiring unit 441, for the store path according to the installation kit of target first, inquire about the installation to prestore on the client Mapping relations between bag store path and the signing messages of installation kit, obtain target the first signing messages of the first installation kit.
Computing unit 442, for calculating the second signing messages of the installation kit of target first.
Assessment unit 443, for by the first signing messages compared with the second signing messages, if the first signing messages It is consistent with the second signing messages, then assess the installation kit of target first and risk is not present;If the first signing messages and the second signature Information is inconsistent, then assesses the installation kit of target first and risk be present.
This can also include using updating device 40:
Display module 460, for when the installation kit of target first has risk, obtaining the risk letter of the installation kit of target first Breath, and target will be showed on the display interface of the risk information of all installation kits of target first that risk be present on the client Using corresponding user.
Specifically, when risk evaluation module 440, which evaluates the installation kit of target first, risk be present, display module 460 exists When second installation kit corresponding with the installation kit of target first in intended application be present, by the installation kit of target first and the second installation kit It is compared, obtains different information between the two, and then using display circle of the different information as risk information on the client User corresponding to intended application is showed on face.
It should be noted that the foregoing explanation to application update method embodiment is also applied for the application of the present embodiment Updating device, its realization principle is similar, and here is omitted.
The present embodiment applies updating device, by accessing server according to renewal URL, is obtained from server for peace The fresh information that dress intended application on the client is updated, fresh information include the first installation kit to be updated and the Update sequence between one installation kit, target first is sequentially chosen from all first installation kits to be updated according to update sequence Installation kit is simultaneously downloaded one by one, carries out risk assessment to the installation kit of target first after download successively, and in the installation kit of target first The installation kit of target first renewal intended application is utilized during in the absence of risk.Thus, each function setting to intended application is passed through Single installation kit, user can be updated to application without waiting for the issue that large and complete renewal is wrapped, can reduce each The data volume of installation kit, lift the response speed to user's request.By carrying out risk assessment, Neng Goushi to the installation kit of download Now to the risk profile of renewal bag, avoid user from updating application in the case where not knowing about risk, lift Consumer's Experience.
In order to realize above-described embodiment, the present invention also proposes that another kind applies updating device.Fig. 6 is one embodiment of the invention The structural representation of the another kind application updating device of proposition.
As shown in fig. 6, this includes using updating device 60:Processor 601 and memory 602.Wherein, processor 601 is logical Cross and read in memory 602 executable program code that stores to run program corresponding with executable program code, for Realize application update method as in the foregoing embodiment.
In order to realize above-described embodiment, the present invention also proposes a kind of computer program product, when in computer program product Instruction by computing device when, perform application update method as in the foregoing embodiment.
In order to realize above-described embodiment, the present invention also proposes a kind of non-transitorycomputer readable storage medium, deposited thereon Computer program is contained, application update method as in the foregoing embodiment is realized when the computer program is executed by processor.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description Point is contained at least one embodiment or example of the present invention.In this manual, to the schematic representation of above-mentioned term not Identical embodiment or example must be directed to.Moreover, specific features, structure, material or the feature of description can be with office Combined in an appropriate manner in one or more embodiments or example.In addition, in the case of not conflicting, the skill of this area Art personnel can be tied the different embodiments or example and the feature of different embodiments or example described in this specification Close and combine.
In addition, term " first ", " second " are only used for describing purpose, and it is not intended that instruction or hint relative importance Or the implicit quantity for indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the invention, " multiple " are meant that at least two, such as two, three It is individual etc., unless otherwise specifically defined.
Any process or method described otherwise above description in flow chart or herein is construed as, and represents to include Module, fragment or the portion of the code of the executable instruction of one or more the step of being used to realize custom logic function or process Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system including the system of processor or other can be held from instruction The system of row system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring Connecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium, which can even is that, to print the paper of described program thereon or other are suitable Medium, because can then enter edlin, interpretation or if necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned In embodiment, software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage Or firmware is realized.Such as, if realized with hardware with another embodiment, following skill well known in the art can be used Any one of art or their combination are realized:With the logic gates for realizing logic function to data-signal from Logic circuit is dissipated, the application specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile Journey gate array (FPGA) etc..
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method carries Suddenly it is that by program the hardware of correlation can be instructed to complete, described program can be stored in a kind of computer-readable storage medium In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, can also That unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould Block can both be realized in the form of hardware, can also be realized in the form of software function module.The integrated module is such as Fruit is realized in the form of software function module and as independent production marketing or in use, can also be stored in a computer In read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although have been shown and retouch above Embodiments of the invention are stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the present invention System, one of ordinary skill in the art can be changed to above-described embodiment, change, replace and become within the scope of the invention Type.

Claims (11)

1. one kind applies update method, it is characterised in that including:
Server is accessed according to renewal URL;
The fresh information for being updated to the intended application installed on the client is obtained from the server;Wherein, The fresh information includes the update sequence between the first installation kit to be updated and first installation kit;First peace Dress bag is used to increasing or changing One function in the intended application;The first different installation kits correspond to the intended application Middle different function;
According to the update sequence sequentially from all first installation kits to be updated choose the installation kit of target first and one by one under Carry;
Risk assessment is carried out to the installation kit of the target first after download successively;
If risk is not present in the installation kit of target first, updating the target using the installation kit of target first should With.
2. according to claim 1 apply update method, it is characterised in that it is described obtained from the server for pair The fresh information that the intended application of installation on the client is updated, including:
Being received from the server includes the index file of all installation kits for being used to update;The index file includes institute State installation kit mark and the installation kit between order;
The mark of first installation kit of final updating when obtaining the intended application last time renewal;
Compared according to the mark of the first installation kit of the final updating and the mark of installation kit described in the index file Compared with;
Determine position of the installation kit in the index file corresponding to the mark of the first installation kit of the final updating;
Since the next installation kit in the position, the fresh information is obtained based on the index file.
3. according to claim 1 apply update method, it is characterised in that described successively to the target after download One installation kit carries out risk assessment, including:
According to the store path of the installation kit of target first, inquiry be pre-stored in installation kit store path in the client with Mapping relations between the signing messages of installation kit, obtain the first signing messages of first installation kit of target;
Calculate the second signing messages of the installation kit of target first;
If first signing messages is consistent with second signing messages, assesses the installation kit of target first and be not present Risk.
4. according to claim 3 apply update method, it is characterised in that also includes:
If first signing messages and second signing messages are inconsistent, assess the installation kit of target first and exist Risk;
Obtain the risk information of the installation kit of target first;
It will be showed on the display interface of the risk information of all installation kits of target first that risk be present on the client described User corresponding to intended application.
5. according to claim 4 apply update method, it is characterised in that the acquisition installation kit of target first Risk information, including:
When second installation kit corresponding with the installation kit of target first in the intended application be present, by the target first Installation kit obtains different information between the two compared with second installation kit;
Using the different information as the risk information.
6. according to the application update method described in claim any one of 1-5, it is characterised in that also include:
It is again sharp if occurring renewal failure during the intended application is updated using the installation kit of target first The intended application is updated with the installation kit of target first.
7. according to the application update method described in claim any one of 1-5, it is characterised in that described to utilize the target first After installation kit updates the intended application, in addition to:
Using the second signing messages of the installation kit of the target first recalculated, the installation to be prestored in the client is updated Mapping relations between bag store path and the signing messages of installation kit.
8. one kind applies updating device, it is characterised in that including:
Access modules, for accessing server according to renewal URL;
Acquisition module, for being obtained from the server for being updated more to the intended application installed on the client Fresh information;Wherein, the renewal that the fresh information is included between the first installation kit to be updated and first installation kit is suitable Sequence;First installation kit is used to increasing or changing One function in the intended application;The first different installation kits pair Answer function different in the intended application;
Download module, pacify for sequentially choosing target first from all first installation kits to be updated according to the update sequence Dress is wrapped and downloaded one by one;
Risk evaluation module, for carrying out risk assessment to the installation kit of the target first after download successively;
Update module, for when risk is not present in the installation kit of target first, being updated using the installation kit of target first The intended application.
9. one kind applies updating device, it is characterised in that including processor and memory;
Wherein, the processor can perform by reading the executable program code stored in the memory to run with described Program corresponding to program code, for realizing the application update method as described in any in claim 1-7.
10. a kind of computer program product, when the instruction in the computer program product is by computing device, perform as weighed Profit requires the application update method any one of 1-7.
11. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, it is characterised in that the calculating The application update method as any one of claim 1-7 is realized when machine program is executed by processor.
CN201710576223.6A 2017-07-14 2017-07-14 Using update method and device Withdrawn CN107402786A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710576223.6A CN107402786A (en) 2017-07-14 2017-07-14 Using update method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710576223.6A CN107402786A (en) 2017-07-14 2017-07-14 Using update method and device

Publications (1)

Publication Number Publication Date
CN107402786A true CN107402786A (en) 2017-11-28

Family

ID=60400797

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710576223.6A Withdrawn CN107402786A (en) 2017-07-14 2017-07-14 Using update method and device

Country Status (1)

Country Link
CN (1) CN107402786A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108021474A (en) * 2017-11-30 2018-05-11 郑州云海信息技术有限公司 It is a kind of based on Weblogic using one-touch rollback and the method for incremental update
CN108665371A (en) * 2018-03-30 2018-10-16 北京有保无险科技有限公司 A kind of internet insurance system and method based on user
CN111199295A (en) * 2018-11-16 2020-05-26 北京奇虎科技有限公司 Product reservation method and device
CN112925539A (en) * 2021-02-19 2021-06-08 天津车之家数据信息技术有限公司 Application updating method, computing device and storage medium
CN113127025A (en) * 2019-12-31 2021-07-16 航天信息股份有限公司 Accounting contract updating method, device, equipment and medium
CN115543391A (en) * 2022-11-29 2022-12-30 深圳市明源云科技有限公司 Application platform upgrading method and device, electronic equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279373A (en) * 2013-05-31 2013-09-04 广州市动景计算机科技有限公司 Method and device for updating browser shell functions
CN104020995A (en) * 2014-06-06 2014-09-03 厦门美图之家科技有限公司 Application system supporting independently conducting autonomous downloading and updating on non basic functions
CN104965721A (en) * 2014-07-10 2015-10-07 腾讯科技(深圳)有限公司 Method and apparatus for updating an application
CN104991793A (en) * 2015-06-15 2015-10-21 上海海漾软件技术有限公司 Method, device and system used for application program subpackage
CN106874752A (en) * 2015-12-11 2017-06-20 北京金山安全软件有限公司 Information display method and device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279373A (en) * 2013-05-31 2013-09-04 广州市动景计算机科技有限公司 Method and device for updating browser shell functions
CN104020995A (en) * 2014-06-06 2014-09-03 厦门美图之家科技有限公司 Application system supporting independently conducting autonomous downloading and updating on non basic functions
CN104965721A (en) * 2014-07-10 2015-10-07 腾讯科技(深圳)有限公司 Method and apparatus for updating an application
CN104991793A (en) * 2015-06-15 2015-10-21 上海海漾软件技术有限公司 Method, device and system used for application program subpackage
CN106874752A (en) * 2015-12-11 2017-06-20 北京金山安全软件有限公司 Information display method and device and electronic equipment

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108021474A (en) * 2017-11-30 2018-05-11 郑州云海信息技术有限公司 It is a kind of based on Weblogic using one-touch rollback and the method for incremental update
CN108665371A (en) * 2018-03-30 2018-10-16 北京有保无险科技有限公司 A kind of internet insurance system and method based on user
CN111199295A (en) * 2018-11-16 2020-05-26 北京奇虎科技有限公司 Product reservation method and device
CN111199295B (en) * 2018-11-16 2024-03-01 北京奇虎科技有限公司 Product reservation method and device
CN113127025A (en) * 2019-12-31 2021-07-16 航天信息股份有限公司 Accounting contract updating method, device, equipment and medium
CN112925539A (en) * 2021-02-19 2021-06-08 天津车之家数据信息技术有限公司 Application updating method, computing device and storage medium
CN115543391A (en) * 2022-11-29 2022-12-30 深圳市明源云科技有限公司 Application platform upgrading method and device, electronic equipment and readable storage medium
CN115543391B (en) * 2022-11-29 2023-04-04 深圳市明源云科技有限公司 Application platform upgrading method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN107402786A (en) Using update method and device
US9367305B1 (en) Automatic container definition
US9582268B2 (en) Automatic communications graphing for a source application
US10282171B2 (en) Application analyzer for cloud computing
CN106919410A (en) The extended method and device of the layout templates of component
CN109086071A (en) A kind of method and server of management software version information
CN106528980A (en) Water chilling unit model selecting method and device
CN107766050A (en) The dispositions method and device of a kind of heterogeneous applications
CN102693127B (en) Data-driven schema for describing and executing management tasks in a graphical user interface
CN104239206B (en) Webpage method of testing and device
CN110990053A (en) Method for creating and using machine learning scheme template and device
CN104267934B (en) Information display method and device and mobile terminal
CN107220066B (en) Method and device for releasing application software in application store
CN107967204A (en) Line pushes method, system and the terminal device surveyed
CN106657192A (en) Method used for presenting service calling information and equipment thereof
CN107797819A (en) Delta package generation method, computer-readable recording medium and server
CN109460546A (en) List generation method, device and electronic equipment
CN108269060A (en) Advertising contract system
CN107222505A (en) A kind of method and device for being adapted to external protocol
CN107544903A (en) Page specification detection method, device and computer equipment
CN107621963A (en) A kind of software deployment method, software deployment system and electronic equipment
CN110515631A (en) Using the generation method of installation data packet, server and computer storage medium
Mainkar Expert Android Programming: Master skills to build enterprise grade Android applications
CN109885290B (en) Application program service description information generation and release method, device and storage medium
CN104166541A (en) Method and device for updating measured control library

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
CB02 Change of applicant information

Address after: Room 1901, building 1, No. 1782 Jiangling Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: HANGZHOU LVWAN NETWORK TECHNOLOGY Co.,Ltd.

Address before: 2, No. 2630, building 2, superior Science Park, No. 310026 South Ring Road, Hangzhou, Binjiang District, Zhejiang, China

Applicant before: HANGZHOU LVWAN NETWORK TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
WW01 Invention patent application withdrawn after publication

Application publication date: 20171128

WW01 Invention patent application withdrawn after publication