CN104881304B - Resource downloading method and device - Google Patents

Resource downloading method and device Download PDF

Info

Publication number
CN104881304B
CN104881304B CN201510240549.2A CN201510240549A CN104881304B CN 104881304 B CN104881304 B CN 104881304B CN 201510240549 A CN201510240549 A CN 201510240549A CN 104881304 B CN104881304 B CN 104881304B
Authority
CN
China
Prior art keywords
resource
download
download address
address
terminal
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.)
Active
Application number
CN201510240549.2A
Other languages
Chinese (zh)
Other versions
CN104881304A (en
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.)
Xiaomi Inc
Original Assignee
Xiaomi 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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510240549.2A priority Critical patent/CN104881304B/en
Publication of CN104881304A publication Critical patent/CN104881304A/en
Application granted granted Critical
Publication of CN104881304B publication Critical patent/CN104881304B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The disclosure is directed to a kind of resource downloading method and devices, belong to network technique field.Method includes:The transfer download address of resources to be downloaded is provided, there are resources to be downloaded multiple version resources, transfer download address to be used to provide the actual download address of multiple version resources;When detecting that transfer download address is selected, resource download request is generated, the OS Type of local terminal is at least carried in resource download request;Resource download request is sent to transfer download address so that the corresponding transfer server returning response message of transfer download address, response message carry the actual download address obtained according to the OS Type of local terminal;When receiving response message, corresponding version resource is downloaded from actual download address.The disclosure avoids user because other version resources are mistakenly downloaded in maloperation by showing a download address, the resource for ensureing to download can normal operation while, save Internet resources.

Description

Resource downloading method and device
Technical field
This disclosure relates to network technique field more particularly to a kind of resource downloading method and device.
Background technology
In order to satisfy the use demand, user can install various applications in the terminal, for example, audio plays application, regards Frequency plays application, photograph application, short message application etc..These are being installed in application, user usually requires to download from the Internet accordingly Software installation packet, and then installed according to the Operating Guideline of software installation packet.
In practical applications, since there is different mobile terminals different operating system, different operating system to be propped up The application version held is also different, therefore, to make to have the mobile terminal of different operating system can run the same application, One application usually has multiple versions, and each version corresponds to a download address when downloading.When user needs to install In application, the application version number that user's needs are supported according to local terminal, the multiple downloads shown from mobile terminal display interface In location, the corresponding download address of the application version number is chosen, and then the application is downloaded by the download address.
In above-mentioned downloading process, due to the multiple download address shown on mobile terminal display interface, if user because Maloperation mistakenly has chosen other download address, not only the application of download can be made to be unable to operate normally, but also can waste net Network resource.
Invention content
To overcome the problems in correlation technique, a kind of resource downloading method of disclosure offer and device.
According to the first aspect of the embodiments of the present disclosure, a kind of resource downloading method is provided, the method includes:
The transfer download address of resources to be downloaded is provided, the resources to be downloaded have multiple version resources, the transfer Download address is used to provide the actual download address of the multiple version resource;
When detecting that the transfer download address is selected, resource download request is generated, in the resource download request extremely The OS Type of local terminal is carried less;
The resource download request is sent to the transfer download address so that the corresponding transfer of the transfer download address Server returning response message, the response message is with carrying the actual download obtained according to the OS Type of the local terminal Location;
When receiving the response message, corresponding version resource is downloaded from the actual download address.
Optionally, the transfer download address that resources to be downloaded are provided, including:
The transfer download address of the resources to be downloaded is shown on display interface;Alternatively,
Download button is shown on display interface, the download button is for jumping under the transfer of the resources to be downloaded Set address.
Optionally, the operating system version number of local terminal is also carried in the resource download request.
Optionally, described to download corresponding version resource from the actual download address, including:
Resource download request is sent to the corresponding download server in the actual download address so that the download server It obtains the corresponding version resource of the resource download request and returns;
Receive the version resource that the resource downloading server returns.
According to the second aspect of the embodiment of the present disclosure, a kind of resource downloading method is provided, the method includes:
The resource download request that terminal is sent is received, the operation system of the terminal is at least carried in the resource download request System type, the resource download request generate when detecting that the transfer download address of resources to be downloaded is selected for the terminal, There are the resources to be downloaded multiple version resources, the transfer download address to be used to provide the reality of the multiple version resource Download address;
From the correspondence between pre-stored OS Type and download address, the operation of the terminal is obtained The corresponding actual download address of system type;
To the terminal returning response message so that the terminal downloads corresponding version money from the actual download address Source.
Optionally, in the correspondence between pre-stored OS Type and download address, institute is obtained Before the corresponding actual download address of OS Type for stating terminal, further include:
Setting interface is provided, the setting interface includes the reality corresponding to multiple version resources of each resources to be downloaded The OS Type that download address and each version resource are applicable in;
According to the setting operation on the setting interface, pair between OS Type and actual download address is set It should be related to.
Optionally, the operating system version number of the terminal is also carried in the resource download request;
After the corresponding actual download address of OS Type for obtaining the terminal, further include:
If the corresponding actual download address of the OS Type of the terminal is multiple, according to the operating system Version number chooses target actual download address from multiple actual download addresses.
According to the third aspect of the embodiment of the present disclosure, a kind of terminal is provided, the terminal includes:
Download address provides module, the transfer download address for providing resources to be downloaded, and the resources to be downloaded have Multiple version resources, the transfer download address are used to provide the actual download address of the multiple version resource;
Module is requested to generate, it is described for when detecting that the transfer download address is selected, generating resource download request The OS Type of local terminal is at least carried in resource download request;
Request sending module, for sending the resource download request to the transfer download address so that the transfer The corresponding transfer server returning response message of download address, the response message carry the operating system class according to the local terminal The actual download address that type obtains;
Resource downloading module, for when receiving the response message, corresponding version to be downloaded from the actual download address This resource.
Optionally, the download address provides module, the transfer for showing the resources to be downloaded on display interface Download address;Alternatively, the download address provides module, for showing download button, the download button on display interface Transfer download address for jumping to the resources to be downloaded.
Optionally, the operating system version number of local terminal is also carried in the resource download request.
Optionally, the resource downloading module, for sending money to the corresponding download server in the actual download address Download request in source so that the download server obtains the corresponding version resource of the resource download request and returns;Receive institute State the version resource of resource downloading server return.
According to the fourth aspect of the embodiment of the present disclosure, a kind of transfer server is provided, the transfer server includes:
Request receiving module, the resource download request for receiving terminal transmission are at least taken in the resource download request OS Type with the terminal, the resource download request are that the terminal detects that the transfer of resources to be downloaded is downloaded Address generates when selected, and the resources to be downloaded have multiple version resources, the transfer download address described for providing The actual download address of multiple version resources;
Address acquisition module is used for from the correspondence between pre-stored OS Type and download address, Obtain the corresponding actual download address of OS Type of the terminal;
Message returns to module, is used for the terminal returning response message so that the terminal is from the actual download Download corresponding version resource in location.
Optionally, the transfer server further includes:
Page provided module is set, and for providing setting interface, the setting interface includes the more of each resources to be downloaded The OS Type that actual download address and each version resource corresponding to a version resource are applicable in;
Setup module is used to, according to the setting operation on the setting interface, be arranged under OS Type and reality Correspondence between set address.
Optionally, the operating system version number of the terminal is also carried in the resource download request;
The transfer server further includes:
Destination address acquisition module, for being multiple when the corresponding actual download address of OS Type of the terminal When, according to the operating system version number, from multiple actual download addresses, choose target actual download address.
According to a fifth aspect of the embodiments of the present disclosure, a kind of resource downloading device is provided, including:
Processor;
The instruction executable for storing processor;
Wherein, the processor is configured as:
The transfer download address of resources to be downloaded is provided, the resources to be downloaded have multiple version resources, the transfer Download address is used to provide the actual download address of the multiple version resource;
When detecting that the transfer download address is selected, resource download request is generated, in the resource download request extremely The OS Type of local terminal is carried less;
The resource download request is sent to the transfer download address so that the corresponding transfer of the transfer download address Server returning response message, the response message is with carrying the actual download obtained according to the OS Type of the local terminal Location;
When receiving the response message, corresponding version resource is downloaded from the actual download address.
According to the 6th of the embodiment of the present disclosure the aspect, a kind of resource downloading device is provided, including:
Processor;
The instruction executable for storing processor;
Wherein, the processor is configured as:
The resource download request that terminal is sent is received, the operation system of the terminal is at least carried in the resource download request System type, the resource download request generate when detecting that the transfer download address of resources to be downloaded is selected for the terminal, There are the resources to be downloaded multiple version resources, the transfer download address to be used to provide the reality of the multiple version resource Download address;
From the correspondence between pre-stored OS Type and download address, the operation of the terminal is obtained The corresponding actual download address of system type;
To the terminal returning response message so that the terminal downloads corresponding version money from the actual download address Source.
The technical scheme provided by this disclosed embodiment can include the following benefits:
By sending resource download request to the transfer download address of resources to be downloaded, actual download address is obtained, in turn Corresponding version resource is downloaded from the actual download address.Since the process shows a download only on the display interface of terminal Address avoids user because other version resources are mistakenly downloaded in maloperation, is capable of normal operation in the resource that guarantee is downloaded Meanwhile saving Internet resources.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not The disclosure can be limited.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of resource downloading method shown according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of resource downloading method shown according to an exemplary embodiment.
Fig. 3 is a kind of flow chart of resource downloading method shown according to an exemplary embodiment.
Fig. 4 is a kind of structural schematic diagram of terminal shown according to an exemplary embodiment.
Fig. 5 is a kind of structural schematic diagram of transfer server shown according to an exemplary embodiment.
Fig. 6 is a kind of block diagram of the device of terminal shown according to an exemplary embodiment.
Fig. 7 is a kind of block diagram of the device of server shown according to an exemplary embodiment.
Specific implementation mode
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of resource downloading method shown according to an exemplary embodiment, as shown in Figure 1, resource Method for down loading is used in terminal, is included the following steps.
In a step 101, the transfer download address of resources to be downloaded is provided, resources to be downloaded have multiple version resources, Transfer download address is used to provide the actual download address of multiple version resources.
In a step 102, when detecting that transfer download address is selected, resource download request, resource download request are generated In at least carry the OS Type of local terminal.
In step 103, resource download request is sent to transfer download address so that the corresponding transfer of transfer download address Server returning response message, response message carry the actual download address obtained according to the OS Type of local terminal.
At step 104, when receiving response message, corresponding version resource is downloaded from actual download address.
The method that the embodiment of the present disclosure provides is asked by sending resource downloading to the transfer download address of resources to be downloaded It asks, obtains actual download address, and then corresponding version resource is downloaded from the actual download address.Since the process is only in terminal Display interface on show a download address, avoid user because other version resources are mistakenly downloaded in maloperation, ensureing The resource of download can normal operation while, save Internet resources.
In another embodiment of the disclosure, the transfer download address of resources to be downloaded is provided, including:
The transfer download address of resources to be downloaded is shown on display interface;Alternatively,
Show that download button, download button are used to jump to the transfer download address of resources to be downloaded on display interface.
In another embodiment of the disclosure, the operating system version number of local terminal is also carried in resource download request.
In another embodiment of the disclosure, corresponding version resource is downloaded from actual download address, including:
Resource download request is sent to the corresponding download server in actual download address so that download server obtains resource It downloads and asks corresponding version resource and return;
Receive the version resource that resource downloading server returns.
The alternative embodiment that any combination forms the disclosure may be used, herein no longer in above-mentioned all optional technical solutions It repeats one by one.
Fig. 2 is a kind of flow chart of resource downloading method shown according to an exemplary embodiment, as shown in Fig. 2, resource Method for down loading is used in transfer server, is included the following steps.
In step 201, the resource download request that terminal is sent is received, at least behaviour of carried terminal in resource download request Make system type, resource download request is generated when detecting that the transfer download address of resources to be downloaded is selected for terminal, waited for down Carrying resource, there are multiple version resources, transfer download address to be used to provide the actual download address of multiple version resources.
In step 202, it from the correspondence between pre-stored OS Type and download address, obtains eventually The corresponding actual download address of OS Type at end.
In step 203, to terminal returning response message so that terminal downloads corresponding version money from actual download address Source.
The method that the embodiment of the present disclosure provides, the transfer download address by receiving resources to be downloaded send resource downloading and ask It asks, obtains actual download address, and then the actual download address got is sent to terminal, from the actual download by terminal Download corresponding version resource in location.Since the process shows a download address only on the display interface of terminal, use is avoided Family because other version resources are mistakenly downloaded in maloperation, ensure download resource can normal operation while, save net Network resource.
It is corresponding between pre-stored OS Type and download address in another embodiment of the disclosure In relationship, before the corresponding actual download address of OS Type for obtaining terminal, further include:
Setting interface is provided, setting interface includes the actual download corresponding to multiple version resources of each resources to be downloaded The OS Type that address and each version resource are applicable in;
According to the setting operation on setting interface, the corresponding pass between OS Type and actual download address is set System.
The operating system version number of carried terminal is gone back in another embodiment of the disclosure, in resource download request;
After the corresponding actual download address of OS Type for obtaining terminal, further include:
If the corresponding actual download address of the OS Type of terminal is multiple, according to operating system version number, From multiple actual download addresses, target actual download address is chosen.
The alternative embodiment that any combination forms the disclosure may be used, herein no longer in above-mentioned all optional technical solutions It repeats one by one.
Fig. 3 is a kind of flow chart of resource downloading method shown according to an exemplary embodiment, as shown in figure 3, resource Method for down loading is in terminal and transfer server, including the following steps.
In step 301, terminal provides the transfer download address of resources to be downloaded.
Wherein, terminal can be the equipment with function of surfing the Net such as smart mobile phone, tablet computer, and the present embodiment is not to terminal Product type make specific limit.Resources to be downloaded can be software installation packet, picture, audio file, the video text of application Part etc..Since different terminals has different operating system, the version for the resources to be downloaded that different operating system is supported Resource is also different, therefore, to make to have the terminal of different operating system can run the same application, playing same audio text Part or video file etc., each resources to be downloaded usually have multiple version resources, these version resources are by development of resources person point It is dealt into different download servers to be stored, so as to quickly and conveniently carry out the distribution of resource and share.Each version at this time This resource can all correspond to an actual download address, when user needs to obtain a certain version resource, need to obtain version money The corresponding actual download address in source, and then downloaded from the corresponding download server in actual download address.
In order to improve the validity for downloading resource, in the present embodiment, terminal will provide one for each resources to be downloaded Transfer download address, the transfer download address are configured by transfer server, can be used for providing the reality of multiple version resources Download address.Wherein, transfer download address has diversified forms, can be URL (Uniform Resource Locator, system One Resource Locator) etc. forms.
The mode of the transfer download address of resources to be downloaded, including but not limited to the following two kinds mode are provided about terminal:
First way:Terminal shows the transfer download address of resources to be downloaded on display interface.
For this kind of mode, the transfer download address of resources to be downloaded is included directly working as inspection on display interface by terminal This is measured after transfer download address and after choosing, can jump to and download page progress resource downloading.
The second way:Terminal shows download button on display interface.
In order to optimize screen display content, terminal can show download button on screen display interface, without directly displaying The transfer download address of resources to be downloaded, when detecting that download button is selected, the transfer that can jump to resources to be downloaded is downloaded Address, so download the page on carry out resource download.The form of the download button can be form of icons menu-style etc..
In step 302, when detecting that transfer download address is selected, terminal generates resource download request, under the resource Carry the OS Type that local terminal is at least carried in request.
Transfer download address based on the resources to be downloaded provided is used when user wants to obtain the resources to be downloaded Family can execute the transfer download address of the resources to be downloaded and choose operation, for example, in directly being shown in touch display interface Turn download address or download button, alternatively, choosing the transfer shown on display interface to download by manipulating the equipment such as keyboard, mouse Address or download button etc..
When detecting user to transfer download address when choosing operation, under the triggering for choosing operation, terminal produces Resource download request, at least OS Type of carried terminal in the resource download request.In practical applications, operating system Type have Android system, apple system and microsoft system etc., the operating system being typically different have different system banners, For example, the system banner of Android system can be andriod, the system banner of Apple Macintosh operating system can be ios, Microsoft's operation The system banner of system can be windows etc..The OS Type of different terminals is carried out for the ease of transfer server It identifies, the system banner of portable OS Type in the resource download request that terminal is generated.For example, if terminal OS Type is Android system, then the system banner andriod of Android system can be carried in the resource download request generated; If the system operatio type of terminal is Apple Macintosh operating system, Apple Macintosh operating system can be carried in the resource download request generated System banner ios etc..
In addition, in order to improve the experience of user, software developer constantly each operating system can be carried out it is perfect, this Sample, each operating system can have multiple versions.Since the version of the resources to be downloaded of the operating system support of different editions can Energy can be different, therefore, in order to accurately determine applicable version resource by terminal, improve operation of the download resource in terminal Effect, terminal in the resource download request of generation, can also carried terminal operating system version number.For example, if terminal Operating system is Android system, and system version number is 4.2.1, then the system banner of Android system can be carried in resource download request Andriod and system version 4.2.1.
In practical applications, the resource download request that terminal generates is essentially that terminal and transfer server are identifiable Operation code, the information entrained by resource download request that terminal generates are typically added to User-Agent pairs of the operation code In the value answered.
In step 303, terminal sends resource download request to the corresponding transfer server of transfer download address.
Terminal in the present embodiment has network connecting function, is based on the function, after generating resource download request, eventually The resource download request of generation can be sent to the corresponding transfer of transfer download address by cable network or wireless network and taken by end Business device.
In step 304, when the resource download request for receiving terminal transmission, transfer server is from pre-stored operation In correspondence between type of uniting and download address, the corresponding actual download address of OS Type of terminal is obtained.
In the present embodiment, transfer download address is not the actual download address of resources to be downloaded, only for the purposes of with A set transfer address of family operation, in order to make the terminal of different operating system that can get required resource, this reality Apply example offer method also need to be on transfer server each resources to be downloaded each version resource setting operating system Correspondence between type and download address.When specific setting, transfer server needs to provide a setting interface, Yong Hugen According to corresponding to each version resource actual download address and the OS Type that is applicable in of each version resource, on setting circle Operation is configured on face, transfer server detects setting operation of the user on setting interface, and then is being arranged according to user Setting operation on interface, is arranged the correspondence between OS Type and download address.Wherein, it is arranged on interface at least Actual download address corresponding to multiple version resources including each resources to be downloaded, and each version resource are applicable in OS Type.
It should be noted that the correspondence between the OS Type and download address of above-mentioned setting is not one by one Correspondence, if multiple download address of resources to be downloaded are suitable for the same OS Type, transfer server exists When correspondence between OS Type and download address is set, these download address can be all arranged to the same operation system System type.In addition, for correspondence between the OS Type and download address of one resources to be downloaded of above-mentioned setting It illustrates, for other resources to be downloaded, aforesaid way can be used and be configured, details are not described herein again.
For the ease of subsequent application, after provided with the correspondence between OS Type and download address, Method provided in this embodiment is also by the correspondence between storage program area type and download address.Specifically, it is storing It, can will be between the OS Type and download address of setting when correspondence between OS Type and download address Correspondence is stored in the storage mediums such as memory, flash memory, and the present embodiment does not limit this specifically.To use form For correspondence between storage program area type and download address, for resources to be downloaded A, if resources to be downloaded A There are four version resource, respectively version resource a, version resource b, version resource c and version resource d, wherein version resource for tool The operating system that a is supported is Android system, and the actual download address of version resource a is http://www.xiazaidizhia, Version resource b supports that operating system is apple system, and the actual download address of version resource b is http:// Www.xiazaidizhib, the operating system that version resource c is supported are windows operating systems, and under the reality of version resource c Set address is http:The operating system that //www.xiazaidizhic, version resource d are supported is Android system, and version resource d Actual download address be http://www.xiazaidizhid, then the OS Type of the resources to be downloaded A of storage with When correspondence between download address, it can be used such as the following table 1.
Table 1
When receiving the resource download request of terminal transmission, transfer server needs first ask the resource downloading received It asks and is parsed, by being parsed to resource download request, terminal can obtain terminal from the corresponding value of User-Agent The system banner of the operating system of support.For example, the resource download request that terminal receives is:User-Agent:Mozilla/ 5.0(Linux;Android 4.2.1;en-us;Nexus 4Build/JOP40D)AppleWebKit/535.19(KHTML, Like Gecko) Chrome/18.0.1025.166Mobile Safari/535.19, by asking to carry out to the resource acquisition Parsing, terminal can obtain the operating system Android of terminal support from value.System based on the operating system got Mark, transfer server can get resource from the correspondence between the OS Type and download address of storage Download the corresponding actual download address of OS Type entrained in request.
In another embodiment of the disclosure, if going back the operation of carried terminal in the resource download request that terminal is sent System version number, then after the corresponding actual download address of OS Type for obtaining terminal, terminal can also be according to operation System version number and the quantity for getting actual download address therefrom choose target actual download address.If the operation of terminal The corresponding actual download address of system type is one, then will obtain big actual download address as target actual download Location;If the corresponding actual download address of the OS Type of terminal is multiple, transfer server can be according to operating system Version number chooses target actual download address, which is terminal sheet from multiple actual download addresses The final download address of secondary download.Certainly, if terminal send resource download request in non-carried terminal operating system version This number, and the corresponding actual download address of the OS Type of terminal be it is multiple when, then transfer server can be from multiple reality Newest version resource is chosen in the corresponding version resource of download address, and by the corresponding actual download of newest version resource Location is as target actual download address.
In step 305, transfer server is to terminal returning response message.
To enable the terminals to get required resource, transfer server also returns to a response message, the response to terminal Message carries the actual download address obtained according to the OS Type of terminal.
Within step 306, when receiving response message, terminal downloads corresponding version resource from actual download address.
Based on the response message received, terminal can download corresponding version resource from actual download address.Specifically, Terminal needs first to send resource download request to the corresponding download server in actual download address, and download server is in resource downloading When request, the corresponding version resource of resource download request is obtained, and the version resource got is returned into terminal, which is The resource downloaded according to actual download address for terminal.
Above-mentioned transfer server be the actual download address of resource needed for terminal is chosen process and terminal under reality Set address sends the process of resource download request, and user does not simply fail to perceive, and without artificially being done to the above process In advance, thus operating experience effect is improved.
The method that the embodiment of the present disclosure provides is asked by sending resource downloading to the transfer download address of resources to be downloaded It asks, obtains actual download address, and then corresponding version resource is downloaded from the actual download address.Since the process is only in terminal Display interface on show a download address, avoid user because other version resources are mistakenly downloaded in maloperation, ensureing The resource of download can normal operation while, save Internet resources.
Fig. 4 is a kind of structural schematic diagram of terminal shown according to an exemplary embodiment.With reference to Fig. 4, which includes: Download address provides module 401, requests to generate module 402, request sending module 403 and resource downloading module 404.
The download address provides the transfer download address that module 401 is configured to supply resources to be downloaded, resources to be downloaded With multiple version resources, transfer download address is used to provide the actual download address of multiple version resources;
This requests to generate module 402 and is configured as, when detecting that transfer download address is selected, generating resource download request, The OS Type of local terminal is at least carried in resource download request;
The request sending module 403 is configured as sending resource download request to transfer download address so that transfer is downloaded The corresponding transfer server returning response message in address, response message carry the reality obtained according to the OS Type of local terminal Download address;
The resource downloading module 404 is configured as when receiving response message, and corresponding version is downloaded from actual download address This resource.
The download address provides module 405 and is configured as showing that the transfer of resources to be downloaded downloads ground on display interface Location;It is configured as showing download button on display interface alternatively, the download address provides module 405, download button is for jumping Go to the transfer download address of resources to be downloaded.
In another embodiment of the disclosure, the operating system version number of local terminal is also carried in resource download request.
In another embodiment of the disclosure, resource downloading module, for being taken to the corresponding download in actual download address Business device sends resource download request so that download server obtains the corresponding version resource of resource download request and simultaneously returns;It receives The version resource that resource downloading server returns.
The terminal that the embodiment of the present disclosure provides is asked by sending resource downloading to the transfer download address of resources to be downloaded It asks, obtains actual download address, and then corresponding version resource is downloaded from the actual download address.Since the process is only in terminal Display interface on show a download address, avoid user because other version resources are mistakenly downloaded in maloperation, ensureing The resource of download can normal operation while, save Internet resources.
About the terminal in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 5 is a kind of structural schematic diagram of transfer server shown according to an exemplary embodiment.With reference to Fig. 5, in this Turning server includes:Request receiving module 501, address acquisition module 502, message return to module 503.
The request receiving module 501 is configured as receiving the resource download request that terminal is sent, in resource download request extremely The OS Type of few carried terminal, resource download request are that terminal detects that the transfer download address of resources to be downloaded is selected It is generated when middle, there are resources to be downloaded multiple version resources, transfer download address to be used to provide under the reality of multiple version resources Set address;
The address acquisition module 502 is configured as corresponding between pre-stored OS Type and download address In relationship, the corresponding actual download address of OS Type of terminal is obtained;
The message returns to module 503 and is configured as to terminal returning response message so that terminal is under actual download address Carry corresponding version resource.
In another example of the disclosure, which further includes:Page provided module and setting mould are set Block.
The setting page provided module is configured to supply setting interface, and setting interface includes the more of each resources to be downloaded The OS Type that actual download address and each version resource corresponding to a version resource are applicable in;
The setup module is configured as, according to the setting operation on setting interface, being arranged under OS Type and reality Correspondence between set address.
The operating system version number of carried terminal is gone back in another embodiment of the disclosure, in resource download request;
The transfer server further includes:Destination address acquisition module.
The destination address acquisition module is configured as when the corresponding actual download address of OS Type of terminal being more When a, according to operating system version number, from multiple actual download addresses, target actual download address is chosen.
The transfer server that the embodiment of the present disclosure provides, the transfer download address by receiving resources to be downloaded send resource Request is downloaded, obtains actual download address, and then the actual download address got is sent to terminal, by terminal from the reality Download address downloads corresponding version resource.Since the process shows a download address only on the display interface of terminal, keep away Exempted from user because other version resources are mistakenly downloaded in maloperation, the resource for ensureing to download can normal operation while, section Internet resources are saved.
About the transfer server in above-described embodiment, wherein modules execute the concrete mode of operation related It is described in detail in the embodiment of this method, explanation will be not set forth in detail herein.
Fig. 6 is a kind of block diagram of device 600 for resource downloading shown according to an exemplary embodiment.For example, dress It can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, medical treatment to set 600 Equipment, body-building equipment, personal digital assistant etc..
With reference to Fig. 6, device 600 may include following one or more components:Processing component 602, memory 604, power supply Component 606, multimedia component 608, audio component 610, input/output (I/O) interface 612, sensor module 614, Yi Jitong Believe component 616.
The integrated operation of 602 usual control device 600 of processing component, such as with display, call, data communication, phase Machine operates and record operates associated operation.Processing component 602 may include that one or more processors 620 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 602 may include one or more modules, just Interaction between processing component 602 and other assemblies.For example, processing component 602 may include multi-media module, it is more to facilitate Interaction between media component 608 and processing component 602.
Memory 604 is configured as storing various types of data to support the operation in device 600.These data are shown Example includes instruction for any application program or method that are operated on device 600, contact data, and telephone book data disappears Breath, picture, video etc..Memory 604 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 606 provides electric power for the various assemblies of device 600.Power supply module 606 may include power management system System, one or more power supplys and other generated with for device 600, management and the associated component of distribution electric power.
Multimedia component 608 is included in the screen of one output interface of offer between described device 600 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 608 includes a front camera and/or rear camera.When device 600 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 610 is configured as output and/or input audio signal.For example, audio component 610 includes a Mike Wind (MIC), when device 600 is in operation mode, when such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The received audio signal can be further stored in memory 604 or via communication set Part 616 is sent.In some embodiments, audio component 610 further includes a loud speaker, is used for exports audio signal.
I/O interfaces 612 provide interface between processing component 602 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor module 614 includes one or more sensors, and the state for providing various aspects for device 600 is commented Estimate.For example, sensor module 614 can detect the state that opens/closes of device 600, and the relative positioning of component, for example, it is described Component is the display and keypad of device 600, and sensor module 614 can be with 600 1 components of detection device 600 or device Position change, the existence or non-existence that user contacts with device 600,600 orientation of device or acceleration/deceleration and device 600 Temperature change.Sensor module 614 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 614 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 616 is configured to facilitate the communication of wired or wireless way between device 600 and other equipment.Device 600 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or combination thereof.In an exemplary implementation In example, communication component 616 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 616 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 600 can be believed by one or more application application-specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, it includes the non-transitorycomputer readable storage medium instructed, example to additionally provide a kind of Such as include the memory 604 of instruction, above-metioned instruction can be executed by the processor 620 of device 600 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminal When device executes so that mobile terminal is able to carry out a kind of resource downloading method, the method includes:
The transfer download address of resources to be downloaded is provided, resources to be downloaded have multiple version resources, transfer download address Actual download address for providing multiple version resources;
When detecting that transfer download address is selected, resource download request is generated, this is at least carried in resource download request The OS Type at end;
Resource download request is sent to transfer download address so that the corresponding transfer server of transfer download address, which returns, to be rung Message, response message is answered to carry the actual download address obtained according to the OS Type of local terminal;
When receiving response message, corresponding version resource is downloaded from actual download address.
In another embodiment of the disclosure, the transfer download address of resources to be downloaded is provided, including:
The transfer download address of resources to be downloaded is shown on display interface;Alternatively,
Show that download button, download button are used to jump to the transfer download address of resources to be downloaded on display interface.
In another embodiment of the disclosure, the operating system version number of local terminal is also carried in resource download request.
In another embodiment of the disclosure, corresponding version resource is downloaded from actual download address, including:
Resource download request is sent to the corresponding download server in actual download address so that download server obtains resource It downloads and asks corresponding version resource and return;
Receive the version resource that resource downloading server returns.
The non-transitorycomputer readable storage medium that the embodiment of the present disclosure provides, by under the transfer to resources to be downloaded Set address sends resource download request, obtains actual download address, and then download corresponding version money from the actual download address Source.Since the process shows a download address only on the display interface of terminal, user is avoided because under maloperation mistakenly Carry other version resources, ensure download resource can normal operation while, save Internet resources.
Fig. 7 is a kind of block diagram of device 700 for resource downloading shown according to an exemplary embodiment.For example, dress It sets 700 and may be provided as a server.With reference to Fig. 7, device 700 includes processing component 722, further comprises one or more A processor, and by the memory resource representated by memory 732, it can be by the finger of the execution of processing component 722 for storing It enables, such as application program.The application program stored in memory 732 may include it is one or more each correspond to The module of one group of instruction.In addition, processing component 722 is configured as executing instruction, to execute above method resource downloading method.
The resource download request that terminal is sent is received, at least OS Type of carried terminal in resource download request, Resource download request generates when detecting that the transfer download address of resources to be downloaded is selected for terminal, and resources to be downloaded have more A version resource, transfer download address are used to provide the actual download address of multiple version resources;
From the correspondence between pre-stored OS Type and download address, the operating system of terminal is obtained The corresponding actual download address of type;
To terminal returning response message so that terminal downloads corresponding version resource from actual download address.
It is corresponding between pre-stored OS Type and download address in another embodiment of the disclosure In relationship, before the corresponding actual download address of OS Type for obtaining terminal, further include:
Setting interface is provided, setting interface includes the actual download corresponding to multiple version resources of each resources to be downloaded The OS Type that address and each version resource are applicable in;
According to the setting operation on setting interface, the corresponding pass between OS Type and actual download address is set System.
The operating system version number of carried terminal is gone back in another embodiment of the disclosure, in resource download request;
After the corresponding actual download address of OS Type for obtaining terminal, further include:
If the corresponding actual download address of the OS Type of terminal is multiple, according to operating system version number, From multiple actual download addresses, target actual download address is chosen.
Device 700 can also include the power management that a power supply module 726 is configured as executive device 700, and one has Line or radio network interface 750 are configured as device 700 being connected to network and input and output (I/O) interface 758.Dress Setting 700 can operate based on the operating system for being stored in memory 732, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
The device that the embodiment of the present disclosure provides, the transfer download address by receiving resources to be downloaded send resource downloading and ask It asks, obtains actual download address, and then the actual download address got is sent to terminal, from the actual download by terminal Download corresponding version resource in location.Since the process shows a download address only on the display interface of terminal, use is avoided Family because other version resources are mistakenly downloaded in maloperation, ensure download resource can normal operation while, save net Network resource.
Those skilled in the art will readily occur to its of the disclosure after considering specification and putting into practice disclosure disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and includes the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (14)

1. a kind of resource downloading method, which is characterized in that the method includes:
The transfer download address of resources to be downloaded is provided, there are the resources to be downloaded multiple version resources, the transfer to download Address is used to provide the actual download address of the multiple version resource;
When detecting that the transfer download address is selected, resource download request is generated, is at least taken in the resource download request OS Type with local terminal;
The resource download request is sent to the transfer download address so that the corresponding transfer service of the transfer download address Device is corresponding between pre-stored OS Type and actual download address according to the OS Type of the local terminal In relationship, the corresponding actual download address of OS Type of the terminal is obtained, and returning response message, the response disappear Breath carries the actual download address;
When receiving the response message, resource download request is sent to the corresponding download server in the actual download address, So that the download server obtains the corresponding version resource of the resource download request and returns;
Receive the version resource that the resource downloading server returns.
2. according to the method described in claim 1, it is characterized in that, the transfer download address for providing resources to be downloaded, packet It includes:
The transfer download address of the resources to be downloaded is shown on display interface;Alternatively,
Show that download button, the transfer that the download button is used to jump to the resources to be downloaded download ground on display interface Location.
3. according to the method described in claim 1, it is characterized in that, also carrying the operation system of local terminal in the resource download request Unite version number.
4. a kind of resource downloading method, which is characterized in that the method includes:
The resource download request that terminal is sent is received, the operating system class of the terminal is at least carried in the resource download request Type, the resource download request generates when detecting that the transfer download address of resources to be downloaded is selected for the terminal, described There are resources to be downloaded multiple version resources, the transfer download address to be used to provide the actual download of the multiple version resource Address;
In correspondence between pre-stored OS Type and actual download address, the operation of the terminal is obtained The corresponding actual download address of system type;
To the terminal returning response message, the response message carries the actual download address so that the terminal is to institute It states the corresponding download server in actual download address and sends resource download request, and receive what the resource downloading server returned The corresponding version resource of the resource download request.
5. according to the method described in claim 4, it is characterized in that, described under pre-stored OS Type and reality In correspondence between set address, before the corresponding actual download address of OS Type for obtaining the terminal, also wrap It includes:
Setting interface is provided, the setting interface includes the actual download corresponding to multiple version resources of each resources to be downloaded The OS Type that address and each version resource are applicable in;
According to the setting operation on the setting interface, the corresponding pass between OS Type and actual download address is set System.
6. according to the method described in claim 4, it is characterized in that, also carrying the behaviour of the terminal in the resource download request Make system version number;
After the corresponding actual download address of OS Type for obtaining the terminal, further include:
If the corresponding actual download address of the OS Type of the terminal is multiple, according to the operating system version Number, from multiple actual download addresses, choose target actual download address.
7. a kind of terminal, which is characterized in that the terminal includes:
Download address provides module, the transfer download address for providing resources to be downloaded, and the resources to be downloaded have multiple Version resource, the transfer download address are used to provide the actual download address of the multiple version resource;
Module is requested to generate, for when detecting that the transfer download address is selected, generating resource download request, the resource Download the OS Type that local terminal is at least carried in request;
Request sending module, for sending the resource download request to the transfer download address so that the transfer is downloaded The corresponding transfer server in address is according to the OS Type of the local terminal from pre-stored OS Type and reality In correspondence between download address, the corresponding actual download address of OS Type of the terminal is obtained, and is returned Response message, the response message carry the actual download address;
Resource downloading module is used for when receiving the response message, to the corresponding download server in the actual download address Send resource download request so that the download server obtains the corresponding version resource of the resource download request and returns; Receive the version resource that the resource downloading server returns.
8. terminal according to claim 7, which is characterized in that the download address provides module, in display interface The transfer download address of the upper display resources to be downloaded;Alternatively, the download address provides module, in display interface Show that download button, the download button are used to jump to the transfer download address of the resources to be downloaded.
9. terminal according to claim 7, which is characterized in that also carry the operation system of local terminal in the resource download request Unite version number.
10. a kind of transfer server, which is characterized in that the transfer server includes:
Request receiving module, the resource download request for receiving terminal transmission at least carry institute in the resource download request The OS Type of terminal is stated, the resource download request is the transfer download address that the terminal detects resources to be downloaded It is generated when selected, the resources to be downloaded have multiple version resources, the transfer download address the multiple for providing The actual download address of version resource;
Address acquisition module is used in the correspondence between pre-stored OS Type and actual download address, Obtain the corresponding actual download address of OS Type of the terminal;
Message returns to module, is used for the terminal returning response message, and the response message carries the actual download address, So that the terminal sends resource download request to the corresponding download server in the actual download address, and receive the resource The corresponding version resource of the resource download request that download server returns.
11. transfer server according to claim 10, which is characterized in that the transfer server further includes:
Page provided module is set, and for providing setting interface, the setting interface includes multiple versions of each resources to be downloaded The OS Type that actual download address and each version resource corresponding to this resource are applicable in;
Setup module, for according to the setting operation on the setting interface, setting OS Type to be with actual download Correspondence between location.
12. transfer server according to claim 10, which is characterized in that described in also being carried in the resource download request The operating system version number of terminal;
The transfer server further includes:
Destination address acquisition module is used for when the corresponding actual download address of the OS Type of the terminal is multiple, According to the operating system version number, from multiple actual download addresses, target actual download address is chosen.
13. a kind of resource downloading device, which is characterized in that including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
The transfer download address of resources to be downloaded is provided, there are the resources to be downloaded multiple version resources, the transfer to download Address is used to provide the actual download address of the multiple version resource;
When detecting that the transfer download address is selected, resource download request is generated, is at least taken in the resource download request OS Type with local terminal;
The resource download request is sent to the transfer download address so that the corresponding transfer service of the transfer download address Device is corresponding between pre-stored OS Type and actual download address according to the OS Type of the local terminal In relationship, the corresponding actual download address of OS Type of the terminal is obtained, and returning response message, the response disappear Breath carries the actual download address;
When receiving the response message, resource download request is sent to the corresponding download server in the actual download address, So that the download server obtains the corresponding version resource of the resource download request and returns;
Receive the version resource that the resource downloading server returns.
14. a kind of resource downloading device, which is characterized in that including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
The resource download request that terminal is sent is received, the operating system class of the terminal is at least carried in the resource download request Type, the resource download request generates when detecting that the transfer download address of resources to be downloaded is selected for the terminal, described There are resources to be downloaded multiple version resources, the transfer download address to be used to provide the actual download of the multiple version resource Address;
In correspondence between pre-stored OS Type and actual download address, the operation of the terminal is obtained The corresponding actual download address of system type;
To the terminal returning response message, the response message carries the actual download address so as under the reality The corresponding download server of set address sends resource download request, and receives the resource that the resource downloading server returns It downloads and asks corresponding version resource.
CN201510240549.2A 2015-05-13 2015-05-13 Resource downloading method and device Active CN104881304B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510240549.2A CN104881304B (en) 2015-05-13 2015-05-13 Resource downloading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510240549.2A CN104881304B (en) 2015-05-13 2015-05-13 Resource downloading method and device

Publications (2)

Publication Number Publication Date
CN104881304A CN104881304A (en) 2015-09-02
CN104881304B true CN104881304B (en) 2018-10-19

Family

ID=53948810

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510240549.2A Active CN104881304B (en) 2015-05-13 2015-05-13 Resource downloading method and device

Country Status (1)

Country Link
CN (1) CN104881304B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106131113B (en) * 2016-06-14 2019-08-02 武汉深之度科技有限公司 A kind of resource downloading method, device, system and Resource Server
CN106445597A (en) * 2016-09-28 2017-02-22 依偎科技(南昌)有限公司 Application download method, terminal, server and system
CN107147806B (en) * 2017-06-26 2020-05-29 北京金山安全软件有限公司 Application resource providing method, device and system
CN108196962B (en) * 2017-12-29 2020-09-08 杭州迪普科技股份有限公司 Method and device for realizing calling of interfaces of different versions
CN109375929A (en) * 2018-11-22 2019-02-22 东软集团股份有限公司 Installation kit generation method, device, storage medium and the equipment of Java web application
CN112927001A (en) * 2019-12-06 2021-06-08 北京多点在线科技有限公司 Resource link delivery method and device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102761623A (en) * 2012-07-26 2012-10-31 北京奇虎科技有限公司 Resource self-adaptive downloading method, system, data storage server and communication system
CN103078881A (en) * 2011-10-26 2013-05-01 腾讯科技(深圳)有限公司 Sharing control system and method for network resource downloading information

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103369002B (en) * 2012-03-30 2018-03-27 腾讯科技(深圳)有限公司 A kind of method and system of resource downloading

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103078881A (en) * 2011-10-26 2013-05-01 腾讯科技(深圳)有限公司 Sharing control system and method for network resource downloading information
CN102761623A (en) * 2012-07-26 2012-10-31 北京奇虎科技有限公司 Resource self-adaptive downloading method, system, data storage server and communication system

Also Published As

Publication number Publication date
CN104881304A (en) 2015-09-02

Similar Documents

Publication Publication Date Title
CN104881304B (en) Resource downloading method and device
EP2945058B1 (en) Processing method and device for application program
EP3070905B1 (en) Method and apparatus for binding device
CN104778063A (en) Method and device for updating resource
EP3276910B1 (en) Bluetooth-based identity recognition method and device
JP2016531360A (en) Method, apparatus, program and storage medium for saving storage space
CN105183513A (en) Application recommendation method and apparatus
CN104615655A (en) Information recommendation method and device
EP3428790B1 (en) Method and device for displaying application interface
CN104052796A (en) Plug-in processing method, device, system and terminal
EP4276605A2 (en) Program orchestration method and electronic device
CN104320774A (en) Updating method, device and facility
CN107193441B (en) Desktop pendant previewing method and device
CN104468760A (en) Method and device for pushing reminding information
CN105183493A (en) Display method and device of network information
CN106598677A (en) Installation package downloading method and device
US20120179754A1 (en) System and method for device application and/or application programming interface discovery
CN106027631B (en) Data transmission method and device
CN105094830A (en) Method and device for executing target functions
CN109358933A (en) The creation method and device applied fastly
CN106413129A (en) Method and device for binding terminal to intelligent equipment
CN105468417A (en) Application software installation method and device
CN107911482A (en) Intended application deployment method and device
CN105808304B (en) Code deployment method, device and system
CN108984417B (en) Software testing method, device, terminal and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant