[go: up one dir, main page]

CN109167820A - A kind of method for down loading of application program, device, storage medium and terminal - Google Patents

A kind of method for down loading of application program, device, storage medium and terminal Download PDF

Info

Publication number
CN109167820A
CN109167820A CN201810916859.5A CN201810916859A CN109167820A CN 109167820 A CN109167820 A CN 109167820A CN 201810916859 A CN201810916859 A CN 201810916859A CN 109167820 A CN109167820 A CN 109167820A
Authority
CN
China
Prior art keywords
downloading
application program
download
intranet
task
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
CN201810916859.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.)
POLYTRON TECHNOLOGIES Inc
Original Assignee
POLYTRON TECHNOLOGIES Inc
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 POLYTRON TECHNOLOGIES Inc filed Critical POLYTRON TECHNOLOGIES Inc
Priority to CN201810916859.5A priority Critical patent/CN109167820A/en
Publication of CN109167820A publication Critical patent/CN109167820A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • H04W8/245Transfer of terminal data from a network towards a terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a kind of method for down loading of application program, device, storage medium and terminals.This method comprises: judging that the login mode of terminal, login mode include: outer net landing approach and Intranet landing approach when terminal logs on to using store;When receiving the downloading task of application program, according to the login mode judging result of terminal, download policy is determined;Wherein, if being judged as outer net landing approach, the downloading of application program is carried out using the first download policy;First download policy includes: that downloading mode priority is followed successively by CDN downloading, former station downloading, former station HTTPS downloading and Intranet downloading;If being judged as Intranet landing approach, the downloading of application program is carried out using the second download policy;Second download policy includes: that downloading mode priority is followed successively by Intranet downloading, CDN downloading, former station downloading and former station HTTPS downloading.By using technical solution provided herein, the effect for improving the downloading success rate of application program may be implemented.

Description

A kind of method for down loading of application program, device, storage medium and terminal
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of method for down loading of application program, device, storage Medium and terminal.
Background technique
With the rise of smart phone, application shop becomes user and downloads APP (Application, application program) Entrance, user can also be downloaded peace by computer pc client store by cell phone application using store downloading installation Dress.Hot with mobile phone market, mobile phone updates more and more frequent, it may be said that mobile phone have become periodic traffic and One of necessary tool used, almost everybody has a mobile phone, but the diversity of cell phone application is only and meets the various need of people That asks is basic.
Currently, the downloading application scenarios of market do not account for special download environment, for example user logs on as intranet environment Success can not be downloaded, for example situations such as downloading file can not be downloaded can not find by some network acceleration discovery, if examined Consider the influence of such factor, without relatively complete download policy, not can guarantee downloading success rate.
Summary of the invention
The embodiment of the present invention provides method for down loading, device, storage medium and the terminal of a kind of application program, may be implemented to mention The effect of the downloading success rate of high application program.
In a first aspect, the embodiment of the invention provides a kind of method for down loading of application program, this method comprises:
When terminal logs on to using store, judge that the login mode of terminal, the login mode include: the outer net side of logging in Formula and Intranet landing approach;
When receiving the downloading task of application program, according to the login mode judging result of terminal, download policy is determined; Wherein, if being judged as outer net landing approach, the downloading of application program is carried out using the first download policy in download policy;Its In, the first download policy includes: that downloading mode priority is followed successively by CDN downloading, original station is downloaded, former station HTTPS is downloaded and interior Load off the net;
If being judged as Intranet landing approach, carried out under application program using the second download policy in download policy It carries;Wherein, the second download policy includes: that downloading mode priority is followed successively by Intranet downloading, CDN is downloaded, former station is downloaded and former The HTTPS that stands downloading.
Further, it is judged as outer net landing approach, then is carried out using the first download policy in download policy using journey The downloading of sequence, comprising:
When being judged as outer net landing approach, judge that this logs in whether CDN downloading can be used;
If unavailable, successively attempt whether former station downloading, former station HTTPS downloading and Intranet downloading can be used;
If the downloading of original station, former station HTTPS downloading and Intranet downloading are all unavailable, application program failed download is returned.
Further, when being judged as outer net landing approach, judge that this logs in whether CDN downloading can be used, comprising:
Open CDN downloading detection thread;The CDN downloading detection thread is downloaded by access preset URL, and using CDN;
If downloading successfully, it is determined that it is available that this logs in CDN downloading;
If failed download, it is determined that it is unavailable that this logs in CDN downloading.
Further, after receiving the downloading task of application program, the method also includes:
Whether the downloading task for judging the application program is breakpoint transmission task;
If so, reading the downloaded file information of application program;
Breakpoint transmission downloading is carried out according to the downloaded file information;
After the completion of downloading, judge whether breakpoint transmission downloading succeeds;If failed, the downloading of the application program is appointed Business is re-downloaded.
Further, after judging the downloading task of the application program for breakpoint transmission task, the method is also wrapped It includes:
Whether the downloading task for judging the application program is multithreading downloading task;Wherein, the multithreading downloading is appointed Business is the task that at least two threads are downloaded application program;
If so, read application program downloaded file information, comprising: read the application program of per thread under Carry the file information;
Breakpoint transmission downloading is carried out according to the downloaded file information, comprising:
According to the downloaded file information of the application program of the per thread, for not completing the line of thread downloading task Cheng Jinhang breakpoint transmission downloading;
After all thread completes thread downloading task, downloading temporary file is merged, and after modifying merging Application program download file name.
It further, whether is the method after breakpoint transmission task in the downloading task for judging the application program Further include:
If it is not, then judging whether the downloading task of current application program supports multithreading to download;
If support, according to used thread downloading mode carry out application program downloading.
Further, when the downloading mode of second download policy is that Intranet is downloaded, according to the second downloading plan Slightly application program is downloaded, comprising:
The Intranet city coding for obtaining user, judges whether there is and takes with the matched city APK of the downloading task of application program Business device;
If it exists, then by the address of city APK server replacement downloading URL prefix, and according to replaced address into The downloading of row application program;
If it does not exist, then the Intranet for obtaining user saves coding, judges whether there is the downloading task with application program The province matched, city's APK server;If so, by the address of the province, city's APK server replacement downloading URL prefix, and according to replacing Address after changing carries out the downloading of application program.
Second aspect, the embodiment of the invention also provides a kind of download apparatus of application program, which includes:
Login mode determination module, it is described to step on for judging the login mode of terminal when terminal logs on to using store Record mode includes: outer net landing approach and Intranet landing approach;
Download policy determining module, for when receiving the downloading task of application program, according to the login mode of terminal Judging result determines download policy;Wherein, if being judged as outer net landing approach, using the first downloading plan in download policy Slightly carry out the downloading of application program;Wherein, the first download policy includes: that downloading mode priority is followed successively by under CDN downloading, former station It carries, former station HTTPS downloading and Intranet are downloaded;If being judged as Intranet landing approach, using the second downloading in download policy Strategy carries out the downloading of application program;Wherein, the second download policy includes: that downloading mode priority is followed successively by Intranet downloading, CDN Downloading, former station downloading and former station HTTPS downloading.
The third aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journey Sequence realizes the method for down loading of the application program as described in the embodiment of the present application when the program is executed by processor.
Fourth aspect, the embodiment of the present application provide a kind of terminal, including memory, and processor and storage are on a memory And the computer program that can be run in processor, the processor realize such as the embodiment of the present application when executing the computer program The method for down loading of the application program.
Technical solution provided by the embodiment of the present application judges the login side of terminal when terminal logs on to using store Formula, the login mode include: outer net landing approach and Intranet landing approach;When receiving the downloading task of application program, According to the login mode judging result of terminal, download policy is determined;Wherein, if being judged as outer net landing approach, using downloading The first download policy in strategy carries out the downloading of application program;Wherein, the first download policy include: downloading mode priority according to It is secondary to be downloaded for CDN downloading, former downloading of standing, former station HTTPS downloading and Intranet;If being judged as Intranet landing approach, use down Carry the downloading that the second download policy in strategy carries out application program;Wherein, the second download policy includes: downloading mode priority It is followed successively by Intranet downloading, CDN downloading, former station downloading and former station HTTPS downloading.By using technical side provided herein The effect for improving the downloading success rate of application program may be implemented in case.
Detailed description of the invention
Fig. 1 is the flow chart of the method for down loading for the application program that the embodiment of the present invention one provides;
Fig. 2 is the flow chart of the method for down loading of application program provided by Embodiment 2 of the present invention;
Fig. 3 is the flow chart of the method for down loading for the application program that the embodiment of the present invention three provides;
Fig. 4 is the flow chart of the method for down loading for the application program that the embodiment of the present invention four provides;
Fig. 5 is the structural schematic diagram of the download apparatus for the application program that the embodiment of the present invention five provides;
Fig. 6 is a kind of structural schematic diagram of terminal provided by the embodiments of the present application.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail The processing or method described as flow chart.Although each step is described as the processing of sequence by flow chart, many of these Step can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of each step can be rearranged.When its operation The processing can be terminated when completion, it is also possible to have the additional step being not included in attached drawing.The processing can be with Corresponding to method, function, regulation, subroutine, subprogram etc..
Downloading is typically all by http protocol (Hyper Text Transport Protocol, Hyper text transfer association View) it is downloaded, during user is generally downloaded, request download information can be gone first, obtains actual download address, this Invention is the optimization carried out above service downloading based on such protocol basis.
Embodiment one
Fig. 1 is the flow chart of the method for down loading for the application program that the embodiment of the present invention one provides, and the present embodiment is applicable to answer The case where being downloaded with program, the download apparatus of this method application program provided by the embodiment of the present invention execute, should Device can be realized by the mode of software and/or hardware, and can be integrated in terminal.
As shown in Figure 1, the method for down loading of the application program includes:
S110, when terminal logs on to using store, judge that the login mode of terminal, the login mode include: outer net Landing approach and Intranet landing approach.
Wherein, terminal can be smart phone, tablet computer and personal digital assistant and computer etc., can be with using store It is that the store of the application program downloading of terminal is provided for user, is also possible to such as certain mobile phone assistant's third-party application store.It connects The downloading task for receiving application program, which can be, to be got user and clicks certain application program, and the application program is downloaded Situation can click wechat icon such as in application store, carry out the downloading of this application program of wechat.Wherein if wechat It has been downloaded then without repeated downloads, this application program of wechat can have been opened by clicking the icon of wechat.
Wherein, the login mode of terminal can be what external network connection logined successfully, can also be and is logged in by Intranet Successfully, such as in-company local area network.In the present embodiment, since the downloading of application program needs to judge that outer net logs in also It is that Intranet logs in, different login modes can be adapted for different download policies, it is possible to after terminal login, to login Mode is judged, the determination in subsequent step to download policy is conducive to.Download policy in the present embodiment is improving application While the speed of download of program, additionally it is possible to ensure the success rate of application program downloading.
S120, when receiving the downloading task of application program, according to the login mode judging result of terminal, determine downloading Strategy.
Wherein, if being judged as outer net landing approach, application program is carried out using the first download policy in download policy Downloading;Wherein, the first download policy includes: that downloading mode priority is followed successively by under CDN downloading, former station downloading, former station HTTPS It carries and Intranet is downloaded;If being judged as Intranet landing approach, carried out using the second download policy in download policy using journey The downloading of sequence;Wherein, the second download policy includes: that downloading mode priority is followed successively by Intranet downloading, CDN downloading, former station downloading And former station HTTPS downloading.
Wherein it is possible to determine current login mode according to outer net Internet resources are provided, if it is possible to which normal acquisition is outer Net resource, it is determined that logged in for outer net, if being merely able to obtain the Internet resources of Intranet, can determine and currently be logged in for Intranet State.In addition to this it is possible to be determined by result that other network interfaces are tested.
After being judged as outer net landing approach, then application program is carried out using the first download policy in download policy Downloading.Wherein, the first download policy includes: that downloading mode priority is followed successively by CDN downloading, former station downloading, former station HTTPS downloading And Intranet downloading.
In the present embodiment, the first download policy be when terminal login mode be normal login mode download policy, Under normal circumstances, for terminal in the case where the installation of application program, user can generally select normal login mode, can protect in this way Card downloads the abundance of resource and can provide guarantee, the resource limitation for avoiding Intranet from logging in speed of download.Therein One download policy, the priority of downloading mode be followed successively by CDN (distribution network) downloading, former station downloading, former station HTTPS downloading and Intranet downloading is specifically preferentially downloaded using CDN downloading, when CDN downloading can not be downloaded normally, using under original station It carries, whether the former station downloading of detection is unsuccessful, detects whether original station HTTPS downloads success, if unsuccessful, can detecte and may be used Downloading is completed to act on behalf of by Intranet, if Intranet agency can not complete the downloading of application program, terminates downloading process, Inform that application program can not be downloaded to user.It, can be using under this if wherein some downloading mode can be downloaded Load mode completes the downloading task of application program.
After determining download policy, application program can be downloaded by the first download policy, until having downloaded At.In the present embodiment, if in a login process, there is a situation where repeatedly downloadings, can complete for the first time downloading When subsequent download task starts, the downloading work that the downloading mode downloaded for the first time carries out subsequent download task is directlyed adopt, in this way The benefit of setting is to may not need which kind of downloading mode rejudged in the first download policy again is able to carry out downloading, is improved The completion efficiency of subsequent download task.
If being judged as Intranet landing approach, carried out under application program using the second download policy in download policy It carries;Wherein, the second download policy includes: that downloading mode priority is followed successively by Intranet downloading, CDN is downloaded, former station is downloaded and former The HTTPS that stands downloading.Correspondingly, being downloaded according to second download policy to application program.
Wherein, if it is determined that Intranet login mode, can use the second download policy, specifically preferential judgement is current interior Whether net can complete the downloading of application program, if it is not, successively judging CDN downloading, former station downloading and former station HTTPS Downloading, the benefit being arranged in this way is can to provide for user in the case where Intranet is logged in using store and be adapted to currently log in The download policy of state can also possess a variety of alternative plans while improving the speed of download of application program, in favor of protecting Demonstrate,prove the downloading success rate of application program.
Technical solution provided by the embodiment of the present application judges the login side of terminal when terminal logs on to using store Formula, the login mode include: outer net landing approach and Intranet landing approach;When receiving the downloading task of application program, According to the login mode judging result of terminal, download policy is determined;Wherein, if being judged as outer net landing approach, using downloading The first download policy in strategy carries out the downloading of application program;Wherein, the first download policy include: downloading mode priority according to It is secondary to be downloaded for CDN downloading, former downloading of standing, former station HTTPS downloading and Intranet;If being judged as Intranet landing approach, use down Carry the downloading that the second download policy in strategy carries out application program;Wherein, the second download policy includes: downloading mode priority It is followed successively by Intranet downloading, CDN downloading, former station downloading and former station HTTPS downloading.By using technical side provided herein The effect for improving the downloading success rate of application program may be implemented in case.
Embodiment two
Fig. 2 is the flow chart of the method for down loading of application program provided by Embodiment 2 of the present invention.The present embodiment is in above-mentioned reality On the basis of applying example, optimization are as follows: be judged as outer net landing approach, then applied using the first download policy in download policy The downloading of program, comprising: when being judged as outer net landing approach, judge that this logs in whether CDN downloading can be used;If unavailable, Then successively attempt whether former station downloading, former station HTTPS downloading and Intranet downloading can be used;If the downloading of original station, former station HTTPS downloading And Intranet downloading is all unavailable, then returns to application program failed download.
As shown in Fig. 2, the method for down loading of the application program includes:
S210, when terminal logs on to using store, judge that the login mode of terminal, the login mode include: outer net Landing approach and Intranet landing approach.
If S220, being judged as outer net landing approach, judge that this logs in whether CDN downloading can be used;If so, executing S230;If it is not, then executing S240.
In the present embodiment, optionally, after terminal logs on to using store, CDN downloading detection thread is opened;It is described CDN downloading detection thread is downloaded by access preset URL, and using CDN;If downloading successfully, it is determined that this logs in CDN downloading It can use;If failed download, it is determined that it is unavailable that this logs in CDN downloading.
Wherein it is possible to, by access preset URL, be carried out to resource corresponding to the URL after terminal is logged in using store Downloading, if downloaded successfully, it is determined that this logs in CDN downloading and can be used, if failed download, it is determined that this is logged under CDN It carries unavailable.The benefit being arranged in this way is can be after terminal be logged in by normal mode using store, by downloading to CDN Detection, determine terminal this whether log in can be using CDN downloading mode, can be in the case where network condition allows, to the greatest extent Amount to mention as far as possible while guaranteeing downloading success rate using distribution network come the feature for utilizing distribution network speed of download fast High speed of download.
S230, application program is downloaded using CDN downloading mode.
The full name of CDN is Content Delivery Network, i.e. content distributing network.Its basic ideas is as far as possible The bottleneck and link for avoiding being possible to influencing data transmission bauds and stability on internet, make content transmission faster, it is more steady It is fixed.By placing one on the existing Internet basic layer intelligent virtual net that node server is constituted everywhere in network Network, CDN system can be in real time according to the connection of network flow and each node, load states and to the distance and response of user The integrated informations such as time re-direct the request of user on the service node nearest from user.The purpose is to keep user nearest Content needed for obtaining solves the crowded situation of Internet network, improves the response speed that user accesses website.
S240, successively attempt whether former station downloading, former station HTTPS downloading and Intranet downloading can be used;If the downloading of original station, original The HTTPS that stands downloading and Intranet downloading are all unavailable, then return to application program failed download.
How really the present embodiment on the basis of the above embodiments, provides one kind in the case where outer net landing approach, Determine CDN downloading whether available method, through this embodiment provided by technical solution, the downloading to application program may be implemented It is preferential in the process to be downloaded by the way of CDN downloading, improve the speed of download and success rate of application program.
Embodiment three
Fig. 3 is the flow chart of the method for down loading for the application program that the embodiment of the present invention three provides.The present embodiment is in above-mentioned reality On the basis of applying example, optimization are as follows: after receiving the downloading task of application program, the method also includes: it is answered described in judgement It whether is breakpoint transmission task with the downloading task of program;If so, reading the downloaded file information of application program;According to institute It states downloaded file information and carries out breakpoint transmission downloading;After the completion of downloading, judge whether breakpoint transmission downloading succeeds;If not at Function then re-downloads the downloading task of the application program.
As shown in figure 3, the method for down loading of the application program includes:
S310, when terminal logs on to using store, judge that the login mode of terminal, the login mode include: outer net Landing approach and Intranet landing approach.
S320, when receiving the downloading task of application program, judge whether the downloading task of the application program is disconnected Point resumes task;If so, executing S330;If it is not, then executing S350.
Wherein, by breakpoint transmission support pattern, the downloading of application program multithreading is realized, i.e. application program can be into Row piecemeal is respectively downloaded according to different blocks, is finally assembled.Also, if encountering network failure, breakpoint transmission can To continue to upload the unfinished part of downloading since the part for having uploaded or having downloaded, without it is necessary from the beginning on descend It carries.User can save the time, improve speed.
S330, the downloaded file information for reading application program carry out breakpoint transmission according to the downloaded file information Downloading.
The progress that the current breakpoint of application program resumes can be determined from the downloaded file information of application program, i.e., often Whether a download thread completes the downloading of the piecemeal of the application program of corresponding portion.
After the completion of S340, downloading, judge whether breakpoint transmission downloading succeeds;If failed, to the application program Downloading task is re-downloaded.
Breakpoint transmission downloading if it is unsuccessful some piecemeal of the current application program of explanation or whole piecemeals not It can be downloaded by the way of breakpoint transmission, if it is the case, the entire file of application program can then be carried out It re-downloads, avoid the position interrupted again according to downloading or is divided into multiple threads and is downloaded, it in this way can be to avoid application Be downloaded every time according to multiple threads in program download process, or be every time from breakpoint download caused by under Carry failure endless loop.
S350, directly application program is downloaded.
If current application program does not support breakpoint transmission to download, can directly be carried out with entire file to application program Downloading.
In the present embodiment, it is preferred that if the downloading task of current application program is not breakpoint transmission task, judge Whether the downloading task of current application program supports multithreading to download;If support, according to used thread downloading mode carry out Application program downloading.The benefit being arranged in this way is can to promote the download progress of application program.
The present embodiment provides a kind of downloading mode of the breakpoint transmission of application program on the basis of the various embodiments described above And corresponding download policy, the downloading success rate of application program can be improved, while some of which mistake can also be avoided Circulatory problems guarantee the downloading success rate of application program while saving download time for user.
On the basis of above-mentioned each technical solution, optionally, judging that the downloading task of the application program is continuous for breakpoint After biography task, the method also includes: whether the downloading task for judging the application program is multithreading downloading task;Its In, the multithreading downloading task is the task that at least two threads are downloaded application program;If so, reading application program Downloaded file information, comprising: read the downloaded file information of the application program of per thread;According to the per thread Application program downloaded file information, for do not complete thread downloading task thread carry out breakpoint transmission downloading;Work as institute After some threads complete thread downloading task, downloading temporary file is merged, and modifies under the application program after merging Carry file name.
Wherein, when the downloading task of application program is multithreading downloading task, the download of per thread may be Different, for example, the download progress of some thread can be solely 75%, and the downloading task of other threads may have reached 100%, this just needs to divide the downloaded file information of per thread when reading the downloaded file of application program It does not read, and then the thread for not completing thread downloading task carries out breakpoint transmission downloading, and thread downloading task is completed Thread when other threads can then be waited to complete downloading, then the temporary file that all thread is downloaded is merged, shape At the downloading installation kit of application program.The benefit that the present embodiment is arranged in this way is can be right in the case where supporting breakpoint transmission When the download progress difference of each thread, using original separated time journey downloading mode, and according to respective download progress It is downloaded, improves the download efficiency of application program, and can be to avoid there is mistake in application program installation kit downloading process.
Example IV
Fig. 4 is the flow chart of the method for down loading for the application program that the embodiment of the present invention four provides.The present embodiment is in above-mentioned reality On the basis of applying example, optimization are as follows: when the downloading mode of second download policy is that Intranet is downloaded, according to second downloading Strategy is downloaded application program, comprising: obtain user Intranet city coding, judge whether there is under application program The matched city APK server of load task;If it exists, then it by the address replacement downloading URL prefix of the city APK server, and presses The downloading of application program is carried out according to replaced address;If it does not exist, then the Intranet for obtaining user saves coding, judges whether there is Have and the matched province of the downloading task of application program, city's APK server;If so, by the province, the address of city's APK server Replacement downloading URL prefix, and according to the downloading of replaced address progress application program.
As shown in figure 4, the method for down loading of the application program includes:
S410, when logging on to using store when terminal, and receiving the downloading task of application program, judge the login of terminal Whether mode is outer net landing approach.
If S420, being judged as Intranet landing approach, application program is carried out using the second download policy in download policy Downloading;Wherein, the second download policy include: downloading mode priority be followed successively by Intranet downloading, CDN downloading, former station downloading with And former station HTTPS downloading.
S430, the Intranet city coding for obtaining user, judge whether there is and the matched city of the downloading task of application program APK server;If it exists, then S440 is executed;If it does not exist, then S450 is executed.
Wherein, according in the city of Intranet coding, corresponding city APK server is judged whether there is, can provide user needs The application program to be downloaded.
S440, the address replacement downloading URL prefix by the city APK server, and answered according to replaced address With the downloading of program.
If it is present the address of city's APK server can be replaced downloading URL prefix, so that terminal passes through access Corresponding application program downloads title in city's APK server, carries out the downloading of application program.Illustratively, e.g., city APK is serviced The address of device is 192.168.0.137, and downloading URL is www.APKdown.com/mobile/weixin, then can be downloading The prefix of URL is replaced, and obtains 192.168.0.137/weixin, to access the wechat application journey in city's APK server The installation kit of sequence.
S450, the Intranet provinces and cities coding for obtaining user, judge whether there is matched with the downloading task of application program Province, city's APK server;If so, by the address of the province, city's APK server replacement downloading URL prefix, and according to replacement after Address carry out application program downloading.
The implementation of this step is referred to S440 realization, details are not described herein again with step S440.
S460, it judges whether there is and the matched province of the downloading task of application program, city's APK server;If it is not, then according to It is secondary to attempt to carry out application program downloading using CDN downloading, former station downloading and former station HTTPS downloading mode, if can not download, Then return to application program failed download.
It encodes also when Intranet saves there is no in the case where corresponding server, can successively attempt to use other downloading modes The downloading for carrying out application program terminates the downloading of application program, and report and apply journey to user if can not download The information of sequence failed download.
The present embodiment provides a kind of specifically using Intranet progress application program on the basis of the various embodiments described above Downloading mode, the benefit being arranged in this way are can be classified other to city-level and provincial clothes in the case where Intranet is logged in using store Business device scans for, and improves the downloading success rate of application program.
Embodiment five
Fig. 5 is the structural schematic diagram of the download apparatus for the application program that the embodiment of the present invention five provides.As shown in figure 5, institute State the download apparatus of application program, comprising:
Login mode determination module 510, for judging the login mode of terminal, institute when terminal logs on to using store Stating login mode includes: outer net landing approach and Intranet landing approach;
Download policy determining module 520, for when receiving the downloading task of application program, according to the login side of terminal Formula judging result, determines download policy;Wherein, if being judged as outer net landing approach, using the first downloading in download policy Strategy carries out the downloading of application program;Wherein, the first download policy includes: that downloading mode priority is followed successively by CDN downloading, former station Downloading, former station HTTPS downloading and Intranet downloading;If being judged as Intranet landing approach, using under second in download policy Carry the downloading that strategy carries out application program;Wherein, the second download policy include: downloading mode priority be followed successively by Intranet downloading, CDN downloading, former station downloading and former station HTTPS downloading.
Technical solution provided by the embodiment of the present application judges the login side of terminal when terminal logs on to using store Formula, the login mode include: outer net landing approach and Intranet landing approach;When receiving the downloading task of application program, According to the login mode judging result of terminal, download policy is determined;Wherein, if being judged as outer net landing approach, using downloading The first download policy in strategy carries out the downloading of application program;Wherein, the first download policy include: downloading mode priority according to It is secondary to be downloaded for CDN downloading, former downloading of standing, former station HTTPS downloading and Intranet;If being judged as Intranet landing approach, use down Carry the downloading that the second download policy in strategy carries out application program;Wherein, the second download policy includes: downloading mode priority It is followed successively by Intranet downloading, CDN downloading, former station downloading and former station HTTPS downloading.By using technical side provided herein The effect for improving the downloading success rate of application program may be implemented in case.
Method provided by any embodiment of the invention can be performed in the said goods, has the corresponding functional module of execution method And beneficial effect.
Embodiment six
The embodiment of the present application also provides a kind of storage medium comprising computer executable instructions, and the computer is executable It instructs when being executed by computer processor for executing a kind of method for down loading of application program, this method comprises:
When terminal logs on to using store, judge that the login mode of terminal, the login mode include: the outer net side of logging in Formula and Intranet landing approach;
When receiving the downloading task of application program, according to the login mode judging result of terminal, download policy is determined; Wherein, if being judged as outer net landing approach, the downloading of application program is carried out using the first download policy in download policy;Its In, the first download policy includes: that downloading mode priority is followed successively by CDN downloading, original station is downloaded, former station HTTPS is downloaded and interior Load off the net;If being judged as Intranet landing approach, the downloading of application program is carried out using the second download policy in download policy; Wherein, the second download policy includes: that downloading mode priority is followed successively by Intranet downloading, CDN downloading, former station downloading and former station HTTPS downloading.
Storage medium --- any various types of memory devices or storage equipment.Term " storage medium " is intended to wrap It includes: install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetic medium (such as hard disk or optical storage);Register or the memory component of other similar types etc..Storage medium can further include other Memory of type or combinations thereof.In addition, storage medium can be located at program in the computer system being wherein performed, or It can be located in different second computer systems, second computer system is connected to computer by network (such as internet) System.Second computer system can provide program instruction to computer for executing.Term " storage medium " may include can To reside in different location two or more storage mediums of (such as in the different computer systems by network connection). Storage medium can store the program instruction (such as being implemented as computer program) that can be performed by one or more processors.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present application The down operation for the application program that executable instruction is not limited to the described above can also be performed the application any embodiment and be provided Application program method for down loading in relevant operation.
Embodiment seven
The embodiment of the present application provides a kind of terminal, and application program provided by the embodiments of the present application can be integrated in the terminal Download apparatus.Fig. 6 is a kind of structural schematic diagram of terminal provided by the embodiments of the present application.As shown in fig. 6, the terminal can wrap Include: memory 601, central processing unit (Central Processing Unit, CPU) 602 (also known as processor, hereinafter referred to as CPU), circuit board (not shown) and power circuit (not shown).The circuit board is placed in what the shell surrounded Space interior;The CPU602 and the memory 601 are arranged on the circuit board;The power circuit, for being described The each circuit or device of terminal are powered;The memory 601, for storing executable program code;The CPU602 passes through The executable program code that stores in the memory 601 is read to run computer corresponding with the executable program code Program, to perform the steps of
When terminal logs on to using store, judge that the login mode of terminal, the login mode include: the outer net side of logging in Formula and Intranet landing approach;
When receiving the downloading task of application program, according to the login mode judging result of terminal, download policy is determined; Wherein, if being judged as outer net landing approach, the downloading of application program is carried out using the first download policy in download policy;Its In, the first download policy includes: that downloading mode priority is followed successively by CDN downloading, original station is downloaded, former station HTTPS is downloaded and interior Load off the net;If being judged as Intranet landing approach, the downloading of application program is carried out using the second download policy in download policy; Wherein, the second download policy includes: that downloading mode priority is followed successively by Intranet downloading, CDN downloading, former station downloading and former station HTTPS downloading.
The terminal further include: Peripheral Interface 603, RF (Radio Frequency, radio frequency) circuit 605, voicefrequency circuit 606, loudspeaker 611, power management chip 608, input/output (I/O) subsystem 609, touch screen 612, other input/controls Equipment 610 and outside port 604, these components are communicated by one or more communication bus or signal wire 607.
It should be understood that graphic terminal 600 is only an example of terminal, and terminal 600 can have than figure Shown in more or less component, two or more components can be combined, or can have different portions Part configuration.Various parts shown in the drawings can be including one or more signal processings and/or specific integrated circuit Hardware, software or hardware and software combination in realize.
Just the download terminal provided in this embodiment for application program is described in detail below, and the terminal is with mobile phone For.
Memory 601, the memory 601 can be accessed by CPU602, Peripheral Interface 603 etc., and the memory 601 can It can also include nonvolatile memory to include high-speed random access memory, such as one or more disk memory, Flush memory device or other volatile solid-state parts.
The peripheral hardware that outputs and inputs of equipment can be connected to CPU602 and deposited by Peripheral Interface 603, the Peripheral Interface 603 Reservoir 601.
I/O subsystem 609, the I/O subsystem 609 can be by the input/output peripherals in equipment, such as touch screen 612 With other input/control devicess 610, it is connected to Peripheral Interface 603.I/O subsystem 609 may include 6091 He of display controller For controlling one or more input controllers 6092 of other input/control devicess 610.Wherein, one or more input controls Device 6092 processed receives electric signal from other input/control devicess 610 or sends electric signal to other input/control devicess 610, Other input/control devicess 610 may include physical button (push button, rocker buttons etc.), dial, slide switch, behaviour Vertical pole clicks idler wheel.It is worth noting that input controller 6092 can with it is following any one connect: keyboard, infrared port, The indicating equipment of USB interface and such as mouse.
Touch screen 612, the touch screen 612 are the input interface and output interface between user terminal and user, can It is shown to user depending on output, visual output may include figure, text, icon, video etc..
Display controller 6091 in I/O subsystem 609 receives electric signal from touch screen 612 or sends out to touch screen 612 Electric signals.Touch screen 612 detects the contact on touch screen, and the contact that display controller 6091 will test is converted to and is shown The interaction of user interface object on touch screen 612, i.e. realization human-computer interaction, the user interface being shown on touch screen 612 Object can be the icon of running game, the icon for being networked to corresponding network etc..It is worth noting that equipment can also include light Mouse, light mouse are the extensions for the touch sensitive surface for not showing the touch sensitive surface visually exported, or formed by touch screen.
RF circuit 605 is mainly used for establishing the communication of mobile phone Yu wireless network (i.e. network side), realizes mobile phone and wireless network The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuit 605 receives and sends RF letter Number, RF signal is also referred to as electromagnetic signal, and RF circuit 605 converts electrical signals to electromagnetic signal or electromagnetic signal is converted to telecommunications Number, and communicated by the electromagnetic signal with communication network and other equipment.RF circuit 605 may include for executing The known circuit of these functions comprising but it is not limited to antenna system, RF transceiver, one or more amplifiers, tuner, one A or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identifier mould Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 606 is mainly used for receiving audio data from Peripheral Interface 603, which is converted to telecommunications Number, and the electric signal is sent to loudspeaker 611.
Loudspeaker 611 is reduced to sound for mobile phone to be passed through RF circuit 605 from the received voice signal of wireless network And the sound is played to user.
Power management chip 608, the hardware for being connected by CPU602, I/O subsystem and Peripheral Interface are powered And power management.
The effect for improving the downloading success rate of application program may be implemented in terminal provided by the embodiments of the present application.
It is arbitrarily real that the application can be performed in download apparatus, storage medium and the terminal of the application program provided in above-described embodiment The method for down loading for applying application program provided by example has and executes the corresponding functional module of this method and beneficial effect.Not upper The technical detail of detailed description in embodiment is stated, reference can be made to the downloading side of application program provided by the application any embodiment Method.
Preferred embodiment
In order to allow those skilled in the art to be more clear the understanding embodiment of the present invention provided by technical solution, this Inventive embodiments additionally provide preferred embodiment.
It is of the present invention in order to can guarantee that user can normally be downloaded in various network environments, by largely downloading reality It tramples, removes in the obstructed situation of network, can guarantee that user normally downloads APP substantially, mainly do the following:
By breakpoint transmission support pattern, the downloading of APP multithreading is realized, i.e., an APP can carry out piecemeal, according to difference Block respectively downloaded, finally assembled.
By test, largely downloading can download multiple user simultaneously, i.e., can disposably download multiple APP simultaneously, In the preferable situation of some network environments, while downloading and can maximally utilize network efficiency.
In most of company's routine office work desktop terminal, according to network environment locating for user, Intranet and outer can be divided into Net, while can support Intranet downloading and outer net downloading.
After initializing network environment, different networks, program first time load networks are selected according to different network environments Module has the configuration surroundings of a default, and according to downloading after the completion of, save a set of download policy more efficiently.
Download temporary file information cache, user by pause etc. operation, the cache information downloaded can be saved, when with After downloading is restored at family, is downloaded without restarting, but directly read information and be downloaded in nearest download information.
What the present invention was implemented is designed to provide user in application store downloading APP deduction raising APP downloading success rate, purport Still pass through assistant in the certain ad hoc network environment users of solution to download to obtain better user's downloading experience.
What the present invention was achieved when implementing, a kind of solution promoting downloading APP success rate, the method includes under State step:
After user completes to log in, according to the information of user, network environment belonging to user is judged, if it is outer net, directly Following downloading process is connect away, detecting is downloaded, initializes download policy, promote the best download efficiency of active user's environment.Just Beginningization process is as follows:
First, whether detection CDN downloading succeeds, if it is successful, successively former station, original station HTTPS, i.e. sequence are walked in downloading sequence Are as follows: CDN downloading, former station, former station HTTPS, Intranet agency.
Second, detection CDN downloading is unsuccessful, detects whether former station downloads success, and original station is downloaded successfully, then, successively walks original It stands downloading, i.e. sequence are as follows: original station, former station HTTPS, CDN downloading, Intranet agency.
Third, the former station downloading of detection is unsuccessful, detects whether original station HTTPS downloads success, and original station HTTPS is downloaded successfully, Then, former station HTTPS downloading, i.e. sequence are successively walked are as follows: original station HTTPS, CDN downloading, former station, Intranet agency.
If reading user configuration information, and judge that user is Intranet user, if so, obtaining Intranet application APP downloading Current download address prefix is passed through the internal address being matched to and replaced, and then is complete by server info if there is being matched to At downloading, i.e. sequence are as follows: Intranet agency, CDN downloading, former station, former station HTTPS.
In downloading process, whether detection service device supports breakpoint transmission, if supported, download policy is adjusted to multi-thread Journey downloading, initializes download information, to update and to cache in downloading process.
By user configuration, can be set to it is primary download maximum APP number simultaneously, be subject to no more than maximum value, when So need to consider computer overall performance, and the software performance for not applying user to do other operations when downloading.
In embodiments of the present invention, after user first switches on software, user can be allowed to log in, is completed by logging in After operation, it can judge whether user belongs to Intranet user and external network user according to pre-configured user information.
In the preferred embodiment, optionally, ordinary user logs in, and logins successfully, then is outer net login, if wrong Code returns, then is login failure.If error-free error code returns, proxy table in configuration file can be read, according to province Part coding is matched, if it fails to match, according to failure handling is logged in, if successful match, proxy server can be set It is set to programmatic agent to log on, if login failure, according to logging in failure handling;If logining successfully, Intranet configuration is called more New interface is locally configured using the configuration information update of return, latest configuration information is obtained, wherein comprising download server Location.
In the preferred embodiment, optionally, it logs in after completing, initialization downloading process.Frame is downloaded according to whole, Download policy is obtained, process is as follows, reads application and is pre-configured downloading URL, is downloaded process detection, sentences by intranet and extranet It is disconnected, it is downloaded according to different order, is such as judged as that outer net logs in, then uses: CDN downloading, former station, former station HTTPS, Intranet generation Reason is successively detected, and feasible program is selected to be downloaded.Such as it is judged as that Intranet logs in, then uses: Intranet is acted on behalf of, CDN is downloaded, Original station, former station HTTPS are successively detected, and feasible program is selected to be downloaded.After executing downloading, judge whether file is downloaded Success verifies file if success, determines that application program downloading is completed after verifying no problem, exits downloading process. If it is determined that file download fails, then Current protocols are judged it is necessary to enable single thread, if so, enabling the single line of Current protocols Journey mode is retried, if it is not, then judging whether that there are also alternatives then removes an alternative if there is alternative Multithreading downloading is attempted, if it is not, failed download, and exit downloading process.
In the preferred embodiment, optionally, after user completes initialization operation, a new application is downloaded, first It reads the downloading process detected in advance and is downloaded initialization operation, according to file size, judge whether to be downloaded with multithreading, If it is determined that multithreading, determines number of threads, determine that per thread is responsible for the data interval of downloading according to number of threads, under creating Temporary file is carried, multithreading downloading is opened, downloading is completed, and file name is modified, and size reports success message, and failure is then deleted Temporary file reports failed message.
In the preferred embodiment, optionally, after downloading initialization, setting original URL is current URL, obtains downloading file Length, if server response failure, whether network return code is 200, if it is not, further judge whether return code is 302, if Still it is not then to enter and retry, is more than number of retries, then is initialization failure, if it is 302, then obtains redirect address URL is that current URL is retried with this URL.If network return code is 200, file size is obtained, judges that file size is No is more than multithreading minimum piecemeal size, is downloaded if it is not, then directlying adopt single thread, if so, further judgement is worked as Whether preceding URL supports breakpoint transmission, if it is not, then being downloaded using single thread, if so, being downloaded using multithreading.
In the preferred embodiment, optionally, thread dividing strategy determines line according to file size and minimum piecemeal size Journey number obtains result N, is compared with single task maximum number, determines download thread number, if it is greater than maximum number, Remaining be placed in the strategy that waits for downloads waits for downloads.
Temporary file design is downloaded, by size, distributes filename, filling list information waits for downloads.Specifically , file size L, number of threads N, byte-sized T shared by download information structure download definitive document name F;Wherein, under Information carrying breath includes downloading starting (4B), and notebook data block size (4B), the size downloaded (4B), take up space 12B, is stored in this letter Breath is for breakpoint transmission auxiliary, the convenient breakpoint for finding last downloaded in breakpoint transmission;A file is established, name is F.dltmp (this name will be reduced to F after the download is complete), (4B is byte shared by a shaping number to file size=L+N*T+4B Number), file size will be revised as L after the download is complete;This temporary file is written in received data in entire downloading process In.
Temporary file trailer information is read in breakpoint transmission, the scene of last downloading is obtained, according to scene information and downloading The Comparative result of initialization continues to open thread downloading according to division information, if in vain, turned if temporary file is effective Enter normal flow, for example user cleans up part temporary file.
When user needs to suspend current downloading, each download thread information in downloader is traversed, saves downloading scene, Exit the mission thread for continuing all downloadings of the APP.When user, which needs to download, to restore, the lower information carrying of each sub thread is traversed Breath, judges whether this thread has been downloaded, if it is, skipping, if it is not, then this thread is opened, from breaking when last time pause Point starts to download.
If when Intranet user, start Intranet download policy, according to the location of user encode, matched from configuration whether There is APP server, if there is replacing former download address prefix, is then downloaded, if not provided, being compiled according to user's upper level area Whether code, matching from configuration has APP server, if so, replacing former download address prefix, is then downloaded, if do not had Have, failed download.
CDN downloading detection is carried out by fixed URL if detection is downloaded successfully to illustrate that the downloading side CDN can be used Formula carries out the downloading of application program, if it fails, then marking CDN obstructed, when user is downloaded application program, using place Other modes other than CDN downloading are downloaded.
This preferred embodiment has carried out further explanation and explanation, Ke Yiyou for technical solution provided by the present invention Understanding conducive to those skilled in the art to technical solution of the present invention, by using technical solution provided by the present embodiment, The effect of the downloading success rate of raising application program may be implemented.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. a kind of method for down loading of application program characterized by comprising
When terminal logs on to using store, judge the login mode of terminal, the login mode include: outer net landing approach and Intranet landing approach;
When receiving the downloading task of application program, according to the login mode judging result of terminal, download policy is determined;Its In, if being judged as outer net landing approach, the downloading of application program is carried out using the first download policy in download policy;Its In, the first download policy includes: that downloading mode priority is followed successively by CDN downloading, original station is downloaded, former station HTTPS is downloaded and interior Load off the net;If being judged as Intranet landing approach, the downloading of application program is carried out using the second download policy in download policy; Wherein, the second download policy includes: that downloading mode priority is followed successively by Intranet downloading, CDN downloading, former station downloading and former station HTTPS downloading.
2. the method according to claim 1, wherein being judged as outer net landing approach, then using in download policy The first download policy carry out application program downloading, comprising:
When being judged as outer net landing approach, judge that this logs in whether CDN downloading can be used;
If unavailable, successively attempt whether former station downloading, former station HTTPS downloading and Intranet downloading can be used;
If the downloading of original station, former station HTTPS downloading and Intranet downloading are all unavailable, application program failed download is returned.
3. according to the method described in claim 2, it is characterized in that, judging this login when being judged as outer net landing approach Whether CDN downloading can be used, comprising:
Open CDN downloading detection thread;The CDN downloading detection thread is downloaded by access preset URL, and using CDN;
If downloading successfully, it is determined that it is available that this logs in CDN downloading;
If failed download, it is determined that it is unavailable that this logs in CDN downloading.
4. described the method according to claim 1, wherein after receiving the downloading task of application program Method further include:
Whether the downloading task for judging the application program is breakpoint transmission task;
If so, reading the downloaded file information of application program;
Breakpoint transmission downloading is carried out according to the downloaded file information;
After the completion of downloading, judge whether breakpoint transmission downloading succeeds;If failed, to the downloading task of the application program into Row re-downloads.
5. according to the method described in claim 4, it is characterized in that, judging that the downloading task of the application program is continuous for breakpoint After biography task, the method also includes:
Whether the downloading task for judging the application program is multithreading downloading task;Wherein, the multithreading downloading task is At least two threads are downloaded the task of application program;
If so, reading the downloaded file information of application program, comprising: that reads the application program of per thread has descended published article Part information;
Breakpoint transmission downloading is carried out according to the downloaded file information, comprising:
According to the downloaded file information of the application program of the per thread, for do not complete the thread of thread downloading task into Row breakpoint transmission downloading;
After all threads complete thread downloading task, downloading temporary file is merged, and modify answering after merging File name is downloaded with program.
6. according to the method described in claim 4, it is characterized in that, whether being disconnected in the downloading task for judging the application program After point resumes task, the method also includes:
If it is not, then judging whether the downloading task of current application program supports multithreading to download;
If support, according to used thread downloading mode carry out application program downloading.
7. the method according to claim 1, wherein when the downloading mode of second download policy is interior off the net When load, application program is downloaded according to second download policy, comprising:
The Intranet city coding for obtaining user, judges whether there is and the matched city APK server of the downloading task of application program;
If it exists, then it by the address replacement downloading URL prefix of the city APK server, and is answered according to replaced address With the downloading of program;
If it does not exist, then the Intranet for obtaining user saves coding, judges whether there is matched with the downloading task of application program Province, city's APK server;If so, by the address of the province, city's APK server replacement downloading URL prefix, and according to replacement after Address carry out application program downloading.
8. a kind of download apparatus of application program characterized by comprising
Login mode determination module, for judging the login mode of terminal, the login side when terminal logs on to using store Formula includes: outer net landing approach and Intranet landing approach;
Download policy determining module, for being judged according to the login mode of terminal when receiving the downloading task of application program As a result, determining download policy;Wherein, if being judged as outer net landing approach, using the first download policy in download policy into The downloading of row application program;Wherein, the first download policy include: downloading mode priority be followed successively by CDN downloading, former station downloading, The HTTPS downloading of original station and Intranet downloading;If being judged as Intranet landing approach, using the second download policy in download policy Carry out the downloading of application program;Wherein, the second download policy includes: that downloading mode priority is followed successively by under Intranet downloading, CDN It carries, former station is downloaded and former station HTTPS downloading.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor The method for down loading such as application program of any of claims 1-7 is realized when row.
10. a kind of terminal, including memory, processor and storage are on a memory and can be in the computer journey of processor operation Sequence, which is characterized in that realize when the processor executes the computer program and answered as of any of claims 1-7 With the method for down loading of program.
CN201810916859.5A 2018-08-13 2018-08-13 A kind of method for down loading of application program, device, storage medium and terminal Pending CN109167820A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810916859.5A CN109167820A (en) 2018-08-13 2018-08-13 A kind of method for down loading of application program, device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810916859.5A CN109167820A (en) 2018-08-13 2018-08-13 A kind of method for down loading of application program, device, storage medium and terminal

Publications (1)

Publication Number Publication Date
CN109167820A true CN109167820A (en) 2019-01-08

Family

ID=64895658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810916859.5A Pending CN109167820A (en) 2018-08-13 2018-08-13 A kind of method for down loading of application program, device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN109167820A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110247951A (en) * 2019-05-08 2019-09-17 建信融通有限责任公司 A kind of file transfer control method, device, equipment and storage medium
CN110855639A (en) * 2019-10-29 2020-02-28 云深互联(北京)科技有限公司 Method, device and equipment for controlling login of intranet and extranet of browser
CN111212114A (en) * 2019-12-19 2020-05-29 网宿科技股份有限公司 A method and device for downloading resource files
CN111432033A (en) * 2020-04-22 2020-07-17 深信服科技股份有限公司 Application program downloading method, device and system, IOS equipment and medium
CN112165515A (en) * 2020-09-17 2021-01-01 国义招标股份有限公司 File storage method and system based on cloud server
CN112822241A (en) * 2020-12-31 2021-05-18 北京安博通科技股份有限公司 Method and device for realizing APP dynamic cache based on HTTPS protocol
CN113014443A (en) * 2019-12-19 2021-06-22 福建天泉教育科技有限公司 Method and system for testing whether CDN (content delivery network) resources hit cache
US11102272B2 (en) 2019-12-19 2021-08-24 Wangsu Science and Technology Co., Ltd. Method and device for downloading resource file
CN114625434A (en) * 2020-12-10 2022-06-14 华为技术有限公司 Address acquisition method and equipment
CN116405540A (en) * 2023-06-02 2023-07-07 腾讯科技(深圳)有限公司 Resource pre-downloading method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104967685A (en) * 2015-06-25 2015-10-07 广东德诚网络科技有限公司 Streaming media multi-level cache network acceleration method based on Flash P2P
CN104980478A (en) * 2014-05-28 2015-10-14 深圳市腾讯计算机系统有限公司 Cache sharing method, devices and system in content delivery network
US9292896B1 (en) * 2012-05-07 2016-03-22 Amazon Technologies, Inc. Watermarking media assets at the network edge
CN106161649A (en) * 2016-08-30 2016-11-23 常州云端网络科技股份有限公司 A kind of CDN intelligent dispatching method based on redirection mechanism
CN106941507A (en) * 2016-01-04 2017-07-11 中兴通讯股份有限公司 The dispatching method and device of request message
US20170244643A1 (en) * 2016-02-23 2017-08-24 Level 3 Communications, Llc Network flow control

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9292896B1 (en) * 2012-05-07 2016-03-22 Amazon Technologies, Inc. Watermarking media assets at the network edge
CN104980478A (en) * 2014-05-28 2015-10-14 深圳市腾讯计算机系统有限公司 Cache sharing method, devices and system in content delivery network
CN104967685A (en) * 2015-06-25 2015-10-07 广东德诚网络科技有限公司 Streaming media multi-level cache network acceleration method based on Flash P2P
CN106941507A (en) * 2016-01-04 2017-07-11 中兴通讯股份有限公司 The dispatching method and device of request message
US20170244643A1 (en) * 2016-02-23 2017-08-24 Level 3 Communications, Llc Network flow control
CN106161649A (en) * 2016-08-30 2016-11-23 常州云端网络科技股份有限公司 A kind of CDN intelligent dispatching method based on redirection mechanism

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
彭伟: "如何实现外网快速访问校园网", 《中国教育网络》 *

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110247951A (en) * 2019-05-08 2019-09-17 建信融通有限责任公司 A kind of file transfer control method, device, equipment and storage medium
CN110247951B (en) * 2019-05-08 2022-04-01 建信融通有限责任公司 File transmission control method, device, equipment and storage medium
CN110855639A (en) * 2019-10-29 2020-02-28 云深互联(北京)科技有限公司 Method, device and equipment for controlling login of intranet and extranet of browser
CN111212114B (en) * 2019-12-19 2021-08-27 网宿科技股份有限公司 Method and device for downloading resource file
CN111212114A (en) * 2019-12-19 2020-05-29 网宿科技股份有限公司 A method and device for downloading resource files
CN113014443A (en) * 2019-12-19 2021-06-22 福建天泉教育科技有限公司 Method and system for testing whether CDN (content delivery network) resources hit cache
US11102272B2 (en) 2019-12-19 2021-08-24 Wangsu Science and Technology Co., Ltd. Method and device for downloading resource file
CN111432033A (en) * 2020-04-22 2020-07-17 深信服科技股份有限公司 Application program downloading method, device and system, IOS equipment and medium
CN112165515A (en) * 2020-09-17 2021-01-01 国义招标股份有限公司 File storage method and system based on cloud server
CN114625434A (en) * 2020-12-10 2022-06-14 华为技术有限公司 Address acquisition method and equipment
WO2022121803A1 (en) * 2020-12-10 2022-06-16 华为技术有限公司 Address acquisition method, and device
CN114625434B (en) * 2020-12-10 2024-04-23 华为技术有限公司 Address acquisition method and device
CN112822241A (en) * 2020-12-31 2021-05-18 北京安博通科技股份有限公司 Method and device for realizing APP dynamic cache based on HTTPS protocol
CN112822241B (en) * 2020-12-31 2022-08-26 北京安博通科技股份有限公司 APP dynamic cache implementation method and device based on HTTPS protocol
CN116405540A (en) * 2023-06-02 2023-07-07 腾讯科技(深圳)有限公司 Resource pre-downloading method and device, electronic equipment and storage medium
CN116405540B (en) * 2023-06-02 2023-08-04 腾讯科技(深圳)有限公司 Resource pre-downloading method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109167820A (en) A kind of method for down loading of application program, device, storage medium and terminal
CN113014651B (en) Gray scale release method, application server and gray scale release system
KR102245025B1 (en) Memory return method and device
US10135923B2 (en) Data transfer method and system
CN102023973A (en) Method, device and system for synchronizing database with application cache server
US20150163280A1 (en) Method and device for downloading file
WO2015085706A1 (en) Method,terminal,and system for pushing information
EP3779690A1 (en) Processor core scheduling method and apparatus, terminal, and storage medium
CN108733797B (en) File processing method and related device
US9588757B2 (en) Data update method, user terminal, and data update system
CN112583903B (en) A service adaptive access method, device, electronic device and storage medium
CN116339954A (en) Process migration method and device, storage medium and electronic equipment
CN115801785A (en) Multi-user management method and device for cloud mobile phone, server and storage medium
US10203882B2 (en) Method for managing multiple bandwidth boost solutions co-existing in an electronic device
CN115905742A (en) A data display method, device, equipment and storage medium
CN114257532A (en) Server side state detection method and device
CN112583661A (en) Method and device for sharing different networks, storage medium and all-in-one machine equipment
CN112199176A (en) Service processing method, device and related equipment
CN117056198A (en) Mock test method, mock test device, medium and computer equipment
CN109639704B (en) A kind of master-slave mode server system application method, system, server and storage medium
CN114675872A (en) Data processing method, device and equipment for application program and storage medium
CN115881116A (en) Interface control method and device, electronic equipment and computer readable storage medium
CN115373865A (en) Concurrent thread management method, device, electronic equipment and storage medium
CN107147712B (en) Update the method and device of web application
CN112131505A (en) Data storage processing method, device, storage medium and electronic device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190108