CN109729138A - Client resource update method, equipment, client and storage medium - Google Patents
Client resource update method, equipment, client and storage medium Download PDFInfo
- Publication number
- CN109729138A CN109729138A CN201810562503.6A CN201810562503A CN109729138A CN 109729138 A CN109729138 A CN 109729138A CN 201810562503 A CN201810562503 A CN 201810562503A CN 109729138 A CN109729138 A CN 109729138A
- Authority
- CN
- China
- Prior art keywords
- resource
- file
- client
- updates
- current
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 85
- 230000008569 process Effects 0.000 claims abstract description 29
- 238000001514 detection method Methods 0.000 claims description 13
- 230000004044 response Effects 0.000 claims description 10
- 230000000737 periodic effect Effects 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 9
- 238000004891 communication Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 4
- 230000003993 interaction Effects 0.000 description 4
- 238000012360 testing method Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000011069 regeneration method Methods 0.000 description 2
- 238000013500 data storage Methods 0.000 description 1
- 230000006837 decompression Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 230000002427 irreversible effect Effects 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The present invention discloses a kind of client resource update method, equipment, client and storage medium.This method comprises: client obtains the network address of corresponding resource to be updated from server when detecting resource updates instruction;When receiving client terminal start-up instruction, the corresponding online resource data of resource to be updated are obtained from server according to network address and are shown;Then resource updates are carried out in background process according to online resource data and obtain local resource data;When resource updates are completed, online resource data are switched to local resource data to show, by then passing through from server acquisition online resource data and showing, so as to ensure that user can use newest client functionality at any time, again because carrying out resource updates in background process according to online resource data, and carry out the switching of local resource data when resource updates are completed and show, to realize the resource updates to client in the case where user is noninductive, improve user experience.
Description
Technical field
The present invention relates to field of computer technology more particularly to a kind of client resource update method, equipment, client and
Storage medium.
Background technique
With the continuous development of Internet technology, more and more applied to meet the needs of people's routine work and life
Program (Application, App) client appears in all kinds of mobile terminals (such as mobile phone, tablet computer, PC),
The developer of all kinds of App irregular can carry out edition upgrading to App to make the product of oneself keep strong competitiveness
Or it updates to promote user experience.
Currently, it is mostly block type that resource file, which updates upgrading mode, i.e., the monitoring of resource version is carried out when App starts,
Then user is prompted to update when there is more new version;App is closed if user agrees to, resource file is waited to download decompression rear completely
App can be reused;If user disagrees current update, App be will be unable to using user experience is lower.
Above content is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that above content is existing skill
Art.
Summary of the invention
The main purpose of the present invention is to provide a kind of client resource update method, equipment, client and storage medium,
Aim to solve the problem that the prior art can not be realized effectively in the case where user is noninductive to the resource updates of application client
Technical problem.
To achieve the above object, the present invention provides a kind of client resource update method, the described method comprises the following steps:
It is corresponding to be updated that client obtains the resource updates instruction when detecting resource updates instruction, from server
The network address of resource;
When receiving client terminal start-up instruction, the money to be updated is obtained from the server according to the network address
The corresponding online resource data in source, and the online resource data are shown;
Resource updates are carried out in background process according to the online resource data, obtain local resource data;
When resource updates are completed, the online resource data are switched to the local resource data and are shown.
Preferably, the client obtains the resource updates instruction from server when detecting resource updates instruction
Before the step of network address of corresponding resource to be updated, the method also includes:
Client carries out periodic scan to the resource file stored in server presetting database;
By present scan to Current resource file be compared with the history resource file that scans of last time;
If detecting, the Current resource file has differences with the history resource file, generates resource updates and refers to
It enables.
Preferably, it is described by present scan to Current resource file and last history resource file progress scan
The step of comparison, comprising:
Read the corresponding current file mark of Current resource file that present scan arrives, and the last history scanned
The corresponding history file mark of resource file;
By the current file mark with the history file mark be compared, the current file identify with it is described
When history file mark is inconsistent, determine that the Current resource file has differences with the history resource file.
Preferably, it is described by present scan to Current resource file and last history resource file progress scan
The step of comparison, comprising:
Determine the corresponding current MD5 check code of Current resource file that present scan arrives respectively according to Message Digest 5,
And the last corresponding history MD5 check code of history resource file scanned;
The current MD5 check code is compared with the history MD5 check code, the current MD5 check code with
When the history MD5 check code is not identical, determine that the Current resource file has differences with the history resource file.
Preferably, it is described by present scan to Current resource file and last history resource file progress scan
The step of comparison, comprising:
Read the corresponding current file size of Current resource file that present scan arrives, and the last history scanned
The corresponding history file size of resource file;
The current file size is compared with the history file size, the current file size with it is described
When history file size is not identical, determine that the Current resource file has differences with the history resource file.
Preferably, described that resource updates are carried out in background process according to the online resource data, obtain local resource
The step of data, comprising:
Resource updates are carried out in background process according to the online resource data;
Obtain the corresponding current network type of the client in real time, and detect the current network type whether belong to it is pre-
If network type;
Interrupt the resource updates when detecting that the current network type is not belonging to the default network type, and after
It is continuous to obtain the corresponding network type of the client;
Until restoring the resource updates when network type got belongs to the default network type.
Preferably, described when resource updates are completed, the online resource data are switched to the local resource data
The step of being shown, comprising:
When resource updates are completed, requested in response to the page jump received;
It is requested to carry out page jump according to the page jump, and the online resource data is switched to the local money
Source data is shown.
In addition, to achieve the above object, the present invention also proposes that a kind of client, the client include: to update detection mould
Block, data acquisition module, resource updates module and resource switch module;
The update detection module, for obtaining the resource updates from server when detecting resource updates instruction
Instruct the network address of corresponding resource to be updated;
The data acquisition module, for when receiving client terminal start-up instruction, according to the network address from described
Server obtains the corresponding online resource data of the resource to be updated, and shows to the online resource data;
The resource updates module is obtained for carrying out resource updates in background process according to the online resource data
Obtain local resource data;
The resource switch module, for when resource updates are completed, the online resource data to be switched to described
Ground resource data is shown.
In addition, to achieve the above object, the present invention also proposes a kind of client resource more new equipment, the equipment includes:
Memory, processor and the client resource more new procedures that is stored on the memory and can run on the processor,
The client resource more new procedures are arranged for carrying out the step of client resource update method as described above.
In addition, to achieve the above object, the present invention also proposes a kind of storage medium, client is stored on the storage medium
Resource updates program is held, the client resource more new procedures realize client resource as described above when being executed by processor
The step of update method.
It is corresponding that client of the present invention obtains the resource updates instruction when detecting resource updates instruction, from server
The network address of resource to be updated;It is to be updated from server acquisition according to network address when receiving client terminal start-up instruction
The corresponding online resource data of resource, and online resource data are shown;Then according to online resource data backstage into
Resource updates are carried out in journey, obtain local resource data;When resource updates are completed, online resource data are switched to local money
Source data is shown, by then passing through from server acquisition online resource data and showing, so as to ensure user at any time
The client functionality of latest edition can be used everywhere, and the online resource data got because according to are in client background
Resource updates are carried out in process, and online resource data are switched to local resource data when resource updates are completed and are shown
Show, so as to realize to the resource updates of client, improve user experience in the case where user is noninductive.
Detailed description of the invention
Fig. 1 is the structural representation of the client resource more new equipment for the hardware running environment that the embodiment of the present invention is related to
Figure;
Fig. 2 is the flow diagram of client resource update method first embodiment of the present invention;
Fig. 3 is the flow diagram of client resource update method second embodiment of the present invention;
Fig. 4 is the flow diagram of client resource update method 3rd embodiment of the present invention;
Fig. 5 is the structural block diagram of client first embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that described herein, specific examples are only used to explain the present invention, is not intended to limit the present invention.
Referring to Fig.1, Fig. 1 is the client resource more new equipment knot for the hardware running environment that the embodiment of the present invention is related to
Structure schematic diagram.
As shown in Figure 1, the client resource more new equipment may include: processor 1001, such as central processing unit
(Central Processing Unit, CPU), communication bus 1002, user interface 1003, network interface 1004, memory
1005.Wherein, communication bus 1002 is for realizing the connection communication between these components.User interface 1003 may include display
Shield (Display), input unit such as keyboard (Keyboard), optional user interface 1003 can also include that the wired of standard connects
Mouth, wireless interface.Network interface 1004 optionally may include standard wireline interface and wireless interface (such as Wireless Fidelity
(WIreless-FIdelity, WI-FI) interface).Memory 1005 can be the random access memory (Random of high speed
Access Memory, RAM) memory, be also possible to stable nonvolatile memory (Non-Volatile Memory,
), such as magnetic disk storage NVM.Memory 1005 optionally can also be the storage device independently of aforementioned processor 1001.
It will be understood by those skilled in the art that structure shown in Fig. 1 is not constituted to client resource more new equipment
It limits, may include perhaps combining certain components or different component layouts than illustrating more or fewer components.
As shown in Figure 1, as may include operating system, data storage mould in a kind of memory 1005 of storage medium
Block, network communication module, Subscriber Interface Module SIM and client resource more new procedures.
In client resource shown in Fig. 1 more new equipment, network interface 1004 is mainly used for carrying out with network server
Data communication;User interface 1003 is mainly used for carrying out data interaction with user;In client resource of the present invention more new equipment
Processor 1001, memory 1005 can be set in client resource more new equipment, and the client resource more new equipment is logical
It crosses processor 1001 and calls the client resource more new procedures stored in memory 1005, and execute provided in an embodiment of the present invention
Client resource update method.
The embodiment of the invention provides a kind of client resource update methods, and referring to Fig. 2, Fig. 2 is a kind of client of the present invention
Hold the flow diagram of resource regeneration method first embodiment.
In the present embodiment, the client resource update method the following steps are included:
Step S10: client obtains the resource updates instruction from server and corresponds to when detecting resource updates instruction
Resource to be updated network address;
It should be noted that the executing subject of the present embodiment method can be corresponding with server, this is provided for user
The application client (the i.e. described client) of ground service, the resource updates, which can be, carries out edition upgrading to client,
The loophole of version before client improve or adds new application function so that the client of new version is more perfect
It is handy.In addition, staff needs when issuing resource updates message by resource text to be updated before executing this step
Part (the i.e. described resource to be updated) is deployed in the presetting database of the corresponding server of the client simultaneously, and to be somebody's turn to do to more
New resource file configures corresponding network address, for different clients according to the network address under the server side
Carry resource file to be updated.The resource updates instruction can be the client by timing to the pre- of the server side
If database is scanned, and according to scanning result when determining client and needing to carry out resource updates, the resource of generation is more
Newer command.
In the concrete realization, it is corresponding to obtain resource to be updated from server when detecting resource updates instruction for client
Network address and be stored in local, the resource to be updated is downloaded according to the network address so as to subsequent.
Step S20: receive client terminal start-up instruction when, according to the network address from the server obtain described in
The corresponding online resource data of resource to be updated, and the online resource data are shown;
It will be appreciated that the client terminal start-up instruction can be user by clicking the corresponding application drawing of the client
The triggering command generated when mark.
In the concrete realization, client is when receiving the enabled instruction of user's input, in response to the enabled instruction, according to
Correspondence is downloaded from server presetting database from the corresponding network linking address of resource to be updated that server side obtains in advance
Online resource data, and the online resource data are showed by user by client human-computer interaction interface.
Step S30: resource updates are carried out in background process according to the online resource data, obtain local resource number
According to;
It should be understood that being deposited compared to existing by the way that resource file or data packet to be updated to be completely downloaded in the local
Space is stored up, the mode that client process carries out resource updates is then shut off, the difference of the present embodiment resource regeneration method is, visitor
Family end is obtaining the corresponding online resource data of resource to be updated from server side and the online resource data is showed use
While family, also resource updates will be carried out in the background process of client according to the online resource data got, to obtain
Local resource data after resource updates.
Further, since certain network flow can be consumed when client downloads online resource from server side, consider
It is often more likely to carry out resource updates by wireless network (such as WI-FI) to user, and often there is network in practice and cut
The case where changing, if the corresponding network connection state in wireless network broken clients end is switched to 4G network or without network state, therefore
In the present embodiment, the step S30 may particularly include: client carries out in background process according to the online resource data
Resource updates;The corresponding current network type of the client is obtained in real time, and detects whether the current network type belongs to
Default network type;The resource is interrupted when detecting that the current network type is not belonging to the default network type more
Newly, and continue to obtain the corresponding network type of the client;Until the network type got belongs to the default network class
When type, restore the resource updates.
It should be noted that the network type may include wireless network, mobile network or without network service, it is described wireless
Network is the network realized using wireless communication technique;The mobile network be using mobile device, as mobile phone, palm PC or
Other portable dams are connected to public network, realize the mode (such as 2G, 3G, 4G network etc.) of internet access.Specifically
In the present embodiment, if the network type for carrying out resource updates of user preset is wireless network, and current time client
Holding the network type detected is 4G mobile network, then shows that current network type is not belonging to the default network type, at this time
To save user network flow-reduction resource updates cost, client will interrupt or pause resource updates, and continues to test client
The current network type at end, until restoring the resource updates when network type detected belongs to the default network type.
Certainly, to further increase resource updates efficiency, in the present embodiment client after getting current network type,
Also can detect whether the current network type is available network, if then obtaining the corresponding rest network stream of the available network
Amount, and the rest network flow is compared with preset flow threshold value, if being higher than, continue resource updates, if low
In then interrupting the resource updates, and continue to obtain the corresponding network type of the client;Until the network type got
When belonging to the default network type, restore the resource updates, wherein the available network can be permission set by user
The network of resource updates, such as 3G or 4G network are carried out by the network of the type.
Step S40: when resource updates are completed, the online resource data is switched to the local resource data and are carried out
Display.
In the concrete realization, when client completes resource updates in background process, show that this resource updates is corresponding
Resource file is locally downloading with whole, that is, has obtained the local resource data, client will can currently shown at this time
The online resource data shown are switched to local resource data and are shown, in the case where user is noninductive, realize client resource
It updates.
The present embodiment client obtains the resource updates instruction from server and corresponds to when detecting resource updates instruction
Resource to be updated network address;When receiving client terminal start-up instruction, obtained from server to more according to network address
The corresponding online resource data of new resources, and online resource data are shown;Then according to online resource data on backstage
Resource updates are carried out in process, obtain local resource data;When resource updates are completed, online resource data are switched to local
Resource data shown, is obtained online resource data by then passing through from server and is shown, so as to ensure user with
When can use the client functionality of latest edition everywhere, and the online resource data got because according to are after client
Resource updates are carried out in platform process, and online resource data are switched to local resource data when resource updates are completed and are shown
Show, so as to realize to the resource updates of client, improve user experience in the case where user is noninductive.
With reference to Fig. 3, Fig. 3 is a kind of flow diagram of client resource update method second embodiment of the present invention.
Based on above-mentioned first embodiment, in the present embodiment before the step S10, the method also includes:
Step S01: client carries out periodic scan to the resource file stored in server presetting database;
It should be noted that the presetting database can be set in advance in server side be exclusively used in storage latest edition
This, the data space of resource file to be updated, and staff is by the resource deployment to be updated to the data
When in library, inactive file can be deleted or be arranged to the resource file of old version, that is to say, that the presetting database
The effective file of middle storage only has the file of the resource to be updated.
In the concrete realization, client can carry out the resource file stored in server presetting database periodically to sweep
It retouches, to obtain the Current resource file stored in the presetting database, specific scan period the present embodiment is with no restrictions.
Step S02: by present scan to Current resource file compare with the history resource file that scans of last time
It is right;
In the concrete realization, client can by present scan to Current resource file and last history money scan
Then source file judges whether to need to carry out resource updates into comparison according to comparison result.
Specifically, the corresponding current file mark of Current resource file that present scan arrives can be read in the client, with
And the last corresponding history file mark of history resource file scanned;By current file mark and the history text
Part mark is compared, and in current file mark and inconsistent history file mark, determines the Current resource
File has differences with the history resource file.
It should be noted that the file identification can be the identification information that can distinguish different resource file,
Such as start context, title, for example, client present scan to the corresponding start context of Current resource file be
1.0.0.0321_beta, the last corresponding start context of history resource file scanned is that 1.0.0.0322_beta then may be used
Determine that the current file mark identifies inconsistent, i.e., the described Current resource file and the history resource with the history file
File has differences.
Further, in this embodiment the client can also determine respectively what present scan arrived according to Message Digest 5
The corresponding current MD5 check code of Current resource file, and the last school history resource file corresponding history MD5 scanned
Test code;The current MD5 check code is compared with the history MD5 check code, the current MD5 check code with it is described
When history MD5 check code is not identical, determine that the Current resource file has differences with the history resource file.
It should be noted that the Message Digest 5 (Message-Digest Algorithm 5, MD5) is computer
The widely used a kind of hash function in security fields, to provide the integrity protection of message.MD5 can generate letter to a segment information
Breath abstract (Message-Digest), to prevent from being tampered, for example, the file of an entitled .md5 of file extent, in this text
Usually only a line text in part, general configuration such as: MD5 (tanajiya.tar.gz)=
38b8c2c1093dd0fec383a9d9ac940515, this style of writing are originally that the MD5 of this tanajiya.tar.gz file is examined
Entire file as a big text information, is converted algorithm by its irreversible character string, produces this only by code, MD5
One MD5 informative abstract, i.e. MD5 check code.
In the concrete realization, it is corresponding current can to calculate separately Current resource file according to Message Digest 5 for client
Then MD5 check code and the corresponding history MD5 check code of history resource file verify current MD5 check code and history MD5
Code is compared, and then shows that Current resource file is identical as history resource file if they are the same, does not need to carry out resource updates;If no
Together, then show that Current resource file and history resource file be not identical, need to carry out resource updates.
Certainly, in the present embodiment, it is corresponding can also to read the Current resource file that present scan arrives for the client
Current file size, and the last corresponding history file size of history resource file scanned;By the current file
Size is compared with the history file size, when the current file size and the history file size be not identical,
Determine that the Current resource file has differences with the history resource file.For example, if client present scan arrive it is current
The corresponding current file size of resource file is 102.5M, and the corresponding history file of history resource file that the last time is scanned is big
Small 80.3M then shows that the current file size and the history file size be not identical, needs to carry out resource updates.
Step S03: if detecting, the Current resource file has differences with the history resource file, generates resource
More new command.
In the concrete realization, client detects the Current resource file and history resource text through the above way
When part has differences, then determine to generate resource updates instruction, and carry out subsequent update in response to resource updates instruction and grasp
Make.
The present embodiment is by carrying out periodic scan to the resource file stored in server presetting database;This is swept
The history resource file that the Current resource file retouched is scanned with the last time is compared;If detect Current resource file with
History resource file has differences, then generates resource updates instruction, realize to whether client needs to carry out resource updates
It is accurate to determine.
With reference to Fig. 4, Fig. 4 is a kind of flow diagram of client resource update method 3rd embodiment of the present invention.
Based on the various embodiments described above, the step S30 be may particularly include in the present embodiment:
Step S301: it when resource updates are completed, is requested in response to the page jump received;
In order to realize online/local automatic switchover of resource to be updated, and reduces handoff procedure and stream is used to client
Really noninductive switching is realized in the interference of journey, and client can't force to carry out immediately when resource updates are completed in the present embodiment
The switching of online resource data/local resource data, but receiving what user was inputted based on client human-computer interaction interface
It when page jump is requested, is requested in response to the page jump, carries out page jump.
Step S302: it is requested to carry out page jump according to the page jump, and the online resource data is switched to
The local resource data are shown.
It in the concrete realization, can will when the page jump request that client is inputted according to user carries out page jump
The online resource data used are switched to the resource data (the i.e. described local resource data) that completion is locally-downloaded, and according to
The local resource data show the corresponding content of pages of the page after jumping, and realize noninductive switching, are effectively prevented from
Interference of the handoff procedure to process for using.
The present embodiment client is requested when resource updates are completed in response to the page jump received;It is jumped according to the page
Turn request and carry out page jump, and online resource data are switched to local resource data and are shown, reduces handoff procedure
Interference to client process for using realizes real noninductive switching.
In addition, the embodiment of the present invention also proposes a kind of storage medium, client resource is stored on the storage medium more
New procedures, the client resource more new procedures realize client resource update method as described above when being executed by processor
The step of.
It is the structural block diagram of client first embodiment of the present invention referring to Fig. 5, Fig. 5.
As shown in figure 5, the client that the embodiment of the present invention proposes includes: to update detection module 501, data acquisition module
502, resource updates module 503 and resource switch module 504;
The update detection module 501, for obtaining the resource more from server when detecting resource updates instruction
The network address of the corresponding resource to be updated of new command;
It should be noted that the resource updates, which can be, carries out edition upgrading to client, i.e., to visitor in the present embodiment
Before the end of family the loophole of version carry out improve or add new application function so that the client of new version more improve it is handy.This
Outside, staff needs resource file to be updated is (i.e. described to more when issuing resource updates message in the present embodiment
New resources) it is deployed in the presetting database of the corresponding server of the client simultaneously, and be the resource file to be updated
Corresponding network address is configured, so that different clients downloads money to be updated from the server side according to the network address
Source file.The resource updates instruction can be the client and be carried out by presetting database of the timing to the server side
Scanning, and according to scanning result when determining client and needing to carry out resource updates, the resource updates order of generation.
In the concrete realization, the update detection module 501 detect resource updates instruction when, from server obtain to
The corresponding network address of more new resources is simultaneously stored in local, downloads the money to be updated according to the network address so as to subsequent
Source.
The data acquisition module 502, for when receiving client terminal start-up instruction, according to the network address from institute
It states server and obtains the corresponding online resource data of the resource to be updated, and the online resource data are shown;
It will be appreciated that the client terminal start-up instruction can be user by clicking the corresponding application drawing of the client
The triggering command generated when mark.
In the concrete realization, data acquisition module 502 is when receiving the enabled instruction of user's input, in response to the starting
Instruction, the corresponding network linking address of resource to be updated obtained in advance from server side according to the update detection module 501
Corresponding online resource data are downloaded from server presetting database, and will be described online by client human-computer interaction interface
Resource data shows user.
The resource updates module 503, for carrying out resource updates in background process according to the online resource data,
Obtain local resource data;
In the concrete realization, the data acquisition module 502 is corresponding online from server side acquisition resource to be updated
Resource data and while the online resource data are showed user, the resource updates module 503 will also be according to acquisition
To online resource data resource updates are carried out in the background process of client, to obtain the local resource number after resource updates
According to.
Further, certain due to that can be consumed when the resource updates module 503 downloads online resource from server side
Network flow, it is contemplated that user is often more likely to carry out resource updates by wireless network (such as WI-FI), and in practice often
There can be the case where network switching, as the corresponding network connection state in wireless network broken clients end is switched to 4G network or without net
Network state, therefore in the present embodiment, the resource updates module 503 are also used to obtain that the client is corresponding works as in real time
Preceding network type, and detect whether the current network type belongs to default network type;Detecting the current network class
Type is not belonging to interrupt the resource updates when the default network type, and continues to obtain the corresponding network class of the client
Type;Until restoring the resource updates when network type got belongs to the default network type.
It should be noted that the network type may include wireless network, mobile network or without network service, it is described wireless
Network is the network realized using wireless communication technique;The mobile network be using mobile device, as mobile phone, palm PC or
Other portable dams are connected to public network, realize the mode (such as 2G, 3G, 4G network etc.) of internet access.Specifically
In the present embodiment, if the network type for carrying out resource updates of user preset is wireless network, and current time resource
The network type that update module 503 detects is 4G mobile network, then shows that current network type is not belonging to the default network
Type, at this time to save user network flow-reduction resource updates cost, the resource updates module 503 will interrupt or pause money
Source updates, and continues to test the current network type of client, until the network type detected belongs to the default network class
When type, restore the resource updates.
Certainly, to further increase resource updates efficiency, resource updates module described in the present embodiment 503 are worked as getting
After preceding network type, also can detect whether the current network type is available network, if then obtaining the available network pair
The rest network flow answered, and the rest network flow is compared with preset flow threshold value, if being higher than, continue
Resource updates interrupt the resource updates if being lower than, and continue to obtain the corresponding network type of the client;Until obtaining
To network type belong to the default network type when, restore the resource updates, wherein the available network can be use
The network for allowing to carry out resource updates by the network of the type of family setting, such as 3G or 4G network.
The resource switch module 504, for the online resource data being switched to described when resource updates are completed
Local resource data are shown.
In the concrete realization, when the resource updates module 503 completes resource updates in background process, show this money
Update corresponding resource file in source is locally downloading with whole, that is, has obtained the local resource data, at this time resource switch mould
The online resource data being currently displaying can be switched to local resource data and shown by block 504, noninductive in user
In the case of, realize that client resource updates.
The present embodiment client obtains the resource updates instruction from server and corresponds to when detecting resource updates instruction
Resource to be updated network address;When receiving client terminal start-up instruction, obtained from server to more according to network address
The corresponding online resource data of new resources, and online resource data are shown;Then according to online resource data on backstage
Resource updates are carried out in process, obtain local resource data;When resource updates are completed, online resource data are switched to local
Resource data shown, is obtained online resource data by then passing through from server and is shown, so as to ensure user with
When can use the client functionality of latest edition everywhere, and the online resource data got because according to are after client
Resource updates are carried out in platform process, and online resource data are switched to local resource data when resource updates are completed and are shown
Show, so as to realize to the resource updates of client, improve user experience in the case where user is noninductive.
Based on above-mentioned client first embodiment, client second embodiment of the present invention is proposed.
In the present embodiment, the update detection module 501, is also used to the resource stored in server presetting database
File carries out periodic scan;By present scan to Current resource file and last history resource file progress scan
It compares;If detecting, the Current resource file has differences with the history resource file, generates resource updates instruction.
Further, the update detection module 501, it is corresponding to be also used to read the Current resource file that present scan arrives
Current file mark, and the last corresponding history file mark of history resource file scanned;By the current file
Mark is compared with history file mark, in current file mark and inconsistent history file mark,
Determine that the Current resource file has differences with the history resource file.
Further, the update detection module 501 is also used to determine that present scan arrives respectively according to Message Digest 5
The corresponding current MD5 check code of Current resource file, and the last corresponding history MD5 of history resource file scanned
Check code;The current MD5 check code is compared with the history MD5 check code, in the current MD5 check code and institute
State history MD5 check code it is not identical when, determine that the Current resource file has differences with the history resource file.
Further, the update detection module 501, it is corresponding to be also used to read the Current resource file that present scan arrives
Current file size, and the last corresponding history file size of history resource file scanned;By the current file
Size is compared with the history file size, when the current file size and the history file size be not identical,
Determine that the Current resource file has differences with the history resource file.For example, if updating 501 present scan of detection module
The corresponding current file size of the Current resource file arrived is 102.5M, and the history resource file that the last time is scanned is corresponding to be gone through
History file size 80.3M then shows that the current file size and the history file size be not identical, needs to carry out resource more
Newly.
Further, the resource updates module 503 is also used to when resource updates are completed, in response to the page received
Face jump request;It is requested to carry out page jump according to the page jump, and the online resource data is switched to described
Ground resource data is shown.
The present embodiment client is requested when resource updates are completed in response to the page jump received;It is jumped according to the page
Turn request and carry out page jump, and online resource data are switched to local resource data and are shown, reduces handoff procedure
Interference to client process for using realizes real noninductive switching.
The other embodiments or specific implementation of client of the present invention can refer to above-mentioned each method embodiment, herein no longer
It repeats.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as read-only memory (Read Only Memory, ROM)/RAM, magnetic disk, CD), including some instructions are used so that one
Terminal device (can be mobile phone, computer, server, air conditioner or the network equipment etc.) executes each embodiment of the present invention
The method.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of client resource update method, which is characterized in that the described method includes:
Client obtains the resource updates from server and instructs corresponding resource to be updated when detecting resource updates instruction
Network address;
When receiving client terminal start-up instruction, the resource pair to be updated is obtained from the server according to the network address
The online resource data answered, and the online resource data are shown;
Resource updates are carried out in background process according to the online resource data, obtain local resource data;
When resource updates are completed, the online resource data are switched to the local resource data and are shown.
2. the method as described in claim 1, which is characterized in that the client is when detecting resource updates instruction, from clothes
Before business device obtains the step of resource updates instruct the network address of corresponding resource to be updated, the method also includes:
Client carries out periodic scan to the resource file stored in server presetting database;
By present scan to Current resource file be compared with the history resource file that scans of last time;
If detecting, the Current resource file has differences with the history resource file, generates resource updates instruction.
3. method according to claim 2, which is characterized in that the Current resource file for arriving present scan and last time
The step of history resource file scanned is compared, comprising:
Read the corresponding current file mark of Current resource file that present scan arrives, and the last history resource scanned
The corresponding history file mark of file;
Current file mark is compared with history file mark, in current file mark and the history
When file identification is inconsistent, determine that the Current resource file has differences with the history resource file.
4. method according to claim 2, which is characterized in that the Current resource file for arriving present scan and last time
The step of history resource file scanned is compared, comprising:
Determine the corresponding current MD5 check code of Current resource file that present scan arrives respectively according to Message Digest 5, and
The corresponding history MD5 check code of history resource file that last time is scanned;
The current MD5 check code is compared with the history MD5 check code, the current MD5 check code with it is described
When history MD5 check code is not identical, determine that the Current resource file has differences with the history resource file.
5. method according to claim 2, which is characterized in that the Current resource file for arriving present scan and last time
The step of history resource file scanned is compared, comprising:
Read the corresponding current file size of Current resource file that present scan arrives, and the last history resource scanned
The corresponding history file size of file;
The current file size is compared with the history file size, in the current file size and the history
When file size is not identical, determine that the Current resource file has differences with the history resource file.
6. such as the described in any item methods of claim 3 to 5, which is characterized in that it is described according to the online resource data rear
The step of carrying out resource updates in platform process, obtaining local resource data, comprising:
Resource updates are carried out in background process according to the online resource data;
The corresponding current network type of the client is obtained in real time, and detects whether the current network type belongs to default net
Network type;
The resource updates are interrupted when detecting that the current network type is not belonging to the default network type, and continue to obtain
Take the corresponding network type of the client;
Until restoring the resource updates when network type got belongs to the default network type.
7. method as claimed in claim 6, which is characterized in that it is described when resource updates are completed, by the online resource number
According to being switched to the step of local resource data are shown, comprising:
When resource updates are completed, requested in response to the page jump received;
It is requested to carry out page jump according to the page jump, and the online resource data is switched to the local resource number
According to being shown.
8. a kind of client, which is characterized in that the client includes: to update detection module, data acquisition module, resource updates
Module and resource switch module;
The update detection module, for obtaining the resource updates instruction from server when detecting resource updates instruction
The network address of corresponding resource to be updated;
The data acquisition module, for when receiving client terminal start-up instruction, according to the network address from the service
Device obtains the corresponding online resource data of the resource to be updated, and shows to the online resource data;
The resource updates module obtains this for carrying out resource updates in background process according to the online resource data
Ground resource data;
The resource switch module, for when resource updates are completed, the online resource data to be switched to the local money
Source data is shown.
9. a kind of client resource more new equipment, which is characterized in that the equipment includes: memory, processor and is stored in institute
The client resource more new procedures stated on memory and can run on the processor, the client resource more new procedures are matched
It is set to the step of realizing the client resource update method as described in any one of claims 1 to 7.
10. a kind of storage medium, which is characterized in that be stored with client resource more new procedures, the visitor on the storage medium
Family end resource updates program realizes client resource update side as described in any one of claim 1 to 7 when being executed by processor
The step of method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810562503.6A CN109729138A (en) | 2018-06-01 | 2018-06-01 | Client resource update method, equipment, client and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810562503.6A CN109729138A (en) | 2018-06-01 | 2018-06-01 | Client resource update method, equipment, client and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN109729138A true CN109729138A (en) | 2019-05-07 |
Family
ID=66293878
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810562503.6A Pending CN109729138A (en) | 2018-06-01 | 2018-06-01 | Client resource update method, equipment, client and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109729138A (en) |
Cited By (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110677492A (en) * | 2019-10-11 | 2020-01-10 | 北京字节跳动网络技术有限公司 | Access request processing method and device, electronic equipment and storage medium |
| CN110716730A (en) * | 2019-10-14 | 2020-01-21 | 网易(杭州)网络有限公司 | Gray scale distribution method, device, equipment and computer readable storage medium |
| CN112379944A (en) * | 2020-11-18 | 2021-02-19 | 深圳康佳电子科技有限公司 | Resource file loading method and device, storage medium and terminal equipment |
| CN112667270A (en) * | 2020-12-23 | 2021-04-16 | 科大讯飞股份有限公司 | Voice processing resource updating method, computer equipment and storage device |
| CN112783907A (en) * | 2020-12-31 | 2021-05-11 | 深圳云天励飞技术股份有限公司 | Data updating method, application end data updating method and related products |
| CN113094689A (en) * | 2021-04-06 | 2021-07-09 | 安徽中科美络信息技术有限公司 | Configuration-based single sign-on method and system in government affair system |
| CN113438554A (en) * | 2021-06-17 | 2021-09-24 | 海信视像科技股份有限公司 | Resource updating method and display device |
| CN113868562A (en) * | 2021-08-27 | 2021-12-31 | 北京达佳互联信息技术有限公司 | Resource acquisition method, device, system, electronic equipment and readable storage medium |
| CN116089360A (en) * | 2023-02-17 | 2023-05-09 | 浪潮电子信息产业股份有限公司 | Data storage management method and related components |
| CN118101338A (en) * | 2024-04-23 | 2024-05-28 | 南京南自数安技术有限公司 | Method and system for executing dynamic instructions of network attack and defense platform nodes |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5732275A (en) * | 1996-01-11 | 1998-03-24 | Apple Computer, Inc. | Method and apparatus for managing and automatically updating software programs |
| US20100205587A1 (en) * | 2009-02-10 | 2010-08-12 | Huafei Dai | Method, device and system for realizing kernel online patching |
| CN103139235A (en) * | 2011-11-23 | 2013-06-05 | 腾讯科技(深圳)有限公司 | Method and client for displaying website navigation |
| CN103678319A (en) * | 2012-09-03 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Resource file updating method, device and system and server |
| CN103781057A (en) * | 2014-01-08 | 2014-05-07 | 北京奇虎科技有限公司 | Method and device for silently downloading upgrade package |
| CN105867941A (en) * | 2016-04-18 | 2016-08-17 | 深圳市永兴元科技有限公司 | Software upgrading system and realization method thereof |
| US20170046884A1 (en) * | 2014-05-08 | 2017-02-16 | Launch Tech Co., Ltd | Personal vehicle diagnosis system and method based on mobile intelligent terminal |
| CN106648803A (en) * | 2016-12-30 | 2017-05-10 | 南京科远自动化集团股份有限公司 | Online upgrading method for DSP chip |
| CN106708537A (en) * | 2017-01-22 | 2017-05-24 | 百度在线网络技术(北京)有限公司 | Application updating method and application updating device |
| CN107784230A (en) * | 2017-02-16 | 2018-03-09 | 平安科技(深圳)有限公司 | The restorative procedure and device of page leak |
-
2018
- 2018-06-01 CN CN201810562503.6A patent/CN109729138A/en active Pending
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5732275A (en) * | 1996-01-11 | 1998-03-24 | Apple Computer, Inc. | Method and apparatus for managing and automatically updating software programs |
| US20100205587A1 (en) * | 2009-02-10 | 2010-08-12 | Huafei Dai | Method, device and system for realizing kernel online patching |
| CN103139235A (en) * | 2011-11-23 | 2013-06-05 | 腾讯科技(深圳)有限公司 | Method and client for displaying website navigation |
| CN103678319A (en) * | 2012-09-03 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Resource file updating method, device and system and server |
| CN103781057A (en) * | 2014-01-08 | 2014-05-07 | 北京奇虎科技有限公司 | Method and device for silently downloading upgrade package |
| US20170046884A1 (en) * | 2014-05-08 | 2017-02-16 | Launch Tech Co., Ltd | Personal vehicle diagnosis system and method based on mobile intelligent terminal |
| CN105867941A (en) * | 2016-04-18 | 2016-08-17 | 深圳市永兴元科技有限公司 | Software upgrading system and realization method thereof |
| CN106648803A (en) * | 2016-12-30 | 2017-05-10 | 南京科远自动化集团股份有限公司 | Online upgrading method for DSP chip |
| CN106708537A (en) * | 2017-01-22 | 2017-05-24 | 百度在线网络技术(北京)有限公司 | Application updating method and application updating device |
| CN107784230A (en) * | 2017-02-16 | 2018-03-09 | 平安科技(深圳)有限公司 | The restorative procedure and device of page leak |
Cited By (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110677492A (en) * | 2019-10-11 | 2020-01-10 | 北京字节跳动网络技术有限公司 | Access request processing method and device, electronic equipment and storage medium |
| CN110677492B (en) * | 2019-10-11 | 2022-08-02 | 北京字节跳动网络技术有限公司 | Access request processing method and device, electronic equipment and storage medium |
| CN110716730A (en) * | 2019-10-14 | 2020-01-21 | 网易(杭州)网络有限公司 | Gray scale distribution method, device, equipment and computer readable storage medium |
| CN110716730B (en) * | 2019-10-14 | 2023-09-26 | 网易(杭州)网络有限公司 | Gray release method, device, equipment and computer readable storage medium |
| CN112379944A (en) * | 2020-11-18 | 2021-02-19 | 深圳康佳电子科技有限公司 | Resource file loading method and device, storage medium and terminal equipment |
| CN112667270B (en) * | 2020-12-23 | 2024-02-13 | 科大讯飞股份有限公司 | Updating method of voice processing resource, computer equipment and storage device |
| CN112667270A (en) * | 2020-12-23 | 2021-04-16 | 科大讯飞股份有限公司 | Voice processing resource updating method, computer equipment and storage device |
| CN112783907A (en) * | 2020-12-31 | 2021-05-11 | 深圳云天励飞技术股份有限公司 | Data updating method, application end data updating method and related products |
| CN112783907B (en) * | 2020-12-31 | 2024-06-07 | 深圳云天励飞技术股份有限公司 | Data updating method, application end data updating method and related products |
| CN113094689A (en) * | 2021-04-06 | 2021-07-09 | 安徽中科美络信息技术有限公司 | Configuration-based single sign-on method and system in government affair system |
| CN113094689B (en) * | 2021-04-06 | 2024-06-07 | 中科美络科技股份有限公司 | Configuration-based single sign-on method and system in government affair system |
| CN113438554A (en) * | 2021-06-17 | 2021-09-24 | 海信视像科技股份有限公司 | Resource updating method and display device |
| CN113868562A (en) * | 2021-08-27 | 2021-12-31 | 北京达佳互联信息技术有限公司 | Resource acquisition method, device, system, electronic equipment and readable storage medium |
| CN116089360A (en) * | 2023-02-17 | 2023-05-09 | 浪潮电子信息产业股份有限公司 | Data storage management method and related components |
| CN118101338A (en) * | 2024-04-23 | 2024-05-28 | 南京南自数安技术有限公司 | Method and system for executing dynamic instructions of network attack and defense platform nodes |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109729138A (en) | Client resource update method, equipment, client and storage medium | |
| CN109726067B (en) | Process monitoring method and client device | |
| US20040210645A1 (en) | System, method and computer program product for content/context sensitive scanning utilizing a mobile communication device | |
| CN105786538B (en) | software upgrading method and device based on android system | |
| US20090017812A1 (en) | Method and system for restoring user settings after over-the-air update of mobile electronic device software | |
| CN101896889B (en) | Radio terminal, radio terminal nonvolatile memory, and diagnosis information fail-safe storage method | |
| CN104506639A (en) | A method and device for obtaining root authority | |
| CN106095458A (en) | The management method of plug-in unit and device in a kind of application program | |
| CN107783776B (en) | Method and device for processing firmware upgrade package, and electronic device | |
| CN109189686A (en) | Automation regression testing method, apparatus, storage medium and computer equipment | |
| CN103973745B (en) | A kind of method and device of mobile terminal operating system upgrading | |
| KR101201276B1 (en) | Method, software and apparatus for performing actions on a wireless device using action lists and versioning | |
| CN105630551A (en) | Method and device for installing application software and electronic equipment | |
| CN105204902B (en) | A kind of the security patch upgrade method and device of virtual machine | |
| CN111316230A (en) | Method and equipment for generating patch package | |
| CN106886422A (en) | Method for upgrading software and device, electronic equipment | |
| KR20130066901A (en) | Apparatus and method for analyzing malware in data analysis system | |
| CN110502574B (en) | Cross-system information synchronization method, user equipment, storage medium and device | |
| CN104346261B (en) | A kind of the unloading reminding method and device of application program | |
| CN114090055B (en) | Application program updating method, device, terminal and storage medium | |
| CN110502429B (en) | Management method, device, equipment and storage medium of test system | |
| CN112579330B (en) | Methods, devices and equipment for processing abnormal data in operating systems | |
| CN108549557A (en) | Using storing method, terminal and storage medium | |
| CN119597538A (en) | System updating method, device, electronic device and storage medium | |
| CN112799878A (en) | Communication data configuration method, apparatus, computer equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190507 |
|
| RJ01 | Rejection of invention patent application after publication |