CN109358873A - A kind of application program update method, storage medium and terminal device - Google Patents

A kind of application program update method, storage medium and terminal device Download PDF

Info

Publication number
CN109358873A
CN109358873A CN201811120137.5A CN201811120137A CN109358873A CN 109358873 A CN109358873 A CN 109358873A CN 201811120137 A CN201811120137 A CN 201811120137A CN 109358873 A CN109358873 A CN 109358873A
Authority
CN
China
Prior art keywords
online
application program
packet
resource packet
newest resource
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
CN201811120137.5A
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201811120137.5A priority Critical patent/CN109358873A/en
Publication of CN109358873A publication Critical patent/CN109358873A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

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)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of application program update method, storage medium and terminal devices, application program update method is when user needs more new application, according to the offline versions number in the local profile of application program, judge the offline resources packet in local profile whether be application program newest resource packet, when offline resources packet is newest resource packet, the offline update of application program is then directly carried out according to offline resources packet, downloading without carrying out resource packet again greatly improves the update efficiency of application program and is updated to power;And offline resources packet is not when being newest resource packet, then obtain newest resource packet, and when newest resource packet obtains failure, it is automatic to remove existing built-in cache resources in local profile, then newest resource packet is reacquired automatically, with self-healing failure cause, improves the success rate that newest resource packet obtains, solve the problems, such as existing application update efficiency be updated to that power is low, promote the more new experience of user.

Description

A kind of application program update method, storage medium and terminal device
Technical field
The present invention relates to fields of communication technology more particularly to a kind of application program update method, storage medium and terminal to set It is standby.
Background technique
With the fast development of computer technology, the type of application program is more and more, for meet user use demand, The use body-sensing for enhancing user needs constantly to carry out perfect in shape and function and/or the leak repairing of application program.Application program at present Perfect in shape and function and/or leak repairing are mainly developer after the more new resources packet for completing application program, will more new resources packet hair For cloth to corresponding server, when user's more new application, then carries out application program by downloading more new resources packet from server Update, that is to say, that user carry out application program renewal process in, need user first downloaded more from server manually New resources packet just can be carried out the update of application program after having downloaded, so that the update efficiency of existing application is lower, and net When network is bad, the power that is updated to of application program can be also greatly reduced, and only return to user when updating failure Update failure as a result, and can not self-healing failure cause, to further reduced the update efficiency and more of application program New success rate.
To sum up, how to improve application program update efficiency and be updated to power as those skilled in the art it is urgently to be resolved The problem of.
Summary of the invention
The embodiment of the invention provides a kind of application program update method, storage medium and terminal devices, can be improved and answer With the update efficiency of program and it is updated to power, existing application program update efficiency is low with power is updated to ask to solve Topic, promotes the more new experience of user.
The embodiment of the present invention in a first aspect, providing a kind of application program update method, comprising:
If receiving the update request of application program, the online latest edition number and the application of the application program are obtained The local profile of program preserves the offline resources packet of the application program and described offline in the local profile The corresponding offline versions number of resource packet;
Judge whether the offline versions number are identical as the online latest edition number of the application program;
If the offline versions number are identical as the online latest edition number, according to offline resources packet update Application program;
If the offline versions number and the online latest edition number be not identical, the online latest edition number pair is obtained The online newest resource packet answered;
Judge whether the online newest resource packet obtains success;
When the online newest resource packet obtains failure, existing built-in caching money in the local profile is removed Source, and reacquire the online newest resource packet;
It is described after the newest resource packet of line successfully obtaining, the application program is updated according to the online newest resource packet With the local profile.
The second aspect of the embodiment of the present invention, provides a kind of computer readable storage medium, described computer-readable to deposit Storage media is stored with computer-readable instruction, and such as aforementioned first aspect is realized when the computer-readable instruction is executed by processor The step of application program update method.
The third aspect of the embodiment of the present invention, provides a kind of terminal device, including memory, processor and is stored in In the memory and the computer-readable instruction that can run on the processor, the processor executes the computer can Following steps are realized when reading instruction:
If receiving the update request of application program, the online latest edition number and the application of the application program are obtained The local profile of program preserves the offline resources packet of the application program and described offline in the local profile The corresponding offline versions number of resource packet;
Judge whether the offline versions number are identical as the online latest edition number of the application program;
If the offline versions number are identical as the online latest edition number, according to offline resources packet update Application program;
If the offline versions number and the online latest edition number be not identical, the online latest edition number pair is obtained The online newest resource packet answered;
Judge whether the online newest resource packet obtains success;
When the online newest resource packet obtains failure, existing built-in caching money in the local profile is removed Source, and reacquire the online newest resource packet;
It is described after the newest resource packet of line successfully obtaining, the application program is updated according to the online newest resource packet With the local profile.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
In the embodiment of the present invention, when user needs more new application, i.e., according to the local profile of application program In offline versions number, come judge the offline resources packet in local profile whether be application program newest resource packet, when When offline resources packet in local profile is newest resource packet, then directly according to the offline resources packet in local profile The offline update of application program is carried out, without carrying out the downloading of resource packet again, to greatly improve application program Update efficiency and be updated to power;And when the offline resources packet in local profile is not newest resource packet, then it obtains Newest resource packet, and when newest resource packet obtains failure, it is automatic to remove existing built-in cache resources in local profile, Then automatic again to reacquire, with self-healing failure cause, the acquisition success rate of newest resource packet is improved, it is existing to solve The application program update efficiency problem low with power is updated to, promotes the more new experience of user.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is a kind of one embodiment flow chart of application program update method in the embodiment of the present invention;
Fig. 2 is that application program update method obtains online newest resource packet under an application scenarios in the embodiment of the present invention Flow diagram;
Fig. 3 is that application program update method obtains online newest resource under another application scenarios in the embodiment of the present invention The flow diagram of packet;
Fig. 4 is a kind of one embodiment structure chart of application program update device in the embodiment of the present invention;
Fig. 5 is a kind of schematic diagram of terminal device provided in an embodiment of the present invention.
Specific embodiment
The embodiment of the invention provides a kind of application program update method, storage medium and terminal devices, answer for improving With the update efficiency of program and it is updated to power, existing application program update efficiency is low with power is updated to ask to solve Topic, improves the more new experience of user.
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that disclosed below Embodiment be only a part of the embodiment of the present invention, and not all embodiment.Based on the embodiments of the present invention, this field Those of ordinary skill's all other embodiment obtained without making creative work, belongs to protection of the present invention Range.
Referring to Fig. 1, the embodiment of the invention provides a kind of application program update method, the application program update side Method, comprising:
If step S101, receiving the update request of application program, the online latest edition number of the application program is obtained With the local profile of the application program, the offline resources packet of the application program is preserved in the local profile Offline versions number corresponding with the offline resources packet.
It preferably, can also include: step before the update request for receiving application program in the embodiment of the present invention A, it whether there is the more new resources packet of the application program in real-time detection server corresponding with the application program;Step b, If there are the more new resources packets of the application program in the server, the more new resources packet is downloaded to the application program Local profile in, to update offline resources packet and the offline versions number in the local profile.
It is understood that application terminal can create in local when user is after application program is installed in application terminal Local profile corresponding with the application program, for store resource packet that the application program is being currently used and Relevant cache resources.In addition, application terminal can also real-time detection and the application program pair in the application program operational process The more new resources packet that whether there is the application program in the server answered, if it exists if the more new resources packet of the application program, Then the more new resources packet is downloaded in local profile automatically, using the offline resources packet as the application program, while One table is locally configured in creation in local profile, this be locally configured the offline versions number that the offline resources packet is stored in table and The current version number of application program resource packet currently in use, such as application program resource packet currently in use Current version number is 1.0, and when the offline versions number of the offline resources packet of the accessed application program are 1.2, then it is local Being locally configured in table for configuration file can be stored with " current version number: 1.0, offline versions number: 1.2 " information.
Here, being higher than the application program currently just when the offline versions number stored in table are locally configured in application terminal discovery In the current version used, application terminal can then export automatically update prompting message or after the preset time of setting it is defeated Prompting message is updated out, to remind user to carry out the update of application program, if user selects if updating, updates this using journey The resource packet that the application program is being currently used is updated to the offline resources packet, and working as in table will be locally configured by sequence Preceding version number is updated to the offline versions number.
Further, because the renewal speed of application program is very fast, and there are the regular hours to prolong for the acquisition of offline resources packet Late, so that the offline resources packet in local profile may not be newest resource packet possessed by the application program, because And when user selects to update the application program, application terminal can also by access corresponding with application program server come Obtain the online latest edition number of the application program, i.e., the newest resource packet institute of the application program stored in acquisition server Corresponding version number.
Step S102, judge whether the offline versions number are identical as the online latest edition number of the application program.
It is understood that when application terminal get the application program after line latest edition number, that is, can determine whether this Whether the offline versions number stored in the local profile of application program are identical as the online latest edition number, determined with this The offline resources packet stored in local profile whether be the application program newest resource packet.
If step S103, the described offline versions number are identical as the online latest edition number, according to the offline resources Packet updates the application program.
Here, when the offline versions number of offline resources packet are identical as the online latest edition number in local profile, Then show before user requests to update the application program, the application program has successfully been downloaded in application terminal from server Latest edition, i.e., the offline resources packet stored in local profile corresponding with the application program is the application program institute The newest resource packet having, at this point, application terminal can update the application according to the offline resources packet in local profile Program, and the local profile of the application program is updated, such as the table that is locally configured in local profile is updated, with The current version number stored in table will be locally configured, such as 1.0, the offline versions number are updated to, are such as updated to 1.2, with direct The update of the application program is carried out by offline resources packet, to greatly improve the update efficiency of application program and be updated to Power.
Further, described that the application program is updated according to the offline resources packet, it may include: step c, obtain institute The current version number for the resource packet that application program is being currently used is stated, and judges the current version number and the offline versions It is number whether identical;If step d, the described current version number and the offline versions number are not identical, according to the offline resources packet Update the application program.
It is understood that when determining that the offline resources packet stored in local profile is the newest of the application program After resource packet, then can further it judge before user this time requests to update, whether application terminal is according to the offline resources packet Update was carried out to the application program, i.e., obtains the current version number for the resource packet that the application program is being currently used first, Then judge whether the current version number is identical as the offline versions number, if the current version number is identical with the offline versions number Words, then show that the application program carried out update according to the offline resources packet, that is to say, that the application program currently makes Version in is latest edition possessed by the application program, without being updated again to it, can directly be refused at this time This update request of user, and can export the prompting message that the application program has been latest edition to user;If the current version This number and the different words of the offline versions number then show that the resource packet that the application program is being currently used is not this using journey Newest resource packet possessed by sequence then can update the application program according to the offline resources packet, i.e., currently just by the application program The offline resources packet, and the current version for the resource packet that the application program is being currently used are updated in the resource packet used Number it is updated to offline versions number corresponding to the offline resources packet.
If step S104, the described offline versions number and the online latest edition number be not identical, obtain it is described it is online most The corresponding online newest resource packet of new version number.
It is understood that in the embodiment of the present invention, if in local profile the offline versions number of offline resources packet with The different words of online latest edition number, if the offline versions number of offline resources packet are 1.3, and institute in accessed server The online latest edition number for the application program having is 1.4, then shows before user requests to update the application program, application Terminal thus, is answered at this time also not from the online newest resource packet for downloading the application program in server into local profile Online newest resource corresponding to the online latest edition number of the application program can be directly obtained from server automatically with terminal Packet, such as from downloaded in server this online newest resource packet into local profile.
Step S105, judge whether the online newest resource packet obtains success.
It is understood that in the embodiment of the present invention, in the downloading behaviour for completing the online newest resource packet of the application program After work, application terminal can also carry out the detection of local profile, to judge whether successfully to download the online newest resource packet, Such as whether getting, whether the online newest resource packet, accessed online newest resource packet are complete, damage etc..
Step S106, it when the online newest resource packet obtains failure, removes existing in the local profile Built-in cache resources, and reacquire the online newest resource packet.
Here, this such as has not been obtained online most if application terminal judges that the online newest resource packet obtains failure New resources packet or accessed online newest resource be surrounded by damage or it is imperfect when, application terminal can then remove this automatically Existing built-in cache resources in ground configuration file, and go to obtain the online newest resource packet again automatically.Here, removing local Existing built-in cache resources, which can be, in configuration file removes existing all cache resources in local profile, can also be with It is to remove existing part cache resources in local profile, such as removes number of the part on the use of the application program without influence According to cache resources etc., and existing cache resources then may include the online newest resource packet failed download mistake in local profile Generated cache resources in journey.
Step S107, described after the newest resource packet of line in successfully acquisition, institute is updated according to the online newest resource packet State application program and the local profile.
It is understood that when application terminal determine successfully get the application program after line newest resource packet, then The application program can be updated automatically according to the online newest resource packet, and update the local profile of the application program, such as will Offline resources packet in local profile is updated to the online newest resource packet, while by the offline versions number of offline resources packet It is updated to online latest edition number corresponding to the online newest resource packet, while also to being locally configured in local profile Table is updated, and the current version number stored in table will be locally configured and offline versions number are updated to the online latest edition This number, so that self-healing failure cause, improves the acquisition success rate of newest resource packet, to solve existing application program update The efficiency problem low with power is updated to, improves the more new experience of user.
Further, as shown in Fig. 2, step S106, when the online newest resource packet obtains failure, remove described Existing built-in cache resources in ground configuration file, and the online newest resource packet is reacquired, may include:
Step S201, when the online newest resource packet obtains failure, the statistics online newest resource packet, which obtains, to be lost The frequency of failure lost;
Step S202, judge whether the frequency of failure reaches preset times threshold value;
Step S203, it when the frequency of failure reaches preset times threshold value, removes in the local profile and has Built-in cache resources, and reacquire the online newest resource packet.
For above-mentioned steps S201 to step S203, it is to be understood that primary in application terminal in the embodiment of the present invention When obtaining the online newest resource packet failure, existing built-in cache resources in local profile are not removed directly, but Automatically the acquisition of the online newest resource packet is carried out again, and is worked as the online newest resource packet and continuously acquired failure, and is continuous When the frequency of failure of acquisition failure has reached preset times threshold value, then it can remove automatically existing built-in slow in local profile Resource is deposited, removes what existing built-in cache resources in local profile need to reach here, being previously provided in application terminal Preset times threshold value.Thus, in the acquisition process that application terminal carries out the online newest resource packet, application terminal records in real time The online newest resource packet obtains the frequency of failure of failure, i.e., during application terminal obtains the online newest resource packet, The every acquisition failure in application terminal is primary to increase a several unit for the frequency of failure automatically, as primary in increased, when what is continuously failed When the frequency of failure reaches preset times threshold value, then existing built-in cache resources in local profile can be removed automatically, are laid equal stress on Newly obtain the online newest resource packet.
Such as in a concrete application, it is assumed that the preset times threshold value is 3 times, and application terminal is obtaining the online newest money During source is wrapped, obtain failure for the first time and for the second time, but third time obtains successfully, then it can be without being locally configured Have the removing of built-in cache resources in file, so that it is guaranteed that in application program built-in cache resources it is complete, to avoid loss Subscriber data;And obtained when failing when for the first time, for the second time with third time, then it can remove in local profile and have automatically Built-in cache resources, and the online newest resource packet is reacquired, to guarantee to get the online newest of the application program Resource packet, improves the acquisition success rate of online newest resource packet, so that guarantee the application program is updated to power.
Here, preset times threshold value can according to historical data carry out big data analysis obtain, certainly can also by user according to Concrete condition carries out sets itself.
Preferably, described when the online newest resource packet obtains failure, it removes in the local profile and has Built-in cache resources, and reacquire the online newest resource packet, can also include: step e, when the online newest money When source packet obtains failure, export prompting message, the prompting message for prompt whether to remove caching and reacquire it is described The newest resource packet of line;Step f, when receiving the confirmation message for responding the prompting message, the local profile is removed In existing built-in cache resources, and reacquire the online newest resource packet.
For above-mentioned steps e and step f, it is to be understood that in the embodiment of the present invention, when application terminal obtains this online Newest resource packet fail when, the exportable prompting message in application terminal, with prompt the user whether remove cache and reacquire this The newest resource packet of line if user, which determines to remove, caches and reacquire the online newest resource packet, and has been made accordingly really When provisioning response, application terminal can then remove existing built-in cache resources in local profile, and reacquire this online most New resources packet, so that the reason of clear online newest resource packet of user obtains failure, and it is online voluntarily to guide user to carry out this The acquisition of newest resource packet, to promote the update body-sensing of user.
Optionally, if as shown in figure 3, step S104, the offline versions number and the online latest edition number be not identical, The corresponding online newest resource packet of the online latest edition number is then obtained, may include:
If step S301, the described offline versions number and the online latest edition number be not identical, obtain the local and match Set the committed memory of the free memory and the corresponding online newest resource packet of the online latest edition number in file;
Step S302, judge whether the free memory is more than or equal to the committed memory;
Step S303, when the free memory is more than or equal to the committed memory, the online newest money is obtained Source packet;
Step S304, it when the free memory is less than the committed memory, removes in the local profile and has Built-in cache resources, and reacquire the online newest resource packet.
For above-mentioned steps S301 to step S304, it is to be understood that in the embodiment of the present invention, when application terminal determines When the offline versions number of the application program and not identical online latest edition number possessed in corresponding server, application terminal The committed memory of online newest resource packet corresponding to the online latest edition number possessed by can voluntarily obtaining in server, together When obtain free memory in the local profile of the application program, i.e., can be used for receiving new resources in local profile Free memory, and further judge the big of free memory in the committed memory and local profile of the online newest resource packet Small relationship, if if free memory in local profile is more than or equal to the committed memory of the online newest resource packet, Then show that local profile can also accommodate the online newest resource packet at this time, thus, it can directly carry out this online most at this time The acquisition of new resources packet;If if the free memory in local profile is less than the committed memory of the online newest resource packet, The online newest resource packet can not be accommodated by then showing local profile, if directly acquiring the online newest resource packet at this time Words, it will the acquisition failure for directly resulting in the online newest resource packet, to significantly reduce obtaining for online newest resource packet Success rate is taken, thus, application terminal can first carry out the removing of existing built-in cache resources in local profile automatically at this time, After ensuring that there is enough memory sources in local profile, then the online newest resource packet is reacquired, thus greatly Ground improves the acquisition success rate of online newest resource packet, and then improves the update efficiency of application program update.
It, can be according to the local profile of application program when user needs more new application in the embodiment of the present invention In offline versions number, come judge the offline resources packet in local profile whether be application program newest resource packet, when It, then can be directly according to the offline resources in local profile when offline resources packet in local profile is newest resource packet It wraps to carry out the offline update of application program, without carrying out the downloading of resource packet again, to greatly improve using journey The update efficiency of sequence and it is updated to power;And when the offline resources packet in local profile is not newest resource packet, then may be used Newest resource packet is obtained, and when newest resource packet obtains failure, it is automatic to remove existing memory cache in local profile Resource, it is then automatic again to reacquire, with self-healing failure cause, improves newest resource packet and obtain success rate, it is existing to solve Some application program update efficiency problem low with power is updated to, improves the more new experience of user.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
A kind of application program update method is essentially described above, a kind of application program update device will be carried out below detailed Thin description.
As shown in figure 4, the embodiment of the invention provides a kind of application program update device, the application program update dress It sets, comprising:
It updates request receiving module 401 and obtains the application program if the update for receiving application program is requested The local profile of online latest edition number and the application program is preserved in the local profile described using journey The offline resources packet of sequence and the corresponding offline versions number of the offline resources packet;
Version number's judgment module 402, for judging online latest edition of the offline versions number with the application program It is number whether identical;
First offline update module 403, if identical as the online latest edition number for the offline versions number, root The application program is updated according to the offline resources packet;
Resource packet obtains module 404, if not identical for the offline versions number and the online latest edition number, obtains Take the corresponding online newest resource packet of the online latest edition number;
Resource packet judgment module 405, for judging whether the online newest resource packet obtains success;
Caching removes module 406, for text to be locally configured described in removing when the online newest resource packet obtains failure Existing built-in cache resources in part, and reacquire the online newest resource packet;
Second offline update module 407, for successfully obtain it is described after the newest resource packet of line, according to it is described it is online most New resources packet updates the application program and the local profile.
Further, the caching removes module 406, comprising:
Frequency of failure statistic unit, for counting described online newest when the online newest resource packet obtains failure Resource packet obtains the frequency of failure of failure;
First caching clearing cell, for removing the local and matching when the frequency of failure reaches preset times threshold value Existing built-in cache resources in file are set, and reacquire the online newest resource packet.
Preferably, the caching removes module 406, further includes:
Prompting message output unit, it is described for exporting prompting message when the online newest resource packet obtains failure Prompting message is for prompting whether to remove caching and reacquiring the online newest resource packet;
Second caching clearing cell, for removing described when receiving the confirmation message for responding the prompting message Existing built-in cache resources in ground configuration file, and reacquire the online newest resource packet.
Optionally, the resource packet obtains module 404, comprising:
Memory acquiring unit obtains institute if not identical for the offline versions number and the online latest edition number State the committed memory of the free memory and the corresponding online newest resource packet of the online latest edition number in local profile;
First resource packet acquiring unit, for obtaining when the free memory is more than or equal to the committed memory The online newest resource packet;
Secondary resource packet acquiring unit, for removing the local when the free memory is less than the committed memory Existing built-in cache resources in configuration file, and reacquire the online newest resource packet.
Further, the described first offline update module 403, comprising:
Current version judging unit, for obtaining the current version for the resource packet that the application program is being currently used Number, and judge whether the current version number is identical as the offline versions number;
First offline updating unit, if not identical for the current version number and the offline versions number, according to institute It states offline resources packet and updates the application program.
Preferably, the application program update device, further includes:
Resource packet detection module, for being answered in real-time detection server corresponding with the application program with the presence or absence of described With the more new resources packet of program;
Offline resources packet update module, if for the more new resources packet in the server there are the application program, The more new resources packet is downloaded into the local profile of the application program, with update in the local profile from Line resource packet and offline versions number.
Fig. 5 is a kind of schematic diagram of terminal device provided in an embodiment of the present invention.As shown in figure 5, the terminal of the embodiment Equipment 5 includes: processor 50, memory 51 and is stored in the memory 51 and can run on the processor 50 Computer-readable instruction 52, such as application program update program.When the processor 50 executes the computer-readable instruction 52 Realize the step in above-mentioned each application program update embodiment of the method, such as step S101 shown in FIG. 1 to step S107.Or Person, the processor 50 realize each module/unit in above-mentioned each Installation practice when executing the computer-readable instruction 52 Function, such as module shown in Fig. 4 401 is to the function of module 407.
Illustratively, the computer-readable instruction 52 can be divided into one or more module/units, one Or multiple module/units are stored in the memory 51, and are executed by the processor 50, to complete the present invention.Institute Stating one or more module/units can be the series of computation machine readable instruction section that can complete specific function, the instruction segment For describing implementation procedure of the computer-readable instruction 52 in the terminal device 5.
The terminal device 5 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.The terminal device may include, but be not limited only to, processor 50, memory 51.It will be understood by those skilled in the art that Fig. 5 The only example of terminal device 5 does not constitute the restriction to terminal device 5, may include than illustrating more or fewer portions Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net Network access device, bus etc..
The processor 50 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 51 can be the internal storage unit of the terminal device 5, such as the hard disk or interior of terminal device 5 It deposits.The memory 51 is also possible to the External memory equipment of the terminal device 5, such as be equipped on the terminal device 5 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 51 can also both include the storage inside list of the terminal device 5 Member also includes External memory equipment.The memory 51 is for storing the computer-readable instruction and terminal device institute Other programs and data needed.The memory 51 can be also used for temporarily storing the number that has exported or will export According to.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (10)

1. a kind of application program update method characterized by comprising
If receiving the update request of application program, the online latest edition number and the application program of the application program are obtained Local profile, the offline resources packet and the offline resources of the application program are preserved in the local profile Wrap corresponding offline versions number;
Judge whether the offline versions number are identical as the online latest edition number of the application program;
If the offline versions number are identical as the online latest edition number, the application is updated according to the offline resources packet Program;
If the offline versions number and the online latest edition number be not identical, it is corresponding to obtain the online latest edition number Online newest resource packet;
Judge whether the online newest resource packet obtains success;
When the online newest resource packet obtains failure, existing built-in cache resources in the local profile are removed, And reacquire the online newest resource packet;
It is described after the newest resource packet of line successfully obtaining, the application program and institute are updated according to the online newest resource packet State local profile.
2. application program update method according to claim 1, which is characterized in that described when the online newest resource packet When obtaining failure, existing built-in cache resources in the local profile are removed, and reacquire the online newest money Source packet, comprising:
When the online newest resource packet obtains failure, the frequency of failure that the online newest resource packet obtains failure is counted;
When the frequency of failure reaches preset times threshold value, existing built-in caching money in the local profile is removed Source, and reacquire the online newest resource packet.
3. application program update method according to claim 1, which is characterized in that described when the online newest resource packet When obtaining failure, existing built-in cache resources in the local profile are removed, and reacquire the online newest money Source packet, comprising:
When the online newest resource packet obtains failure, prompting message is exported, whether the prompting message is removed for prompting It caches and reacquires the online newest resource packet;
When receiving the confirmation message for responding the prompting message, existing built-in caching in the local profile is removed Resource, and reacquire the online newest resource packet.
4. application program update method according to claim 1, which is characterized in that if the offline versions number and institute It is not identical to state online latest edition number, then obtains the corresponding online newest resource packet of the online latest edition number, comprising:
If the offline versions number and the online latest edition number be not identical, the residue in the local profile is obtained The committed memory of memory and the corresponding online newest resource packet of the online latest edition number;
When the free memory is more than or equal to the committed memory, the online newest resource packet is obtained;
When the free memory is less than the committed memory, existing built-in caching money in the local profile is removed Source, and reacquire the online newest resource packet.
5. application program update method according to claim 1, which is characterized in that it is described according to the offline resources packet more The new application program, comprising:
The current version number for the resource packet that the application program is being currently used is obtained, and judges the current version number and institute Whether identical state offline versions number;
If the current version number and the offline versions number are not identical, updated according to the offline resources packet described using journey Sequence.
6. application program update method according to any one of claim 1 to 5, which is characterized in that receiving application Before the update request of program, comprising:
It whether there is the more new resources packet of the application program in real-time detection server corresponding with the application program;
If there are the more new resources packets of the application program in the server, the more new resources packet is downloaded to the application In the local profile of program, to update offline resources packet and the offline versions number in the local profile.
7. a kind of computer readable storage medium, the computer-readable recording medium storage has computer-readable instruction, special Sign is, the application program as described in any one of claims 1 to 6 is realized when the computer-readable instruction is executed by processor The step of update method.
8. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor The computer-readable instruction of operation, which is characterized in that the processor realizes following step when executing the computer-readable instruction It is rapid:
If receiving the update request of application program, the online latest edition number and the application program of the application program are obtained Local profile, the offline resources packet and the offline resources of the application program are preserved in the local profile Wrap corresponding offline versions number;
Judge whether the offline versions number are identical as the online latest edition number of the application program;
If the offline versions number are identical as the online latest edition number, the application is updated according to the offline resources packet Program;
If the offline versions number and the online latest edition number be not identical, it is corresponding to obtain the online latest edition number Online newest resource packet;
Judge whether the online newest resource packet obtains success;
When the online newest resource packet obtains failure, existing built-in cache resources in the local profile are removed, And reacquire the online newest resource packet;
It is described after the newest resource packet of line successfully obtaining, the application program and institute are updated according to the online newest resource packet State local profile.
9. terminal device according to claim 8, which is characterized in that described when the online newest resource packet obtains failure When, existing built-in cache resources in the local profile are removed, and reacquire the online newest resource packet, packet It includes:
When the online newest resource packet obtains failure, the frequency of failure that the online newest resource packet obtains failure is counted;
When the frequency of failure reaches preset times threshold value, existing built-in caching money in the local profile is removed Source, and reacquire the online newest resource packet.
10. terminal device according to claim 8, which is characterized in that described to be lost when the online newest resource packet obtains When losing, existing built-in cache resources in the local profile are removed, and reacquire the online newest resource packet, packet It includes:
When the online newest resource packet obtains failure, prompting message is exported, whether the prompting message is removed for prompting It caches and reacquires the online newest resource packet;
When receiving the confirmation message for responding the prompting message, existing built-in caching in the local profile is removed Resource, and reacquire the online newest resource packet.
CN201811120137.5A 2018-09-25 2018-09-25 A kind of application program update method, storage medium and terminal device Pending CN109358873A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811120137.5A CN109358873A (en) 2018-09-25 2018-09-25 A kind of application program update method, storage medium and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811120137.5A CN109358873A (en) 2018-09-25 2018-09-25 A kind of application program update method, storage medium and terminal device

Publications (1)

Publication Number Publication Date
CN109358873A true CN109358873A (en) 2019-02-19

Family

ID=65347747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811120137.5A Pending CN109358873A (en) 2018-09-25 2018-09-25 A kind of application program update method, storage medium and terminal device

Country Status (1)

Country Link
CN (1) CN109358873A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110244957A (en) * 2019-05-10 2019-09-17 阿里巴巴集团控股有限公司 A kind of resource data updating method, apparatus and system
CN110365788A (en) * 2019-07-22 2019-10-22 广东商路信息科技有限公司 Data managing method and device based on isomery message
CN110618826A (en) * 2019-08-16 2019-12-27 深圳市元征科技股份有限公司 Method and device for updating application program and terminal equipment
CN111611510A (en) * 2020-06-11 2020-09-01 上海乾臻信息科技有限公司 Cache clearing method, device and system
CN112925544A (en) * 2021-02-26 2021-06-08 湖南强智科技发展有限公司 Method and device for updating application program, electronic equipment and computer storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092665A (en) * 2013-03-01 2013-05-08 畅捷通信息技术股份有限公司 Immediate updating device and immediate updating method
US20130219383A1 (en) * 2012-02-16 2013-08-22 Israel Hilerio Using an Application Cache to Update Resources of Installed Applications
CN105589705A (en) * 2014-10-24 2016-05-18 小米科技有限责任公司 File updating method and device, and equipment
CN107391173A (en) * 2017-06-14 2017-11-24 北京康得新创科技股份有限公司 Update method, storage medium and the terminal of application program
US20180075078A1 (en) * 2016-09-09 2018-03-15 Salesforce.Com, Inc. Processing offline updates to records of a database system
CN107846465A (en) * 2017-11-13 2018-03-27 北京趣拿软件科技有限公司 Update the method and apparatus of client resource bag
CN108228210A (en) * 2017-12-08 2018-06-29 平安科技(深圳)有限公司 A kind of resource regeneration method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130219383A1 (en) * 2012-02-16 2013-08-22 Israel Hilerio Using an Application Cache to Update Resources of Installed Applications
CN103092665A (en) * 2013-03-01 2013-05-08 畅捷通信息技术股份有限公司 Immediate updating device and immediate updating method
CN105589705A (en) * 2014-10-24 2016-05-18 小米科技有限责任公司 File updating method and device, and equipment
US20180075078A1 (en) * 2016-09-09 2018-03-15 Salesforce.Com, Inc. Processing offline updates to records of a database system
CN107391173A (en) * 2017-06-14 2017-11-24 北京康得新创科技股份有限公司 Update method, storage medium and the terminal of application program
CN107846465A (en) * 2017-11-13 2018-03-27 北京趣拿软件科技有限公司 Update the method and apparatus of client resource bag
CN108228210A (en) * 2017-12-08 2018-06-29 平安科技(深圳)有限公司 A kind of resource regeneration method and system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110244957A (en) * 2019-05-10 2019-09-17 阿里巴巴集团控股有限公司 A kind of resource data updating method, apparatus and system
CN110365788A (en) * 2019-07-22 2019-10-22 广东商路信息科技有限公司 Data managing method and device based on isomery message
CN110618826A (en) * 2019-08-16 2019-12-27 深圳市元征科技股份有限公司 Method and device for updating application program and terminal equipment
CN111611510A (en) * 2020-06-11 2020-09-01 上海乾臻信息科技有限公司 Cache clearing method, device and system
CN111611510B (en) * 2020-06-11 2023-08-15 上海乾臻信息科技有限公司 Cache clearing method, device and system
CN112925544A (en) * 2021-02-26 2021-06-08 湖南强智科技发展有限公司 Method and device for updating application program, electronic equipment and computer storage medium
CN112925544B (en) * 2021-02-26 2022-12-02 湖南强智科技发展有限公司 Method and device for updating application program, electronic equipment and computer storage medium

Similar Documents

Publication Publication Date Title
CN109358873A (en) A kind of application program update method, storage medium and terminal device
CN108427581A (en) System micro services method and terminal device
CN109284217A (en) Application exception processing method, device, electronic equipment and storage medium
CN106815329A (en) A kind of data cached update method and device
CN109962855A (en) A kind of current-limiting method of WEB server, current-limiting apparatus and terminal device
CN110430068B (en) Characteristic engineering arrangement method and device
CN108762792A (en) Upgrading network equipment method, upgrade server, terminal device and storage medium
CN107656776A (en) A kind of firmware update, device and the medium of FPGA accelerator cards
CN106685894B (en) Risk identification method, device and system
CN107832291A (en) Client service method, electronic installation and the storage medium of man-machine collaboration
CN107528912A (en) A kind of automatic method, system and relevant apparatus for realizing distributing real time system
CN104866339A (en) Distributed persistent management method, system and device of FOTA data
CN113572780A (en) Equipment security policy configuration method
CN105933380A (en) Data transmission method, device and terminal
CN107168813A (en) Task processing method and system
CN107277896B (en) Wifi hotspot management method, device and terminal device
CN105824660A (en) Application program updating method and terminal
CN107977504A (en) A kind of asymmetric in-core fuel management computational methods, device and terminal device
CN110413310A (en) Programme upgrade method and terminal device
CN117076563A (en) Pruning method and device applied to blockchain
CN105049475B (en) The data efficient storage optimization method and system of extensive community
CN111831452A (en) Task execution method and device, storage medium and electronic device
CN109766131A (en) The system and method for the intelligent automatic upgrading of software is realized based on multithreading
CN109859038A (en) A kind of take-effective method and device of block chain intelligence contract
CN107589907A (en) Data processing method, electronic equipment and computer-readable recording 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