A kind of application resource update method, Apparatus and system
Technical field
The application relates to software upgrading field, particularly to a kind of application resource update method, Apparatus and system.
Background technology
In the application development process of mobile terminal, developer needs often the code of more recent application to be carried out prototype survey
Examination.Before the code of more recent application is carried out prototype test, it is necessary first to the code of more recent application is downloaded to mobile terminal.
At present, the mode that the code of more recent application downloads to mobile terminal is: will be mobile by the way of USB data line
Terminal and exploitation server carry out physical connection, and by developer manually by under the code of the more recent application in exploitation server
It is downloaded in mobile terminal.But the mode efficiency that developer manually downloads is low, thus affect the whole efficiency of prototype test.
Summary of the invention
For solving above-mentioned technical problem, the embodiment of the present application provides a kind of application resource update method, Apparatus and system, with
Reaching to improve the efficiency downloaded, thus improve the purpose of the whole efficiency of prototype test, technical scheme is as follows:
A kind of application resource update method, is applied to mobile terminal, and described method includes:
When the loading application identities triggered on described mobile terminal, transmission carries the address reading of random sequence number please
Ask to public service end;
Receiving the response message that described public service end returns for described address read requests, described response message is at least
Including the application resource URL address that described random sequence number is corresponding;
The exploitation server corresponding with described application resource URL address is set up and is connected, and obtains from described exploitation server
Taking the description information of application resource to be used, the description information of described application resource to be used at least includes described application to be used
The version of resource;
Compare the version of the version of described application resource to be used and the current application resource of described mobile terminal;
When the version of described application resource to be used is different from the version of the current application resource of described mobile terminal, from
Described exploitation server is downloaded described application resource to be used;
It is described application resource to be used by the current application resource updates of described mobile terminal.
Preferably, described transmission carries the address read requests process to public service end of random sequence number, including:
Judge whether the caching of described mobile terminal exists described random sequence number;
If existing, from described caching, reading described random sequence number, and send the ground carrying described random sequence number
Location read requests is to described public service end;
If not existing, send random sequence number distribution request to described public service end;
Receive described public server and respond the random sequence number that the distribution request of described random sequence number returns, and by described
Random sequence number stores to described caching;
Send the address read requests carrying described random sequence number to described public service end.
Preferably, after the exploitation server corresponding with described application resource URL address is set up and connected, also include:
Monitor whether described exploitation server issues download notification message, if so, return and perform from described exploitation server
The step of the described application resource to be used of middle download.
Preferably, described random sequence number is the serial number of 4 Any Digit compositions.
Preferably, described random sequence number is the serial number of 6 Any Digit compositions.
A kind of application resource updating device, is applied to mobile terminal, and described device includes:
Transmitting element, for when the loading application identities triggered on described mobile terminal, sending and carry random sequence
Number address read requests to public service end;
Receive unit, for receiving the response message that described public service end returns, institute for described address read requests
State the application resource URL address that response message at least includes that described random sequence number is corresponding;
Connect unit, set up for the exploitation server corresponding with described application resource URL address and connect;
Acquiring unit, for obtaining the description information of application resource to be used from described exploitation server, described in wait to make
The version of described application resource to be used is at least included by the description information of application resource;
Comparing unit, for version and the current application resource of described mobile terminal of relatively described application resource to be used
Version, when the version of described application resource to be used is different from the version of the current application resource of described mobile terminal, hold
Row the first download unit;
Described first download unit, for downloading described application resource to be used from described exploitation server;
Updating block, being used for the current application resource updates of described mobile terminal is described application resource to be used.
Preferably, described transmitting element includes:
Whether judgment sub-unit, exist described random sequence number in the caching judging described mobile terminal, if existing,
Then performing to read subelement, if not existing, then performing the second transmission subelement;
Described reading subelement, for reading described random sequence number from described caching;
Described first sends subelement, for sending the address read requests carrying described random sequence number to described public affairs
Service end altogether;
Described second sends subelement, is used for sending random sequence number distribution request to described public service end;
Reception subelement, responds the random of described random sequence number distribution request return for receiving described public server
Serial number, and described random sequence number is stored to described caching;
3rd sends subelement, for sending the address read requests carrying described random sequence number to described public clothes
Business end.
Preferably, also include:
Monitoring unit, is used for monitoring whether described exploitation server issues download notification message, if so, returns described in performing
First download unit.
A kind of application resource updates system, including: public service end, exploitation server and application resource as described above
Updating device;
Described public service end, for the ground carrying random sequence number sent for described application resource updating device
Location read requests returns response message extremely described application resource updating device, and described response message at least includes described random sequence
Number corresponding application resource URL address;
Described exploitation server, for storing application resource to be used and the description information of described application resource to be used,
The description information of described application resource to be used at least includes the version of described application resource to be used.
Preferably, the version that described exploitation server is additionally operable to judging described application resource to be used changes
Time, send and download notification message to described application resource updating device.
Compared with prior art, the having the beneficial effect that of the application
In this application, mobile terminal is by when the loading application identities triggered on described mobile terminal, and transmission is carried
There is the address read requests of random sequence number to public service end, and receive described public service end and read for described address
The response message that request returns, and the exploitation server foundation connection corresponding with described application resource URL address, and from described
Exploitation server obtains the description information of application resource to be used, and compares version and the institute of described application resource to be used
State the version of the current application resource of mobile terminal, version and described mobile terminal current of described application resource to be used
During the version difference of application resource, download described application resource to be used from described exploitation server;By described mobile terminal
Current application resource updates is described application resource to be used, it is achieved that application resource to be used (i.e. the code of more recent application)
Download.
Owing to mobile terminal can carry out the download of application resource to be used automatically, therefore compared to developer manually under
The mode required time carried is short, improves the efficiency of download, thus improves the whole efficiency of prototype test.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present application, in embodiment being described below required for make
Accompanying drawing be briefly described, it should be apparent that, the accompanying drawing in describing below is only some embodiments of the application, for
From the point of view of those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to obtain it according to these accompanying drawings
His accompanying drawing.
Fig. 1 is a kind of flow chart of the application resource update method that the application provides;
Fig. 2 is a kind of sub-process figure of the application resource update method that the application provides;
Fig. 3 is the another kind of flow chart of the application resource update method that the application provides;
Fig. 4 is a kind of logical structure schematic diagram of the application resource updating device that the application provides;
Fig. 5 is that a kind of search method of a kind of logical structure schematic diagram the application of the transmitting element that the application provides is implemented
The flow chart of example 3;
Fig. 6 is the another kind of logical structure schematic diagram of the application resource updating device that the application provides;
Fig. 7 is a kind of logical structure schematic diagram that the application resource that the application provides updates system.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is carried out clear, complete
Describe, it is clear that described embodiment is only some embodiments of the present application rather than whole embodiments wholely.Based on
Embodiment in the application, it is every other that those of ordinary skill in the art are obtained under not making creative work premise
Embodiment, broadly falls into the scope of the application protection.
Embodiment one
In the present embodiment, it is provided that a kind of application resource update method, it is applied to mobile terminal.Referring to Fig. 1, it shows
Go out a kind of flow chart of the application resource update method that the application provides, may comprise steps of:
Step S11: when the loading application identities triggered on described mobile terminal, send the ground carrying random sequence number
Location read requests is to public service end.
In the present embodiment, mobile terminal can have multiple random sequence number, each random sequence number each corresponding
Application resource, and each self-corresponding application resource of each random sequence number is different.Owing to each random sequence number is the most right
Answer an application resource, the URL address of the most each random sequence number each corresponding application resource.
Wherein, each random sequence number of mobile terminal is distributed by public service end.Public service end is for issuing in interconnection
Online service.The mobile terminal domain name by public service end, sets up with public service end and is connected.
In the present embodiment, public service end provide the page is set, arrange the page include random sequence number setting options and
The URL address setting options of the application resource that random sequence number is corresponding.Developer can be in the random sequence arranged on the page
Number setting options input random sequence number, accordingly, in the URL address setting options of application resource corresponding to random sequence number
The URL address of the application resource that middle input random sequence number is corresponding.Developer is at input random sequence number and random sequence number
After the URL address of corresponding application resource, random sequence number that developer is inputted by public service end and random sequence number
The URL address of corresponding application resource preserves to data base.
In the present embodiment, mobile terminal can be triggered by user by clicking on the loading application identities on mobile terminal
On loading application identities.Wherein, the loading application identities on mobile terminal can be the different form of expression, specifically can but
It is not limited to load application button or load application icon.
Step S12: receive the response message that described public service end returns, described response for described address read requests
Information at least includes the application resource URL address that described random sequence number is corresponding.
Public service end, when receiving address above mentioned read requests, is inquired about above-mentionedly from the data base of public service end
The application resource URL address that random sequence number in the read requests of location is corresponding, after inquiring, for address above mentioned read requests
Return the response message of the application resource URL address at least including that described random sequence number is corresponding to mobile terminal.
Step S13: the exploitation server corresponding with described application resource URL address is set up and connected.
Step S14: obtain the description information of application resource to be used, described application to be used from described exploitation server
The description information of resource at least includes the version of described application resource to be used.
In the present embodiment, the code of the more recent application of application resource to be used i.e. developer exploitation, it is stored in out
Send out in some memory area of server.
Wherein, what the URL address of above-mentioned application resource was pointed to is the memory block of application resource to be used in exploitation server
Territory.It is i.e. corresponding with described application resource URL address that the exploitation server corresponding with described application resource URL address sets up connection
The memory area of the application resource to be used in exploitation server is set up and is connected.Corresponding with described application resource URL address
Exploitation server is set up after connecting, and mobile terminal can access the memory area that described application resource URL address is corresponding, thus can
Application resource to be used and the description of application resource to be used is obtained with the memory area corresponding from described application resource URL address
Information.
In the present embodiment, the description information of application resource to be used is except including the version of described application resource to be used
Outside, it is also possible to include the resource path of application resource to be used, stamp of last download time and the random sequence number of download equipment
Deng.
Step S15: compare the version of the version of described application resource to be used and the current application resource of described mobile terminal
This.
When the version of described application resource to be used is different from the version of the current application resource of described mobile terminal, hold
Row step S16.
Certainly, when the version of described application resource to be used is with the version of the current application resource of described mobile terminal,
Application resource to be used will not be downloaded from exploitation server.
Step S16: download described application resource to be used from described exploitation server.
Step S17: be described application resource to be used by the current application resource updates of described mobile terminal.
In the present embodiment, it is application resource to be used by the current application resource updates of mobile terminal, completes up-to-date answering
The download of code.After being application resource to be used by the current application resource updates of mobile terminal, developer is then
On mobile terminals application resource to be used (i.e. the code of more recent application) can be carried out prototype test.
In this application, mobile terminal is by when the loading application identities triggered on described mobile terminal, and transmission is carried
There is the address read requests of random sequence number to public service end, and receive described public service end and read for described address
The response message that request returns, and the exploitation server foundation connection corresponding with described application resource URL address, and from described
Exploitation server obtains the description information of application resource to be used, and compares version and the institute of described application resource to be used
State the version of the current application resource of mobile terminal, version and described mobile terminal current of described application resource to be used
During the version difference of application resource, download described application resource to be used from described exploitation server;By described mobile terminal
Current application resource updates is described application resource to be used, it is achieved that application resource to be used (i.e. the code of more recent application)
Download.
Owing to mobile terminal can carry out the download of application resource to be used automatically, therefore compared to developer manually under
The mode required time carried is short, improves the efficiency of download, thus improves the whole efficiency of prototype test.
Further, multiple different mobile terminal, Mei Geyi can be connected due to public service end and exploitation server
Dynamic terminal uses the renewal that step S11 carries out application resource to step S17, and therefore the application can realize multiple mobile terminal together
The renewal of Shi Jinhang application resource and prototype are tested, and each mobile terminal is wirelessly to carry out application resource more
New and prototype is tested.
In the present embodiment, random sequence number specifically can but be not limited to the serial number of 4 Any Digits composition.
Certainly, random sequence number specifically can but be not limited to the serial number of 6 Any Digits composition.
In the present embodiment, above-mentioned transmission carries the address read requests mistake to public service end of random sequence number
Journey, refers to Fig. 2, may comprise steps of:
Step S21: judge whether to exist in the caching of described mobile terminal described random sequence number.
In the present embodiment, mobile terminal first determines whether whether there is described random sequence number in caching, if existing, then holds
Row step S22, if not existing, then needs to obtain described random sequence number from public server, specifically needs to perform step S23.
Step S22: read described random sequence number from described caching, and send the ground carrying described random sequence number
Location read requests is to described public service end.
Step S23: send random sequence number distribution request to described public service end.
Step S24: receive described public server and respond the random sequence number that the distribution request of described random sequence number returns,
And described random sequence number is stored to described caching.
Step S25: send the address read requests carrying described random sequence number to described public service end.
Embodiment two
In the present embodiment, on the basis of the application resource update method shown in Fig. 1, expand another application money
Source update method, refers to Fig. 3, may comprise steps of:
Step S31: when the loading application identities triggered on described mobile terminal, send the ground carrying random sequence number
Location read requests is to public service end.
Step S32: receive the response message that described public service end returns, described response for described address read requests
Information at least includes the application resource URL address that described random sequence number is corresponding.
Step S33: the exploitation server corresponding with described application resource URL address is set up and connected.
Step S34: obtain the description information of application resource to be used, described application to be used from described exploitation server
The description information of resource at least includes the version of described application resource to be used.
Step S35: compare the version of the version of described application resource to be used and the current application resource of described mobile terminal
This.
When the version of described application resource to be used is different from the version of the current application resource of described mobile terminal, hold
Row step S36.
Step S36: download described application resource to be used from described exploitation server.
Step S37: be described application resource to be used by the current application resource updates of described mobile terminal.
Step S31 is to the process shown in step S37 and the extremely step of step S11 in the application resource update method shown in Fig. 1
Rapid S17 is identical, repeats in this step.
Step S38: monitor whether described exploitation server issues download notification message, if so, returns and performs step S36.
If monitor less than, step S38 can be continued executing with.
In the present embodiment, step S38 performs after step S33.
In the present embodiment, mobile terminal can actively judge whether to need to download application resource to be used, and at needs
During download, from exploitation server, download application resource to be used (i.e. step S31 is to the process of step S37), naturally it is also possible to
When whether issuing download notification message by monitoring exploitation server, from exploitation server, download application resource to be used (i.e.
Step S38).
In the present embodiment, above-mentioned download notification message by developing the process that server issues is:
Step A11: exploitation server monitors the application to be used in the memory area that described application resource URL address is pointed to
Whether the version of resource changes.
The most then perform step A12, if it is not, continue executing with step A11.
Step A12: issue download notification message to mobile terminal.
Embodiment three
With said method embodiment relative to, present embodiments provide a kind of application resource updating device, be applied to mobile
Terminal, refers to Fig. 4, and application resource updating device includes: transmitting element 41, reception unit 42, connection unit 43, acquiring unit
44, comparing unit the 45, first download unit 46 and updating block 47.
Transmitting element 41, for when the loading application identities triggered on described mobile terminal, sending and carry stochastic ordering
The address read requests of row number is to public service end.
Receive unit 42, for receiving the response message that described public service end returns for described address read requests,
Described response message at least includes the application resource URL address that described random sequence number is corresponding.
Connect unit 43, set up for the exploitation server corresponding with described application resource URL address and connect.
Acquiring unit 44, for obtaining the description information of application resource to be used from described exploitation server, described in treat
The description information using application resource at least includes the version of described application resource to be used.
Comparing unit 45, provides with the current application of described mobile terminal for the version of relatively described application resource to be used
The version in source, when the version of described application resource to be used is different from the version of the current application resource of described mobile terminal,
Perform the first download unit 46.
Described first download unit 46, for downloading described application resource to be used from described exploitation server.
Updating block 47, being used for the current application resource updates of described mobile terminal is described application resource to be used.
In the present embodiment, transmitting element 41 specifically may include that judgment sub-unit 411, read subelement 412, the
One sends subelement 413, second sends subelement 414, receives subelement 415 and the 3rd transmission subelement 416, as shown in Figure 5.
Whether judgment sub-unit 411, exist described random sequence number, if depositing in the caching judging described mobile terminal
, then performing to read subelement 412, if not existing, then performing the second transmission subelement 414.
Described reading subelement 412, for reading described random sequence number from described caching.
Described first sends subelement 413, carries the address read requests of described random sequence number to institute for sending
State public service end.
Described second sends subelement 414, is used for sending random sequence number distribution request to described public service end.
Receive subelement 415, respond what the distribution request of described random sequence number returned for receiving described public server
Random sequence number, and described random sequence number is stored to described caching.
3rd sends subelement 416, for sending the address read requests carrying described random sequence number to described public affairs
Service end altogether.
In the present embodiment, the application resource updating device shown in Fig. 4 can also include: monitoring unit 48, such as Fig. 6 institute
Show.
Monitoring unit 48, is used for monitoring whether described exploitation server issues download notification message, if so, returns and perform institute
State the first download unit.
Embodiment four
In the present embodiment, it is provided that a kind of application resource updates system, refers to Fig. 7, and application resource updates system bag
Include: public service end 71, exploitation server 72 and application resource updating device 73.
The concrete structure of application resource updating device 73 and correlation function refer to the application resource shown in embodiment three more
New equipment, repeats in this step.
Public service end 71, for the ground carrying random sequence number sent for described application resource updating device 73
Location read requests returns response message extremely described application resource updating device 73, and described response message at least includes described stochastic ordering
Row number corresponding application resource URL address.
In the present embodiment, public service end 71 arranges the page for offer, arranges the page and includes that random sequence number is arranged
The URL address setting options of the application resource that option is corresponding with random sequence number.Developer can arrange on the page with
Machine serial number setting options input random sequence number, accordingly, sets in the URL address of application resource corresponding to random sequence number
Put the URL address inputting application resource corresponding to random sequence number in option.Developer inputs random sequence number with random
After the URL address of the application resource that serial number is corresponding, random sequence number that developer is inputted by public service end 71 and with
The URL address of the application resource that machine serial number is corresponding preserves to data base.
Public service end 71 is receiving the ground carrying random sequence number that described application resource updating device 73 sends
During the read requests of location, from the data base of public service end 71, inquire about the random sequence number in address above mentioned read requests corresponding
Application resource URL address, after inquiring, returns for address above mentioned read requests and at least includes that described random sequence number is corresponding
The response message of application resource URL address to application resource updating device 73.
Described exploitation server 72, for storing the description letter of application resource to be used and described application resource to be used
Breath, the description information of described application resource to be used at least includes the version of described application resource to be used.
Described exploitation server 72 is additionally operable to when the version judging described application resource to be used changes, and sends
Download notification message to described application resource updating device 73.
It should be noted that each embodiment in this specification all uses the mode gone forward one by one to describe, each embodiment weight
Point explanation is all the difference with other embodiments, and between each embodiment, identical similar part sees mutually.
For device class embodiment, due to itself and embodiment of the method basic simlarity, so describe is fairly simple, relevant part ginseng
See that the part of embodiment of the method illustrates.
Finally, in addition it is also necessary to explanation, in this article, the relational terms of such as first and second or the like be used merely to by
One entity or operation separate with another entity or operating space, and not necessarily require or imply these entities or operation
Between exist any this reality relation or order.And, term " includes ", " comprising " or its any other variant meaning
Containing comprising of nonexcludability, so that include that the process of a series of key element, method, article or equipment not only include that
A little key elements, but also include other key elements being not expressly set out, or also include for this process, method, article or
The key element that equipment is intrinsic.In the case of there is no more restriction, statement " including ... " key element limited, do not arrange
Except there is also other identical element in including the process of described key element, method, article or equipment.
Above a kind of application resource update method provided herein, Apparatus and system are described in detail, this
Applying specific case in literary composition to be set forth principle and the embodiment of the application, the explanation of above example is only intended to
Help understands the present processes and core concept thereof;Simultaneously for one of ordinary skill in the art, according to the think of of the application
Thinking, the most all will change, in sum, it is right that this specification content should not be construed as
The restriction of the application.