CN107682436A - A kind of method, apparatus and equipment of more new file - Google Patents

A kind of method, apparatus and equipment of more new file Download PDF

Info

Publication number
CN107682436A
CN107682436A CN201710931525.0A CN201710931525A CN107682436A CN 107682436 A CN107682436 A CN 107682436A CN 201710931525 A CN201710931525 A CN 201710931525A CN 107682436 A CN107682436 A CN 107682436A
Authority
CN
China
Prior art keywords
file
updated
title
local
array
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710931525.0A
Other languages
Chinese (zh)
Inventor
汪刚
陈少杰
张文明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710931525.0A priority Critical patent/CN107682436A/en
Priority to PCT/CN2017/120167 priority patent/WO2019071858A1/en
Publication of CN107682436A publication Critical patent/CN107682436A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a kind of method, apparatus and equipment of more new file, this method includes:S1, after the request message for obtaining profile data is sent to service end, receive the profile data that service end returns;S2, profile data is parsed, obtain the title and MD5 values of at least one file to be updated in profile data;Wherein, whether the MD5 values are consistent for verifying fileinfo;S3, if the file and local file to be updated of title and MD5 value all sames be present, cancel and download the file to be updated, and retain the local file.Title and MD5 values of the invention by obtaining file to be updated, and judge with local file it is whether identical afterwards correspondingly operated, realize and the part of local file is retained and the part of file to be updated is downloaded, the flow that mobile terminal consumed during file renewal is saved, the memory space of mobile terminal is released, local file is consistent with service end.

Description

A kind of method, apparatus and equipment of more new file
Technical field
The present invention relates to Internet technical field, and in particular to a kind of method, apparatus and equipment of more new file.
Background technology
With the fast development of the mobile terminal of such as mobile phone, mobile terminal is frequently necessary to download or more new file;And for warp The file of mobile terminal is stored in after download, through after a period of time, if this file expiration, needing to delete;Such as This file of fruit does not have expired, then needs normal use this document, should not delete;For the above situation, due to mobile terminal Memory capacity is limited, it is therefore desirable to which these files are managed.
For example, N number of file for being stored in mobile terminal, and M file in N number of file is available, is not Need what is deleted;In the prior art, typically N number of file of whole is all deleted, or do not deleted.Therefore, prior art Following technological deficiency at least be present:N number of file, which is not deleted, can take the substantial amounts of memory space in mobile terminal, influence making for mobile terminal With;And all delete, available M file needs when using next time can be caused to be re-downloaded from service end, waste stream Amount.
The content of the invention
For drawbacks described above present in prior art, the present invention provides a kind of method, apparatus and equipment of more new file.
An aspect of of the present present invention provides a kind of method of more new file, including:S1, sent to service end and obtain configuration file After the request message of data, the profile data that service end returns is received;Wherein, configuration file is given birth to beforehand through service end Into be used for store the text type file of fileinfo to be updated;S2, the profile data is parsed, obtain institute State the title and MD5 values of at least one file to be updated in profile data;Wherein, the MD5 values are used to verify file letter Whether breath is consistent;S3, if the file and local file to be updated of title and MD5 value all sames be present, cancel and being treated described in downloading More new file, and retain the local file.
Wherein, the step of sending the request message for obtaining profile data to service end in the S1 further comprises: S11, the address of configuration file download link is obtained, the request message is sent to service end according to the address;S12, receive The error code that service end returns, if the error code is 0, ask successfully, and receive the configuration file of service end return Data.
Wherein, the step S2 further comprises:S21, the profile data is parsed, obtain data word Allusion quotation;S22, value processing is carried out to the data dictionary, obtains the array to be updated for including at least one element;Wherein, each The element at least records the title and MD5 values of a file to be updated.
Wherein, also include before the step S3:The title of local file is obtained by searching loop, and will be described local literary The title of part is stored to local array;Obtain the path corresponding to the title of the local file;According to the path to described Local file carries out md5 encryption, obtains MD5 values corresponding to the local file.
Wherein, the step S3 further comprises:S31, the array to be updated is traveled through, by the array to be updated Each file to be updated is compared with the local file in the local array;If treating for title and MD5 value all sames be present More new file and local file, then the title of the local file is added to the cancellation being pre-created and downloads array;S32, time The array to be updated is gone through, each file to be updated in the array to be updated is judged;If the file to be updated Title with corresponding download link, and the file to be updated is not included in described cancel and downloaded in array, then according to institute State download link and download the file to be updated, and delete title and be not included in the local file cancelled and downloaded in array.
Wherein, also include after the step S22:S23, judge whether the array to be updated is array type, if not Array type, then terminate file renewal.
Wherein, the step of address that configuration file download link is obtained in the S11, further comprises:Obtain configuration file The base address and fixing address of download link;Splice the base address and the fixing address, obtain the configuration file The address of download link.
Another aspect of the present invention provides a kind of device of more new file, including:Receiving module, obtained for being sent to service end After taking the request message of profile data, the profile data that service end returns is received;Wherein, configuration file is logical in advance Cross the text type file for being used to store fileinfo to be updated of service end generation;Acquisition module, for the configuration text Number of packages obtains the title and MD5 values of at least one file to be updated in the profile data according to being parsed;Wherein, institute It is whether consistent for verifying fileinfo to state MD5 values;Update module, if for the to be updated of title and MD5 value all sames be present File and local file, then cancel and download the file to be updated, and retain the local file.
Another aspect of the present invention provides a kind of equipment of more new file, including:At least one processor;And with it is described At least one memory of processor communication connection, wherein:The memory storage has can be by the program of the computing device Instruction, the processor call the method that described program instruction is able to carry out the more new file that the above-mentioned aspect of the present invention provides, example Such as include:S1, after the request message for obtaining profile data is sent to service end, receive the configuration file number that service end returns According to;Wherein, configuration file is the text type file for being used to store fileinfo to be updated beforehand through service end generation; S2, the profile data is parsed, obtain the title of at least one file to be updated in the profile data With MD5 values;Wherein, whether the MD5 values are consistent for verifying fileinfo;S3, if treating for title and MD5 value all sames be present More new file and local file, then cancel and download the file to be updated, and retain the local file.
Another aspect of the present invention provides a kind of non-transient computer readable storage medium storing program for executing, and the non-transient computer is readable Storage medium stores computer instruction, and the computer instruction makes the computer perform the renewal that the above-mentioned aspect of the present invention provides The method of file, such as including:S1, after the request message for obtaining profile data is sent to service end, receive service end and return The profile data returned;Wherein, configuration file is for storing fileinfo to be updated beforehand through service end generation Text type file;S2, the profile data is parsed, obtain at least one in the profile data treat more The title and MD5 values of new file;Wherein, whether the MD5 values are consistent for verifying fileinfo;S3, if title and MD5 be present It is worth the file and local file to be updated of all same, then cancels and download the file to be updated, and retain the local file.
The method, apparatus and equipment of more new file provided by the invention, by the title and MD5 that obtain file to be updated Value, and judge with local file it is whether identical after correspondingly operated, realize to the reservation of the part of local file and treat The part of more new file is downloaded, and has been saved the flow that mobile terminal consumed during file renewal, has been released depositing for mobile terminal Space is stored up, local file is consistent with service end.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are this hairs Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can be with root Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of the method for more new file provided in an embodiment of the present invention;
Fig. 2 is the structural representation of the device of more new file provided in an embodiment of the present invention;
Fig. 3 is the structural representation of the equipment of more new file provided in an embodiment of the present invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is explicitly described, it is clear that described embodiment be the present invention Part of the embodiment, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not having The every other embodiment obtained under the premise of creative work is made, belongs to the scope of protection of the invention.
Fig. 1 is the schematic flow sheet of the method for more new file provided in an embodiment of the present invention, as shown in figure 1, including:S1, After the request message for obtaining profile data is sent to service end, the profile data that service end returns is received;Wherein, match somebody with somebody It is the text type file for being used to store fileinfo to be updated beforehand through service end generation to put file;S2, match somebody with somebody to described Put file data to be parsed, obtain the title and MD5 values of at least one file to be updated in the profile data;Its In, whether the MD5 values are consistent for verifying fileinfo;S3, if exist title and MD5 value all sames file to be updated and Local file, then cancel and download the file to be updated, and retain the local file.
Wherein, configuration file is the text type file pre-set in service end;This document have recorded file to be updated Information, title or ID, download link and MD5 values including at least file to be updated;In the embodiment of the present invention, mobile terminal can be with By sending request message, the data in configuration file are got.
Wherein, MD5 is Message-Digest Algorithm 5 (Message-Digest Algorithm 5), for ensuring information transfer It is complete consistent;It is one of widely used hash algorithm of computer (translating digest algorithm, hash algorithm again), main flow programming language is general Realized all over existing MD5;It is another fixed-length value by data (such as Chinese character) computing, is the basic principle of hash algorithm, before MD5 Body has MD2, MD3 and MD4.Selection MD5 of the embodiment of the present invention as confirm fileinfo whether identical means, but the present invention is real Apply the protection domain not limited to this of example.
In step sl, mobile terminal sends a request message to service end first, and request is carried in the request message Obtain the information of profile data;After service end receives request message, it can be returned according to the request message to mobile terminal Send configuration file data.
Specifically can by mobile terminal increase file configuration interface function function cheackCustomEmblemConfig, Realize that mobile terminal judges which file (compressed package files) to be updated downloaded by the function.
In step s 2, profile data can be entered according to the profile data obtained in step S1, mobile terminal Row further parsing;The information carried in configuration file is obtained, the information includes the relevant information of at least one file to be updated, Relevant information comprises at least file name and MD5 values.Such as file to be updated is compressed package files, then include the compression after parsing MD5 values corresponding to the title and compressed package of bag.
In step s3, according to the title and MD5 values of the file to be updated obtained in step S2, the title with local file It is compared with MD5 values, it is specific as follows:
If the MD5 values and title of a local file and file to be updated are all identical, illustrate the file to be updated Do not change with the information of the local file, the local file need not update, then just cancel and download this file to be updated; Likewise, not having to delete this local file in mobile terminal, the local file is retained.
It should be downloaded accordingly for other files to be updated in addition to cancelling the file to be updated downloaded; Other local files in addition to the local file of reservation should be deleted.
The method of more new file provided in an embodiment of the present invention, by obtaining the title and MD5 values of file to be updated, and sentence It is disconnected it is whether identical with local file after correspondingly operated, realize part reservation to local file and to file to be updated Part download, saved mobile terminal and carried out the flow that consumes during file renewal, released the memory space of mobile terminal, make Local file is consistent with service end.
On the basis of any of the above-described embodiment, the request for sending acquisition profile data in the S1 to service end disappears The step of breath, further comprises:S11, the address of configuration file download link is obtained, institute is sent to service end according to the address State request message;S12, the error code that service end returns is received, if the error code is 0, is asked successfully, and receive service end The profile data returned.
In step s 11, mobile terminal gets the address of the download link of configuration file first, then goes to take by this address The data of business end request configuration file.
In step s 12, in step s 11 after request data, service end can send an error code to mobile terminal and inform This network request is success or failure;If it succeeds, error code is 0, and service end can return to profile data.
On the basis of any of the above-described embodiment, the step S2 further comprises:S21, to the profile data Parsed, obtain data dictionary;S22, value processing is carried out to the data dictionary, obtains and is treated comprising at least one element Update array;Wherein, each element at least records the title and MD5 values of a file to be updated.
Wherein, data dictionary refers to the data item to data, data structure, data flow, data storage, processing logic, outer Portion's entity etc. is defined and described.
In the step s 21, mobile terminal parses to the profile data received, becomes data word after parsing Allusion quotation;Related processing is performed to data dictionary afterwards to operate.
In step S22, according to the data dictionary obtained in step S21, value operation is carried out to data dictionary, such as make An array newListArray to be updated is taken out from data dictionary with objectForKey methods;This array to be updated is deposited At least one element is stored up, each element have recorded the title (title of ID or compressed package) and MD5 values of a file to be updated; Furthermore it is also possible to include the download link of file to be updated.
On the basis of any of the above-described embodiment, also include before the step S3:Local file is obtained by searching loop Title, and the title of the local file is stored to local array;Obtain the road corresponding to the title of the local file Footpath;Md5 encryption is carried out to the local file according to the path, obtains MD5 values corresponding to the local file.
Specifically, a local array localZipFile can be pre-created, for storing the information of local file;Can To have stored in the local file of mobile terminal using a searching loop, the title of each local file (compressed package) is obtained, And each title is stored in local array.
Then according to the title file of local file, store path filePath corresponding to local file is obtained;According to depositing Store up path and md5 encryption is carried out to local file, get MD5 values corresponding to local file difference;And it is possible to MD5 values are deposited Store up in local array under the title of corresponding local file.
On the basis of any of the above-described embodiment, the step S3 further comprises:S31, the array to be updated is traveled through, By each file to be updated in the array to be updated compared with the local file in the local array;If in the presence of name The file and local file to be updated of title and MD5 value all sames, then the title of the local file is added to what is be pre-created Cancel and download array, and retain the local file;S32, the array to be updated is traveled through, to every in the array to be updated Individual file to be updated is judged;If the file to be updated has corresponding download link, and the name of the file to be updated Title is not included in described cancel and downloaded in array, then downloads the file to be updated according to the download link, and delete title It is not included in the local file cancelled and downloaded in array.
In step S31, array to be updated is traveled through, the title of each file to be updated and MD5 values are compared into text Title and MD5 values compare one time;If the title of the title and MD5 values of file to be updated and local file is all identical, explanation Fileinfo does not change, and local file need not update, and just identical title is stored in the cancellation being pre-created and downloads number Group doNotNeedDownLoadRoomIDArray.After traversal, cancel download array just save it is all need not download treat The title of more new file, correspondingly, and the local file of reservation in need title.
In step s 32, array to be updated is performed and performs a traversing operation again, first determine whether each file to be updated Whether title has corresponding download link zipUrl, if it is present proving that the file to be updated is Downloadable;Judge again more Whether the title of new file, which is included in cancel, is downloaded in array, if do not included, is illustrated local no file to be updated, is needed The file to be updated is downloaded;Otherwise, without downloading.After traversal, it becomes possible to it is all be locally not present treat More new file completes down operation.
In addition, cancel the title downloaded and the local file for needing to retain equally is saved in array, then under cancellation Carry the local file execution deletion action for not including title in array.
By the double-deck searching loop of array can effectively save size of code, improve performance.
On the basis of any of the above-described embodiment, also include after the step S22:S23, judge that the array to be updated is No is array type, if not array type, then terminate file renewal.
Specifically, after getting array to be updated, array type should be determined whether, such as use determination methods IsKindOfClass, if its actual types is not array type, should terminate update method, after can so avoiding Processing to array due to it is not array type and collapse when causing operation.
On the basis of any of the above-described embodiment, enter in the S11 the step of address of acquisition configuration file download link One step includes:Obtain the base address and fixing address of configuration file download link;Splice the base address and the fixation Address, obtain the address of the configuration file download link.
Specifically, in order to read configuration file, it is necessary to obtain the address of the download link of configuration file;Before the address includes The base address (baseUrl) of half part and the fixing address (Url) of latter half;Wherein, baseUrl is that various environment are corresponding Address, it is different in different environment (test environment or formal environments);Url is typically more fixed;Will BaseUrl and Url is spliced into the address (requestStr) of a complete download link, it is possible to is gone by requestStr Service end asks profile data.
Fig. 2 is the structural representation of the device of more new file provided in an embodiment of the present invention, as shown in Fig. 2 including:Receive Module 201, after the request message for obtaining profile data is sent to service end, receive the configuration file that service end returns Data;Wherein, configuration file is the text type file for being used to store fileinfo to be updated beforehand through service end generation; Acquisition module 202, for being parsed to the profile data, obtain at least one in the profile data treat more The title and MD5 values of new file;Wherein, whether the MD5 values are consistent for verifying fileinfo;Update module 203, if for The file and local file to be updated of title and MD5 value all sames be present, then cancel and download the file to be updated, and retain institute State local file.
Specifically, receiving module 201 sends a request message to service end first, and request is carried in the request message Obtain the information of profile data;, can be according to the request message to receiving module 201 after service end receives request message Return to send configuration file data.
Receiving module 201 specifically can be by increasing file configuration interface function function CheackCustomEmblemConfig, realized by the function and judge which file (compressed package files) to be updated downloaded.
Specifically, acquisition module 202 is according to the profile data obtained in receiving module 201, and acquisition module 202 can be with Profile data is further parsed;The information carried in configuration file is obtained, the information includes at least one treat more The relevant information of new file, relevant information comprise at least file name and MD5 values.Such as file to be updated is compressed package files, MD5 values corresponding to title and compressed package after then parsing including the compressed package.
Specifically, update module 203 is according to the title and MD5 values of the file to be updated obtained in acquisition module 202, with this The title and MD5 values of ground file are compared, specific as follows:
If the MD5 values and title of a local file and file to be updated are all identical, illustrate the file to be updated Do not change with the information of the local file, the local file need not update, then update module 203, which is just cancelled, downloads this File to be updated;Likewise, update module 203 does not have to delete this local file, the local file is retained.
Accordingly for other files to be updated in addition to cancelling the file to be updated downloaded, update module 203 should When being downloaded;To other local files in addition to the local file of reservation, update module 203 should be deleted.
The device of more new file provided in an embodiment of the present invention, by obtaining the title and MD5 values of file to be updated, and sentence It is disconnected it is whether identical with local file after correspondingly operated, realize part reservation to local file and to file to be updated Part download, saved mobile terminal and carried out the flow that consumes during file renewal, released the memory space of mobile terminal, make Local file is consistent with service end.
On the basis of any of the above-described embodiment, the receiving module 201 further comprises:Acquiring unit, for obtaining The address of configuration file download link, the request message is sent to service end according to the address;Receiving unit, for receiving The error code that service end returns, if the error code is 0, ask successfully, and receive the configuration file of service end return Data.
On the basis of any of the above-described embodiment, the acquisition module 202 further comprises:Resolution unit, for institute State profile data to be parsed, obtain data dictionary;Value unit, for carrying out value processing to the data dictionary, Obtain the array to be updated for including at least one element;Wherein, each element at least records the name of a file to be updated Claim and MD5 values.
On the basis of any of the above-described embodiment, described device also includes:Memory module, for being obtained by searching loop The title of local file, and the title of the local file is stored to local array;Encrypting module, for obtaining the local Path corresponding to the title of file;Md5 encryption is carried out to the local file according to the path, obtains the local file Corresponding MD5 values.
On the basis of any of the above-described embodiment, the update module 203 further comprises:First Traversal Unit, is used for The array to be updated is traveled through, by the local text in each file to be updated in the array to be updated and the local array Part is compared;If the file and local file to be updated of title and MD5 value all sames be present, by the name of the local file Claim to download array added to the cancellation being pre-created;Second Traversal Unit, for traveling through the array to be updated, treated more to described Each file to be updated in new array is judged;If the file to be updated has corresponding download link, and described treats The title of more new file is not included in described cancel and downloaded in array, then downloads the text to be updated according to the download link Part, and delete title and be not included in the local file cancelled and downloaded in array.
On the basis of any of the above-described embodiment, the acquisition module 202 also includes:Unit is terminated, it is described for judging Whether array to be updated is array type, if not array type, then terminate file renewal.
On the basis of any of the above-described embodiment, the acquiring unit further comprises:Address acquisition subelement, for obtaining Take the base address and fixing address of configuration file download link;Splice subelement, for splicing the base address and described Fixing address, obtain the address of the configuration file download link.
Fig. 3 is the structural representation of the equipment of more new file provided in an embodiment of the present invention, as shown in figure 3, the equipment bag Include:At least one processor 301;And at least one memory 302 with the processor 301 communication connection, wherein:It is described Memory 302 is stored with the programmed instruction that can be performed by the processor 301, and the processor 301 calls described program instruction It is able to carry out the method for the more new file that the various embodiments described above are provided, such as including:S1, sent to service end and obtain configuration text After the request message of number of packages evidence, the profile data that service end returns is received;Wherein, configuration file is beforehand through service end The text type file for being used to store fileinfo to be updated of generation;S2, the profile data is parsed, obtained The title and MD5 values of at least one file to be updated in the profile data;Wherein, the MD5 values are used to verify file Whether information is consistent;S3, if the file and local file to be updated of title and MD5 value all sames be present, cancel described in downloading File to be updated, and retain the local file.
The embodiment of the present invention also provides a kind of non-transient computer readable storage medium storing program for executing, the non-transient computer readable storage Medium storing computer instructs, and the computer instruction makes the method that computer performs the more new file that corresponding embodiment is provided, Such as including:S1, after the request message for obtaining profile data is sent to service end, receive the configuration file that service end returns Data;Wherein, configuration file is the text type file for being used to store fileinfo to be updated beforehand through service end generation; S2, the profile data is parsed, obtain the title of at least one file to be updated in the profile data With MD5 values;Wherein, whether the MD5 values are consistent for verifying fileinfo;S3, if treating for title and MD5 value all sames be present More new file and local file, then cancel and download the file to be updated, and retain the local file.
The embodiments such as the equipment of more new file described above are only schematical, wherein illustrating as separating component Unit can be or may not be physically separate, can be as the part that unit is shown or may not be Physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to the actual needs Some or all of module therein is selected to realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not paying In the case of performing creative labour, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can Realized by the mode of software plus required general hardware platform, naturally it is also possible to pass through hardware.Based on such understanding, on The part that technical scheme substantially in other words contributes to prior art is stated to embody in the form of software product, should Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including some fingers Make to cause a computer equipment (can be personal computer, server, or network equipment etc.) to perform each implementation Some Part Methods of example or embodiment.
The method, apparatus and equipment of more new file provided in an embodiment of the present invention, by the title for obtaining file to be updated With MD5 values, and judge with local file it is whether identical after correspondingly operated, realize to the reservation of the part of local file with The part of file to be updated is downloaded, the flow that mobile terminal consumed during file renewal has been saved, has released mobile terminal Memory space, local file is consistent with service end.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used To be modified to the technical scheme described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic; And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and Scope.

Claims (10)

  1. A kind of 1. method of more new file, it is characterised in that including:
    S1, after the request message for obtaining profile data is sent to service end, receive the profile data that service end returns; Wherein, configuration file is the text type file for being used to store fileinfo to be updated beforehand through service end generation;
    S2, the profile data is parsed, obtain at least one file to be updated in the profile data Title and MD5 values;Wherein, whether the MD5 values are consistent for verifying fileinfo;
    S3, if the file and local file to be updated of title and MD5 value all sames be present, cancel and download the text to be updated Part, and retain the local file.
  2. 2. according to the method for claim 1, it is characterised in that sent in the S1 to service end and obtain profile data Request message the step of further comprise:
    S11, the address of configuration file download link is obtained, the request message is sent to service end according to the address;
    S12, the error code that service end returns is received, if the error code is 0, is asked successfully, and receive service end return The profile data.
  3. 3. according to the method for claim 1, it is characterised in that the step S2 further comprises:
    S21, the profile data is parsed, obtain data dictionary;
    S22, value processing is carried out to the data dictionary, obtains the array to be updated for including at least one element;Wherein, each The element at least records the title and MD5 values of a file to be updated.
  4. 4. the method according to claim 1 or 3, it is characterised in that also include before the step S3:
    The title of local file is obtained by searching loop, and the title of the local file is stored to local array;
    Obtain the path corresponding to the title of the local file;Md5 encryption is carried out to the local file according to the path, Obtain MD5 values corresponding to the local file.
  5. 5. according to the method for claim 4, it is characterised in that the step S3 further comprises:
    S31, the array to be updated is traveled through, by each file to be updated in the array to be updated and the local array Local file be compared;
    If the file and local file to be updated of title and MD5 value all sames be present, the title of the local file is added Array is downloaded to the cancellation being pre-created;
    S32, the array to be updated is traveled through, each file to be updated in the array to be updated is judged;
    If the file to be updated has corresponding download link, and the title of the file to be updated is not included in the cancellation Download in array, then the file to be updated is downloaded according to the download link, and delete title and be not included under the cancellation Carry the local file in array.
  6. 6. according to the method for claim 3, it is characterised in that also include after the step S22:
    S23, judge whether the array to be updated is array type, if not array type, then terminate file renewal.
  7. 7. according to the method for claim 2, it is characterised in that the address of configuration file download link is obtained in the S11 The step of further comprise:
    Obtain the base address and fixing address of configuration file download link;
    Splice the base address and the fixing address, obtain the address of the configuration file download link.
  8. A kind of 8. device of more new file, it is characterised in that including:
    Receiving module, after the request message for obtaining profile data is sent to service end, receive matching somebody with somebody for service end return Put file data;Wherein, configuration file is the text class for being used to store fileinfo to be updated beforehand through service end generation Type file;
    Acquisition module, for being parsed to the profile data, obtain at least one in the profile data treat The title and MD5 values of more new file;Wherein, whether the MD5 values are consistent for verifying fileinfo;
    Update module, if for the file and local file to be updated of title and MD5 value all sames be present, cancel described in downloading File to be updated, and retain the local file.
  9. A kind of 9. equipment of more new file, it is characterised in that including:
    At least one processor;
    And at least one memory being connected with the processor communication, wherein:The memory storage has can be by the place The programmed instruction that device performs is managed, the processor calls described program instruction to be able to carry out as described in claim 1 to 7 is any Method.
  10. 10. a kind of non-transient computer readable storage medium storing program for executing, it is characterised in that the non-transient computer readable storage medium storing program for executing is deposited Computer instruction is stored up, the computer instruction makes the computer perform the method as described in claim 1 to 7 is any.
CN201710931525.0A 2017-10-09 2017-10-09 A kind of method, apparatus and equipment of more new file Pending CN107682436A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710931525.0A CN107682436A (en) 2017-10-09 2017-10-09 A kind of method, apparatus and equipment of more new file
PCT/CN2017/120167 WO2019071858A1 (en) 2017-10-09 2017-12-29 File update method, apparatus, and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710931525.0A CN107682436A (en) 2017-10-09 2017-10-09 A kind of method, apparatus and equipment of more new file

Publications (1)

Publication Number Publication Date
CN107682436A true CN107682436A (en) 2018-02-09

Family

ID=61139967

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710931525.0A Pending CN107682436A (en) 2017-10-09 2017-10-09 A kind of method, apparatus and equipment of more new file

Country Status (2)

Country Link
CN (1) CN107682436A (en)
WO (1) WO2019071858A1 (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109409933A (en) * 2018-09-26 2019-03-01 深圳壹账通智能科技有限公司 Intelligent fee counting method, computer readable storage medium and terminal device
CN109543155A (en) * 2018-10-18 2019-03-29 恒峰信息技术有限公司 A kind of data automatic update method and system
CN109582350A (en) * 2018-12-24 2019-04-05 广东金赋科技股份有限公司 The method of configuration file in automated maintenance self-help tax service terminal
CN109999489A (en) * 2019-03-29 2019-07-12 北京金山安全软件有限公司 Resource updating method and device and electronic equipment
CN111090446A (en) * 2019-12-20 2020-05-01 北京海益同展信息科技有限公司 Configuration file updating method and system
CN111324362A (en) * 2018-12-14 2020-06-23 北京宝沃汽车有限公司 Vehicle, and method and device for updating vehicle electronic control system program
CN111416863A (en) * 2020-03-20 2020-07-14 上海圣剑网络科技股份有限公司 Diversified download management method, terminal and medium based on client
CN111988296A (en) * 2020-08-12 2020-11-24 深圳杰微芯片科技有限公司 Computing power equipment overclocking method, server and storage medium
CN112988691A (en) * 2021-03-31 2021-06-18 深圳市优必选科技股份有限公司 File updating method and device based on embedded system and terminal equipment
CN113778997A (en) * 2021-09-26 2021-12-10 杭州安恒信息技术股份有限公司 Database version management method, system and equipment
CN116647732A (en) * 2023-07-27 2023-08-25 深圳市华曦达科技股份有限公司 Updating configuration method and device based on intelligent television box security

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113157307A (en) * 2020-01-07 2021-07-23 普天信息技术有限公司 Software version upgrading method and device
CN111580884B (en) * 2020-04-30 2024-04-19 北京金山云网络技术有限公司 Configuration updating method, device, server and electronic equipment
CN112099831A (en) * 2020-09-28 2020-12-18 中国银行股份有限公司 Batch updating method and device for configuration files
CN112948389B (en) * 2021-03-05 2023-07-25 上海上讯信息技术股份有限公司 MD 5-based database table data comparison method and device
CN113360169B (en) * 2021-06-08 2023-05-16 康佳集团股份有限公司 Image quality parameter upgrading system and method
CN113590155B (en) * 2021-07-29 2023-06-20 深圳锦弘霖科技有限公司 Remote incremental updating method for self-grinding RTOS
CN114745268A (en) * 2022-03-31 2022-07-12 杭州视洞科技有限公司 Method for online updating and loading algorithm library of network camera
CN114595199B (en) * 2022-05-10 2022-09-02 太平金融科技服务(上海)有限公司 File analysis method and device, computer equipment and storage medium
CN116680012B (en) * 2023-08-01 2023-10-24 浙江春风动力股份有限公司 Industrial software configuration management system and method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101425931A (en) * 2008-12-08 2009-05-06 上海华为技术有限公司 Communication apparatus software updating method, related equipment and communication system
CN102053853A (en) * 2010-12-30 2011-05-11 北京像素软件科技股份有限公司 Version updating method of online game
WO2012011743A2 (en) * 2010-07-20 2012-01-26 한국전자통신연구원 Apparatus and method for providing streaming contents
CN102456027A (en) * 2010-10-21 2012-05-16 北京市金蝶政务软件有限公司 Method, terminals and system for copying files in distributed system
CN102833350A (en) * 2012-09-11 2012-12-19 优视科技有限公司 Processing method and processing device of WebApp updating
CN106326310A (en) * 2015-07-06 2017-01-11 北京壹平台科技有限公司 Resource encryption updating method for mobile phone client software
CN107040615A (en) * 2017-06-22 2017-08-11 深圳Tcl数字技术有限公司 Method for down loading, terminal and the computer-readable recording medium of media slicing

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104426924A (en) * 2013-08-21 2015-03-18 腾讯科技(深圳)有限公司 Method, apparatus, client, server and system for updating application software
CN104657170A (en) * 2013-11-25 2015-05-27 腾讯科技(上海)有限公司 Data updating method, device and system
CN106302592B (en) * 2015-05-28 2021-01-01 腾讯科技(深圳)有限公司 Terminal application updating method, server and terminal
CN105160253B (en) * 2015-09-29 2018-11-09 网易(杭州)网络有限公司 Repair method, apparatus, system and the server of client-side program
CN105446829A (en) * 2015-09-29 2016-03-30 网易(杭州)网络有限公司 Client program repair method, device and system and server

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101425931A (en) * 2008-12-08 2009-05-06 上海华为技术有限公司 Communication apparatus software updating method, related equipment and communication system
WO2012011743A2 (en) * 2010-07-20 2012-01-26 한국전자통신연구원 Apparatus and method for providing streaming contents
CN102456027A (en) * 2010-10-21 2012-05-16 北京市金蝶政务软件有限公司 Method, terminals and system for copying files in distributed system
CN102053853A (en) * 2010-12-30 2011-05-11 北京像素软件科技股份有限公司 Version updating method of online game
CN102833350A (en) * 2012-09-11 2012-12-19 优视科技有限公司 Processing method and processing device of WebApp updating
CN106326310A (en) * 2015-07-06 2017-01-11 北京壹平台科技有限公司 Resource encryption updating method for mobile phone client software
CN107040615A (en) * 2017-06-22 2017-08-11 深圳Tcl数字技术有限公司 Method for down loading, terminal and the computer-readable recording medium of media slicing

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109409933A (en) * 2018-09-26 2019-03-01 深圳壹账通智能科技有限公司 Intelligent fee counting method, computer readable storage medium and terminal device
CN109543155A (en) * 2018-10-18 2019-03-29 恒峰信息技术有限公司 A kind of data automatic update method and system
CN111324362A (en) * 2018-12-14 2020-06-23 北京宝沃汽车有限公司 Vehicle, and method and device for updating vehicle electronic control system program
CN109582350B (en) * 2018-12-24 2022-06-28 广东金赋科技股份有限公司 Method for automatically maintaining configuration file in self-service tax terminal
CN109582350A (en) * 2018-12-24 2019-04-05 广东金赋科技股份有限公司 The method of configuration file in automated maintenance self-help tax service terminal
CN109999489A (en) * 2019-03-29 2019-07-12 北京金山安全软件有限公司 Resource updating method and device and electronic equipment
CN111090446A (en) * 2019-12-20 2020-05-01 北京海益同展信息科技有限公司 Configuration file updating method and system
CN111416863A (en) * 2020-03-20 2020-07-14 上海圣剑网络科技股份有限公司 Diversified download management method, terminal and medium based on client
CN111988296A (en) * 2020-08-12 2020-11-24 深圳杰微芯片科技有限公司 Computing power equipment overclocking method, server and storage medium
CN112988691A (en) * 2021-03-31 2021-06-18 深圳市优必选科技股份有限公司 File updating method and device based on embedded system and terminal equipment
CN113778997A (en) * 2021-09-26 2021-12-10 杭州安恒信息技术股份有限公司 Database version management method, system and equipment
CN113778997B (en) * 2021-09-26 2024-02-02 杭州安恒信息技术股份有限公司 Database version management method, system and equipment
CN116647732A (en) * 2023-07-27 2023-08-25 深圳市华曦达科技股份有限公司 Updating configuration method and device based on intelligent television box security
CN116647732B (en) * 2023-07-27 2024-04-19 深圳市华曦达科技股份有限公司 Updating configuration method and device based on intelligent television box security

Also Published As

Publication number Publication date
WO2019071858A1 (en) 2019-04-18

Similar Documents

Publication Publication Date Title
CN107682436A (en) A kind of method, apparatus and equipment of more new file
US8219984B2 (en) Firmware update network and process employing preprocessing techniques
CN104346167B (en) The method and device of channel bag is applied in generation
CN102752326B (en) The method of deal with data, server and system in the time of download file
CN102053853A (en) Version updating method of online game
US20060190939A1 (en) Updatable mobile handset based on linux with compression and decompression techniques
CN105302563B (en) The plug-in unit method and system of mobile application service
CN107710215A (en) The method and apparatus of mobile computing device safety in test facilities
CN107748668A (en) A kind of method and device of application program updating
CN109908585B (en) File processing method and system, computing device and storage medium
CN103973745B (en) A kind of method and device of mobile terminal operating system upgrading
KR20070039067A (en) Information service system, information server, portable terminal, information service control program and portable terminal control program
CN107135188A (en) The service implementation method of financial information exchange FIX agreements, apparatus and system
CN105786636B (en) A kind of system repair and device
CN110874345B (en) Data processing method, device and system in distributed storage system
CN103139298B (en) Method for transmitting network data and device
CN106708494A (en) JAR upgrading method and apparatus
CN112328284A (en) Application program upgrading method, system, equipment and storage medium
CN107239303A (en) The generation of application program update bag and method, the device of application program update
CN107402761A (en) Using restorative procedure and device
CN108008984A (en) A kind of resource file downloading updating method and device
CN107330604A (en) The management method and system of air ticket air control rule
CN115511622A (en) Intelligent contract upgrading method, device, equipment and storage medium
CN109002710A (en) A kind of detection method, device and computer readable storage medium
CN111078257A (en) Loading method and related device of H5 application package

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180209