CN107038039A - Data-updating method and device - Google Patents

Data-updating method and device Download PDF

Info

Publication number
CN107038039A
CN107038039A CN201610078418.3A CN201610078418A CN107038039A CN 107038039 A CN107038039 A CN 107038039A CN 201610078418 A CN201610078418 A CN 201610078418A CN 107038039 A CN107038039 A CN 107038039A
Authority
CN
China
Prior art keywords
data
file
applications client
new
new file
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
CN201610078418.3A
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610078418.3A priority Critical patent/CN107038039A/en
Publication of CN107038039A publication Critical patent/CN107038039A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of data-updating method and device, belong to areas of information technology.This method includes:By providing SDK for applications client, the SDK is used for encapsulation of data more new interface;Based on the data more new interface, the data for receiving applications client update request;Updated and asked according to the data, obtain the more new file of the applications client;The more new file is sent to the applications client so that the applications client is based on the more new file, carry out data renewal.Using such data-updating method, not only cause applications client need not be reinstalled all or part of data may be updated, and reduce development and maintenance cost, improve the convenience of data renewal.

Description

Data-updating method and device
Technical field
The present invention relates to areas of information technology, more particularly to a kind of data-updating method and device.
Background technology
With the development of information technology, the data renewal speed that applications client needs is more and more faster, Jin Erru What causes applications client easily to update the data, and becomes one of technical problem important in the art.
At present, two kinds mainly are used for the method for realizing that application client end data updates.The first, using visitor Family end can realize that data update by downloading the form of installation kit from applications client distribution platform.Second, Applications client can also be carried out by the data update module of itself and the background server of the applications client Interaction realizes that data update.
The first above-mentioned data-updating method is for the overall update method of applications client, it is impossible to application The partial data of client is updated, and needs user actively to download installation kit, and reinstalls the application Client.And above-mentioned second method is, it is necessary to which the developer of applications client is not only real in background server The now generation of more new file, in addition it is also necessary to the data update module of development and application client, causes exploitation, dimension Protect the problem of cost is high.
The content of the invention
In order to solve problem of the prior art, the embodiments of the invention provide a kind of data-updating method and device. The technical scheme is as follows:
First aspect there is provided a kind of data-updating method, including:
SDK is provided for applications client, the SDK is used for encapsulation of data more New interface;
Based on the data more new interface, the data for receiving applications client update request;
Updated and asked according to the data, obtain the more new file of the applications client;
To more new file described in applications client transmission so that the applications client is based on described update File, carries out data renewal.
Second aspect there is provided a kind of data update apparatus, including:
Data update interface module, for providing SDK, the software development for applications client Kit is used for encapsulation of data more new interface;
Receiving module, for based on the data more new interface, the data for receiving applications client to update request;
Acquisition module, is asked for being updated according to the data, obtains the more new file of the applications client;
Sending module, for the applications client send described in more new file so that the application client End group carries out data renewal in the more new file.
The third aspect there is provided a kind of form of more new file, including:Update file header, update end-of-file With at least one packet;The renewal file header includes application name, correspondence new and old edition number, packet The difference algorithm information used when number, file size and progress difference processing.
Fourth aspect includes there is provided a kind of data-updating method, methods described:
The SDK that third-party server is provided is obtained, the SDK is used to encapsulate Data more new interface;
Based on the data more new interface, send data to the third-party server and update request;
Receive the more new file that the third-party server is returned;
Based on the more new file, data renewal is carried out.
There is provided a kind of data update apparatus for 5th aspect, it is characterised in that described device includes:
Acquisition module, the SDK for obtaining third-party server offer, the software development Kit is used for encapsulation of data more new interface;
Sending module, for based on the data more new interface, data to be sent more to the third-party server New request;
Receiving module, for receiving the more new file that the third-party server is returned;
Update module, for based on the more new file, carrying out data renewal.
There is provided a kind of data-updating method for 6th aspect, it is characterised in that methods described includes:
The latest edition data of applications client are sent to third-party server, the latest edition data are carried First packet information list, the first packet information list is used to indicate the latest edition data institute Including package identification, by old version data of the third-party server according to the applications client, Generate the more new file of the applications client.
There is provided a kind of data update apparatus for 7th aspect, it is characterised in that described device includes:
Sending module, for third-party server send applications client latest edition data, it is described most New edition notebook data carries the first packet information list, and the first packet information list is described for indicating Package identification included by latest edition data, by the third-party server according to the applications client Old version data, generate the more new file of the applications client.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
By providing SDK for applications client, the SDK is used for encapsulation of data More new interface;Based on the data more new interface, the data for receiving applications client update request;According to the number According to request is updated, the more new file of the applications client is obtained;The more new file is sent to the applications client, So that the applications client is based on the more new file, data renewal is carried out.Using such data-updating method, Not only so that applications client, which need not be reinstalled, may be updated all or part of data, and reduce exploitation And maintenance cost, improve the convenience of data renewal.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, institute in being described below to embodiment The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only the present invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, Other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of data update system schematic diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of data-updating method provided in an embodiment of the present invention;
Fig. 3 is a kind of flow chart of data-updating method provided in an embodiment of the present invention;
Fig. 4 is a kind of trigger mechanism schematic diagram for generating incremental update file provided in an embodiment of the present invention;
Fig. 5 is a kind of generation method schematic diagram of incremental update file provided in an embodiment of the present invention;
Fig. 6 is a kind of renewal file format schematic diagram provided in an embodiment of the present invention;
Fig. 7 is a kind of data update apparatus block diagram provided in an embodiment of the present invention;
Fig. 8 is a kind of structural representation of server 800 provided in an embodiment of the present invention;
Fig. 9 is a kind of flow chart of data-updating method provided in an embodiment of the present invention;
Figure 10 is a kind of structural representation of data update apparatus provided in an embodiment of the present invention;
Figure 11 is a kind of flow chart of data-updating method provided in an embodiment of the present invention;
Figure 12 is a kind of structural representation of data update apparatus provided in an embodiment of the present invention.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to the present invention Embodiment is described in further detail.
Fig. 1 is a kind of data update system schematic diagram provided in an embodiment of the present invention, as shown in figure 1, described System includes:Data update configuration end 101, third-party server 102 and applications client 103.
Data update configuration end 101, the application uploaded for applications client provider to third-party server Each edition data of client, during each edition data is uploaded, the data update configuration end 101 are additionally operable to configure the relevant information of each edition data, for example, configuring the data of each edition data The package list.
Third-party server 102, the third-party server is independently of the another of applications client and application server One server, specifically, the third-party server can be the server of any application distribution platform, for example, Using precious server, using shop server etc..The third-party server 102 is used to perform offer of the present invention Any data update method, the third-party server 102 includes cloud storage device, incremental update file generated The parts such as device, data update apparatus, data more new interface.The cloud storage device is used to receive and preserve to answer The each edition data and corresponding configuration information of the applications client uploaded with client provider, the increment Updating file creating apparatus is used for each edition data generation incremental update file based on the applications client, The data update apparatus is used to update request execution data more new technological process, data according to the data of applications client More new interface is used to carry out data interaction with applications client.
Applications client 103, in embodiments of the present invention, applications client access have the third-party server 102 SDK (Software Development Kit, SDK) provided, the SDK is packaged with Data more new interface, for carrying out data interaction with the third-party server 102, to complete the application client The data at end 103 update.
Fig. 2 is a kind of flow chart of data-updating method provided in an embodiment of the present invention.Referring to Fig. 2, this method Including:
201st, SDK is provided for applications client, the SDK is used for encapsulation of data More new interface.
202nd, based on the data more new interface, the data for receiving applications client update request.
203rd, updated and asked according to the data, obtain the more new file of the applications client.
204th, the more new file is sent to the applications client so that the applications client is based on the more new file, Carry out data renewal.
Using such data-updating method, not only cause applications client need not be reinstalled to may be updated entirely Portion or partial data, and development and maintenance cost is reduced, improve the convenience of data renewal.
In one embodiment of the invention, this updates according to the data and asked, and obtains the applications client More new file includes:Updated and asked according to the data of the applications client, judge whether to have generated application visitor The incremental update file at family end;If having generated the incremental update file, by the incremental update file acquisition For the more new file of the applications client;If not generating the incremental update file, basis is not generating this Received data update the renewal text that number of requests obtains the applications client before incremental update file Part.
In one embodiment of the invention, the basis is received before the incremental update file is not generated The data update number of requests and obtain the more new file of the applications client and include:Judge that the data update to ask Ask whether quantity reaches default value;If the data update number of requests and reach default value, generation should Incremental update file, the incremental update file acquisition after this is generated is the more new file of the applications client; If the number of requests is not up to arrive default value, full dose is updated into file acquisition for the applications client more New file.
In one embodiment of the invention, updated and asked according to the data of the applications client, judged whether Before the incremental update file for having generated the applications client, this method also includes:When receiving application client When holding the generation instruction of provider, then the incremental update file of the applications client is generated, generation instruction is used The incremental update file of latest edition is updated to from last revision in instruction generation.
In one embodiment of the invention, updated and asked according to the data, obtain the applications client more New file includes:The latest edition data for the applications client that applications client provider uploads are obtained, should Latest edition data carry the first packet information list, and the first packet information list is used to indicate this most Package identification included by new edition notebook data;Obtain the old version data of the applications client, the history Edition data carries the second packet information list, and the second packet information list is used to indicate history version Package identification included by notebook data;The first packet information list and second packet information are arranged Difference processing is carried out between the packet in table with identical data packet mark, the first updated data package is generated; The packet that will do not existed in the first packet information list in the second packet information list, as Second updated data package;Based on first updated data package and the second updated data package, the application client is generated The more new file at end.
In one embodiment of the invention, the more new file includes the difference used during difference processing Algorithm information.
In one embodiment of the invention, the more new file is sent to the applications client so that the application Client is based on the more new file, and carrying out data renewal includes:Incremental update text is sent to the applications client Part so that the applications client is based on the SDK, according to the incremental update file generated full dose More new file, based on the full dose more new file, carries out data renewal.
Above-mentioned all optional technical schemes, can form the alternative embodiment of the disclosure using any combination, This is no longer repeated one by one.
Fig. 3 is a kind of flow chart of data-updating method provided in an embodiment of the present invention.Referring to Fig. 3, this method Comprise the following steps.
301st, SDK is provided for applications client, the SDK is used for encapsulation of data more New interface.
In order to reduce the development cost and maintenance cost of application, during the present invention is implemented, on stream, nothing Need the data update module of stand-alone development applications client, it is only necessary to access third-party server offer SDK (Software Development Kit, SDK), correspondingly, in maintenance process, Data more new demand servicing is provided without application server, the applications client passes through the SDK and third-party server Carry out data interaction and then realize that data update.
In embodiments of the present invention, the SDK is packaged with data more new interface, and the data more new interface is used for should Data interaction is carried out with client and third-party server.It should be noted that in actual applications, the SDK There can also be other functions, for example, collecting applications client version information etc., the present invention is to the SDK Other functions be not especially limited.
302nd, based on the data more new interface, the data for receiving applications client update request.
In embodiments of the present invention, SDK collects the current version information of applications client, and the version is believed Breath is carried on the data and updates request, and data renewal request is updated into port by the data sends to above-mentioned Third-party server so that the third-party server is received after data renewal request, according to the application The current version information of client obtains the more new file that applications client needs.Above-mentioned data update request and used All or part of data of applications client are updated in request, for example, for dictionary client, can ask Update dictionary data of part etc..
It should be noted that in embodiments of the present invention, triggering can be somebody's turn to do when starting applications client every time Data update request, and the data can also be triggered on other opportunitys and update request, for example, periodic triggers should Data update request, and the present invention implements to be not construed as limiting the specific opportunity that trigger data updates request.Using this The data-updating method of sample, compared to the data-updating method that installation kit is actively downloaded by user, is not only realized The function of the partial data of applications client is updated, and reduces the operation of user, data are improved more New convenience.
303rd, updated and asked according to the data of the applications client, judge whether to have generated the applications client Incremental update file;If having generated the incremental update file, the incremental update file acquisition is answered to be somebody's turn to do With the more new file of client;If not generating the incremental update file, step 304 is performed.
The incremental update file refers to for the increment generation between latest edition data and old version data More new file, corresponding is full dose more new file, and the full dose more new file refers to be directed to latest edition The more new file of the total data generation of data.Data renewal is carried out using incremental update file, is conducive to subtracting Small renewal file size, saves transfer resource.Data renewal is carried out using incremental update file in order to preferential, And can also use full dose more new file to carry out data renewal, this hair in not available incremental update file In bright embodiment, after data renewal request is received, whether judgement has currently generated incremental update File, if having generated the incremental update file, data renewal is carried out using the incremental update file.
304th, judge that the data update whether number of requests reaches default value;If the data update number of request Amount reaches default value, then performs step 305;If the number of requests is not up to default value is arrived, by full dose Update the more new file that file acquisition is the applications client.
Present invention recognizes that, the quantity for updating request indicates the demand journey that user group updates business to data Degree, for example, for updating request A and updating request B, updating request A if receiving 100 times and receiving 5 update request B, then illustrate that the corresponding data of renewal request A update business demand degree higher.In order to According to the desirability of data more new business, it is determined whether need to generate incremental update file, of the invention real Shi Zhong, updates number of requests true according to the received data before the incremental update file is not generated It is fixed whether to trigger generation incremental update file.Specifically, as shown in figure 4, for receiving an application every time When the data of client update request, if now counting the data without corresponding incremental update file Update number of requests and add 1, complete after the statistics, judge that the data update whether number of requests reaches default value, If the data update number of requests and reach default value, the incremental update file is generated, if it is not, then Without the generating process of incremental update file.In actual applications, the default value can be according to actual feelings Condition is set, and the present invention implements to be not especially limited this.Using such trigger mechanism so that only right The high data of desirability update request and carry out the generation of incremental update file, and then save generation increment more The process resource that new file is consumed.
In order on the basis of above-mentioned trigger mechanism, it can also be triggered according to the need for applications client provider The generation of incremental update file, as shown in figure 4, in the present invention is implemented, being carried when receiving applications client For business generation instruction when, then generate the incremental update file of the applications client, the generation is instructed for referring to Show that generation is updated to the incremental update file of latest edition from last revision.Specifically, generation instruction can be with The operation updated the data is uploaded by applications client provider and then triggering, in actual applications, the generation refer to Order can also be triggered using other modes, for example, applications client provider is selected to generation option And then generation instruction is triggered, the present invention is not construed as limiting to the concrete mode for triggering generation instruction.
305th, the latest edition data of the applications client uploaded according to applications client provider, generation should Incremental update file, the incremental update file acquisition after this is generated is the more new file of the applications client.
In order that the size for obtaining above-mentioned incremental update file is smaller, the present invention implements to provide a kind of specifically increment Document generating method is updated, including:
The latest edition data for the applications client that applications client provider uploads are obtained, as shown in figure 5, The latest edition data include multiple packets, and the latest edition data carry the first packet information list, The first packet information list is used to indicate the package identification included by the latest edition data;Obtaining should The old version data of applications client, as shown in figure 5, the old version data include multiple packets, The old version data carry the second packet information list, and the second packet information list is used to indicate this Package identification included by old version data;By the first packet information list and second packet Difference processing is carried out between the packet in information list with identical data packet mark, generation first updates number According to bag;The packet that will do not existed in the first packet information list in the second packet information list, It is used as the second updated data package;Based on first updated data package and the second updated data package, the application is generated The more new file of client.It should be noted that the old version data can be for the applications client All multiple old version data, in actual applications, by traveling through all multiple old version numbers According to, will in the first packet information list and the second packet information list of any old version data have Have and carry out difference processing between the packet that identical data packet identifies, and by the first packet information list not It is present in the packet in all second packet information lists, is used as the second updated data package, the present invention Quantity to old version data is not especially limited.
Using such incremental update document generating method, each packet in latest edition data is distinguished Packet corresponding with old version data carries out difference processing, compared to recent release data and history Edition data integrally carries out the incremental update document generating method of difference processing, reduces generation incremental update text The size of part, saves the transmission cost of delta file.
As shown in fig. 6, the more new file that the above method is generated is used for specified format, in the specified format Including updating file header, updating end-of-file and at least one packet.The renewal file header includes application program The difference used when name, correspondence new and old edition number, packet number, file size and progress difference processing Algorithm information.In actual applications, the difference algorithm can be selected according to actual conditions, for example, bsdiff (binary Diff, binary system residual quantity) algorithm etc., the present invention is not construed as limiting to the difference algorithm specifically used.Renewal text Each packet in the part tail content such as including check information, at least one packet can be above-mentioned first Updated data package second is updated the data.
306th, the more new file is sent to the applications client so that the applications client is based on the more new file, Carry out data renewal.
In embodiments of the present invention, after the more new file of the applications client is obtained, renewal text is generated The download address of part, the download address and renewal fileinfo is sent to applications client, as application visitor When the selection of family end performs renewal, the more new file is sent to the applications client based on the download address.
When the more new file is full dose more new file, native client is replaced using the full dose more new file End data, data renewal is carried out based on the full dose more new file.When the more new file is incremental update file, The incremental update file is sent to the applications client so that the applications client is based on SDK, according to the increasing Amount updates file generated full dose more new file, based on the full dose more new file, carries out data renewal.Specifically, The SDK judges whether more new file is incremental update file according to the File header information of more new file;When being During incremental update file, the difference algorithm information for carrying out being used during difference processing is extracted from this document head; Full dose more new file is generated according to the difference algorithm.
The present invention implements the data-updating method provided, by providing SDK for applications client, The SDK is used for encapsulation of data more new interface;Based on the data more new interface, application visitor is received The data at family end update request;Updated and asked according to the data, obtain the more new file of the applications client; The more new file is sent to the applications client so that the applications client is based on the more new file, enters line number According to renewal.Using such data-updating method, not only cause applications client need not be reinstalled can be more New all or part data, and the development and maintenance cost of application is reduced, improve data and update just Victory.
Fig. 7 is a kind of block diagram of data update apparatus provided in an embodiment of the present invention.As shown in fig. 7, described Device includes:Data update interface module 701, receiving module 702, acquisition module 703, sending module 704.
Data update interface module 701, for providing SDK, the software for applications client Development kit is used for encapsulation of data more new interface;
Receiving module 702, for based on the data more new interface, the data renewal for receiving applications client please Ask;
Acquisition module 703, is asked for being updated according to the data, obtains the renewal text of the applications client Part;
Sending module 704, for sending the more new file to the applications client so that the application is objective Family end group carries out data renewal in the more new file.
In one embodiment of the invention, the acquisition module is used for:According to the number of the applications client According to request is updated, judge whether to have generated the incremental update file of the applications client;If having generated institute Incremental update file is stated, then by more new file of the incremental update file acquisition for the applications client; If not generating the incremental update file, basis is received before the incremental update file is not generated The data arrived update the more new file that number of requests obtains the applications client.
In one embodiment of the invention, the acquisition module is used for:Judge that the data update number of request Whether amount reaches default value;If the data update number of requests and reach default value, generation is described Incremental update file, by renewal text of the incremental update file acquisition after the generation for the applications client Part;If the number of requests is not up to default value is arrived, it is the application visitor that full dose is updated into file acquisition The more new file at family end.
In one embodiment of the invention, it is used for according to the acquisition module:When receiving applications client During the generation instruction of provider, then the incremental update file of the applications client, the generation instruction are generated For indicating that generation is updated to the incremental update file of latest edition from last revision.
In one embodiment of the invention, the acquisition device is used for:Obtain in applications client provider The latest edition data of the applications client passed, the latest edition data carry the first packet information List, the first packet information list is used to indicate the packet mark included by the latest edition data Know;The old version data of the applications client are obtained, the old version data carry the second packet Information list, the second packet information list is used to indicate the data included by the old version data Bag mark;To there is identical number in the first packet information list and the second packet information list Difference processing is carried out between packet according to bag mark, the first updated data package is generated;By first data The packet not existed in package informatin list in the second packet information list, number is updated as second According to bag;Based on first updated data package and the second updated data package, the applications client is generated more New file.
In one embodiment of the invention, the more new file also includes carrying out what is used during difference processing Difference algorithm information.
In one embodiment of the invention, the sending module is used for:Send and increase to the applications client Measure more new file so that the applications client is based on the SDK, according to the increment more New file generates full dose more new file, based on the full dose more new file, carries out data renewal.
A kind of server is present embodiments provided, the server can be used for performing to be carried in each above-mentioned embodiment The data-updating method of confession.Reference picture 8, server 800 includes processing assembly 822, and it further comprises one Individual or multiple processors, and as the memory resource representated by memory 832, can be by handling for storing The instruction of the execution of component 822, such as applications client program.The application client stored in memory 832 End program can include it is one or more each correspond to the module of one group of instruction.In addition, processing Component 822 is configured as execute instruction, to perform any of the above-described kind of data-updating method.
Server 800 can also include the power supply that a power supply module 824 is configured as execute server 800 Management, a wired or wireless network interface 850 is configured as server 800 being connected to network, and one Individual input and output (I/O) interface 858.Server 800 can be operated based on the behaviour for being stored in memory 832 Make system, such as Windows ServerTM, Mac OS XTM, UnixTM,LinuxTM, FreeBSDTMOr It is similar.
Fig. 9 is a kind of flow chart of data-updating method provided in an embodiment of the present invention.Referring to Fig. 9, the side Method includes:
901st, the SDK that third-party server is provided is obtained, the SDK is used for Encapsulation of data more new interface.
902nd, based on the data more new interface, data is sent to the third-party server and update request.
903rd, the more new file that the third-party server is returned is received.
904th, based on the more new file, data renewal is carried out.
Alternatively, based on the more new file, carrying out data renewal includes:When the more new file is full dose During more new file, local client data is replaced using the full dose more new file;Or, update text when described When part is incremental update file, the incremental update file and local client data are merged into full dose and updated File.
Figure 10 is a kind of structural representation of data update apparatus provided in an embodiment of the present invention.Referring to Figure 10, Described device includes:
Acquisition module 1001, the SDK for obtaining third-party server offer, the software Development kit is used for encapsulation of data more new interface;
Sending module 1002, for based on the data more new interface, number to be sent to the third-party server Asked according to updating;
Receiving module 1003, for receiving the more new file that the third-party server is returned;
Update module 1004, for based on the more new file, carrying out data renewal.
Alternatively, the update module is used for:
When the more new file is full dose more new file, native client is replaced using the full dose more new file End data;Or, when the more new file is incremental update file, by the incremental update file and locally Client data is merged into full dose more new file.
Figure 11 is a kind of flow chart of data-updating method provided in an embodiment of the present invention.It is described referring to Figure 11 Method includes:
1101st, the latest edition data of applications client, the latest edition number are sent to third-party server According to the first packet information list is carried, the first packet information list is used to indicate the latest edition Package identification included by data, by history version of the third-party server according to the applications client Notebook data, generates the more new file of the applications client.
Alternatively, to third-party server send applications client latest edition data after, methods described Also include:
Generation instruction is sent to the third-party server so that the third-party server generates the application The incremental update file of client, the generation is instructed for indicating that generation is updated to latest edition from last revision This incremental update file.
Figure 12 is a kind of structural representation of data update apparatus provided in an embodiment of the present invention.Referring to Figure 12, Described device includes:
Sending module 1201, the latest edition data for sending applications client to third-party server, institute State latest edition data and carry the first packet information list, the first packet information list is used to indicate Package identification included by the latest edition data, by the third-party server according to the application visitor The old version data at family end, generate the more new file of the applications client.
Alternatively, the sending module 1201 is additionally operable to send generation instruction to the third-party server, makes The incremental update file that the third-party server generates the applications client is obtained, the generation, which is instructed, to be used for Indicate that generation is updated to the incremental update file of latest edition from last revision.
It should be only above presently preferred embodiments of the present invention, be not intended to limit the invention, all essences in the present invention God is with principle, and any modification, equivalent substitution and improvements made etc. should be included in the guarantor of the present invention Within the scope of shield.

Claims (22)

1. a kind of data-updating method, it is characterised in that applied in third-party server, methods described bag Include:
SDK is provided for applications client, the SDK is used for encapsulation of data more New interface;
Based on the data more new interface, the data for receiving applications client update request;
Updated and asked according to the data, obtain the more new file of the applications client;
To more new file described in applications client transmission so that the applications client is based on described update File, carries out data renewal.
2. according to the method described in claim 1, it is characterised in that described updated according to the data is asked, Obtaining the more new file of the applications client includes:
Updated and asked according to the data of the applications client, judge whether to have generated the applications client Incremental update file;
It is the application visitor by the incremental update file acquisition if having generated the incremental update file The more new file at family end;
If not generating the incremental update file, according to the institute before the incremental update file is not generated The data received update the more new file that number of requests obtains the applications client.
3. method according to claim 2, it is characterised in that the basis is not generating the increment The received data update the renewal text that number of requests obtains the applications client before more new file Part includes:
Judge that the data update whether number of requests reaches default value;
If the data update number of requests and reach default value, the incremental update file is generated, will Incremental update file acquisition after the generation is the more new file of the applications client;
If the number of requests is not up to default value is arrived, it is the application visitor that full dose is updated into file acquisition The more new file at family end.
4. method according to claim 2, it is characterised in that according to the data of the applications client Request is updated, before the incremental update file for judging whether to have generated the applications client, methods described is also Including:
When the generation for receiving applications client provider is instructed, then the increment of the applications client is generated More new file, the generation is instructed for indicating that generation is updated to the incremental update of latest edition from last revision File.
5. according to the method described in claim 1, it is characterised in that updated and asked according to the data, obtained Taking the more new file of the applications client includes:
The latest edition data for the applications client that applications client provider uploads are obtained, it is described newest Edition data carries the first packet information list, the first packet information list be used to indicating it is described most Package identification included by new edition notebook data;
The old version data of the applications client are obtained, the old version data carry the second packet Information list, the second packet information list is used to indicate the data included by the old version data Bag mark;
To there is identical data packet in the first packet information list and the second packet information list Difference processing is carried out between the packet of mark, the first updated data package is generated;
The data that will do not existed in the first packet information list in the second packet information list Bag, is used as the second updated data package;
Based on first updated data package and the second updated data package, the renewal of the applications client is generated File.
6. method according to claim 5, it is characterised in that the more new file includes carrying out difference The difference algorithm information used during processing.
7. according to the method described in claim 1, it is characterised in that send described to the applications client More new file so that the applications client is based on the more new file, carrying out data renewal includes:
Incremental update file is sent to the applications client so that the applications client is based on the software Development kit, according to the incremental update file generated full dose more new file, text is updated based on the full dose Part, carries out data renewal.
8. a kind of data update apparatus, it is characterised in that described device includes:
Data update interface module, and for providing SDK for applications client, the software is opened Sending out kit is used for encapsulation of data more new interface;
Receiving module, for based on the data more new interface, the data for receiving applications client to update request;
Acquisition module, is asked for being updated according to the data, obtains the more new file of the applications client;
Sending module, for the applications client send described in more new file so that the application client End group carries out data renewal in the more new file.
9. device according to claim 8, it is characterised in that the acquisition module is used for:
Updated and asked according to the data of the applications client, judge whether to have generated the applications client Incremental update file;
It is the application visitor by the incremental update file acquisition if having generated the incremental update file The more new file at family end;
If not generating the incremental update file, according to the institute before the incremental update file is not generated The data received update the more new file that number of requests obtains the applications client.
10. device according to claim 9, it is characterised in that the acquisition module is used for:
Judge that the data update whether number of requests reaches default value;
If the data update number of requests and reach default value, the incremental update file is generated, will Incremental update file acquisition after the generation is the more new file of the applications client;
If the number of requests is not up to default value is arrived, it is the application visitor that full dose is updated into file acquisition The more new file at family end.
11. device according to claim 9, it is characterised in that be used for according to the acquisition module:
When the generation for receiving applications client provider is instructed, then the increment of the applications client is generated More new file, the generation is instructed for indicating that generation is updated to the incremental update of latest edition from last revision File.
12. device according to claim 8, it is characterised in that the acquisition device is used for:
The latest edition data for the applications client that applications client provider uploads are obtained, it is described newest Edition data carries the first packet information list, the first packet information list be used to indicating it is described most Package identification included by new edition notebook data;
The old version data of the applications client are obtained, the old version data carry the second packet Information list, the second packet information list is used to indicate the data included by the old version data Bag mark;
To there is identical data packet in the first packet information list and the second packet information list Difference processing is carried out between the packet of mark, the first updated data package is generated;
The data that will do not existed in the first packet information list in the second packet information list Bag, is used as the second updated data package;
Based on first updated data package and the second updated data package, the renewal of the applications client is generated File.
13. device according to claim 12, it is characterised in that the more new file also includes carrying out The difference algorithm information used during difference processing.
14. device according to claim 8, it is characterised in that the sending module is used for:
Incremental update file is sent to the applications client so that the applications client is based on the software Development kit, according to the incremental update file generated full dose more new file, text is updated based on the full dose Part, carries out data renewal.
15. a kind of data-updating method, it is characterised in that methods described includes:
The SDK that third-party server is provided is obtained, the SDK is used to encapsulate Data more new interface;
Based on the data more new interface, send data to the third-party server and update request;
Receive the more new file that the third-party server is returned;
Based on the more new file, data renewal is carried out.
16. method according to claim 15, it is characterised in that based on the more new file, is carried out Data, which update, to be included:
When the more new file is full dose more new file, native client is replaced using the full dose more new file End data;
Or, when the more new file is incremental update file, by the incremental update file and native client End data is merged into complete client file.
17. a kind of data update apparatus, it is characterised in that described device includes:
Acquisition module, the SDK for obtaining third-party server offer, the software development Kit is used for encapsulation of data more new interface;
Sending module, for based on the data more new interface, data to be sent more to the third-party server New request;
Receiving module, for receiving the more new file that the third-party server is returned;
Update module, for based on the more new file, carrying out data renewal.
18. device according to claim 17, it is characterised in that the update module is used for:
When the more new file is full dose more new file, native client is replaced using the full dose more new file End data;
Or, when the more new file is incremental update file, by the incremental update file and native client End data is merged into complete client file.
19. a kind of data-updating method, it is characterised in that methods described includes:
The latest edition data of applications client are sent to third-party server, the latest edition data are carried First packet information list, the first packet information list is used to indicate the latest edition data institute Including package identification, by old version data of the third-party server according to the applications client, Generate the more new file of the applications client.
20. method according to claim 19, it is characterised in that send and apply to third-party server After the latest edition data of client, methods described also includes:
Generation instruction is sent to the third-party server so that the third-party server generates the application The incremental update file of client, the generation is instructed for indicating that generation is updated to latest edition from last revision This incremental update file.
21. a kind of data update apparatus, it is characterised in that described device includes:
Sending module, for third-party server send applications client latest edition data, it is described most New edition notebook data carries the first packet information list, and the first packet information list is described for indicating Package identification included by latest edition data, by the third-party server according to the applications client Old version data, generate the more new file of the applications client.
22. device according to claim 21, it is characterised in that the sending module is additionally operable to institute State third-party server and send generation instruction so that the third-party server generates the applications client Incremental update file, the generation is instructed for indicating that generation is updated to the increment of latest edition from last revision More new file.
CN201610078418.3A 2016-02-04 2016-02-04 Data-updating method and device Pending CN107038039A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610078418.3A CN107038039A (en) 2016-02-04 2016-02-04 Data-updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610078418.3A CN107038039A (en) 2016-02-04 2016-02-04 Data-updating method and device

Publications (1)

Publication Number Publication Date
CN107038039A true CN107038039A (en) 2017-08-11

Family

ID=59532198

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610078418.3A Pending CN107038039A (en) 2016-02-04 2016-02-04 Data-updating method and device

Country Status (1)

Country Link
CN (1) CN107038039A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107846465A (en) * 2017-11-13 2018-03-27 北京趣拿软件科技有限公司 Update the method and apparatus of client resource bag
CN108733395A (en) * 2018-05-14 2018-11-02 广州虎牙信息科技有限公司 software application service updating method, device and computer equipment
CN109032820A (en) * 2018-08-08 2018-12-18 网易(杭州)网络有限公司 The compatible processing method and processing device of application version
CN109495532A (en) * 2017-09-13 2019-03-19 北京京东尚科信息技术有限公司 Client update method and device
CN109710287A (en) * 2018-12-07 2019-05-03 ***通信集团有限公司 A kind of hot update method, device and computer storage medium
CN112306518A (en) * 2020-07-01 2021-02-02 深圳新阳蓝光能源科技股份有限公司 Protocol updating method and device and electronic equipment
CN115065642A (en) * 2022-08-18 2022-09-16 深圳华锐分布式技术股份有限公司 Code table request method, device, equipment and medium under bandwidth limitation

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207902A (en) * 2013-03-27 2013-07-17 交通银行股份有限公司 Method and system for updating financial client side data
CN104657170A (en) * 2013-11-25 2015-05-27 腾讯科技(上海)有限公司 Data updating method, device and system
CN104793972A (en) * 2015-04-17 2015-07-22 北京大学深圳研究院 Method and device for updating data packets
CN104978215A (en) * 2014-10-08 2015-10-14 腾讯科技(深圳)有限公司 File updating method, relevant equipment and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207902A (en) * 2013-03-27 2013-07-17 交通银行股份有限公司 Method and system for updating financial client side data
CN104657170A (en) * 2013-11-25 2015-05-27 腾讯科技(上海)有限公司 Data updating method, device and system
CN104978215A (en) * 2014-10-08 2015-10-14 腾讯科技(深圳)有限公司 File updating method, relevant equipment and system
CN104793972A (en) * 2015-04-17 2015-07-22 北京大学深圳研究院 Method and device for updating data packets

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109495532A (en) * 2017-09-13 2019-03-19 北京京东尚科信息技术有限公司 Client update method and device
CN107846465A (en) * 2017-11-13 2018-03-27 北京趣拿软件科技有限公司 Update the method and apparatus of client resource bag
CN108733395A (en) * 2018-05-14 2018-11-02 广州虎牙信息科技有限公司 software application service updating method, device and computer equipment
CN109032820A (en) * 2018-08-08 2018-12-18 网易(杭州)网络有限公司 The compatible processing method and processing device of application version
CN109710287A (en) * 2018-12-07 2019-05-03 ***通信集团有限公司 A kind of hot update method, device and computer storage medium
CN109710287B (en) * 2018-12-07 2022-04-29 ***通信集团有限公司 Hot updating method, device and computer storage medium
CN112306518A (en) * 2020-07-01 2021-02-02 深圳新阳蓝光能源科技股份有限公司 Protocol updating method and device and electronic equipment
CN115065642A (en) * 2022-08-18 2022-09-16 深圳华锐分布式技术股份有限公司 Code table request method, device, equipment and medium under bandwidth limitation

Similar Documents

Publication Publication Date Title
CN107038039A (en) Data-updating method and device
CN108769165B (en) Data processing method in Internet of things and Internet of things access system
US6377939B1 (en) Pipelined method and apparatus for processing communication metering data
WO2018076755A1 (en) Method and apparatus for issuing upgrade package
CN108376078A (en) Upgrade method, device and the household appliance of equipment
US8584146B1 (en) Communications driver management
CN108234149B (en) Network request management method and device
CN106598678A (en) Method and device for supplying application installation packages to terminal equipment
CN103248669A (en) Distributed software upgrade system and method
CN110442377A (en) Service packs generation method, using update method, device and electronic equipment
CN110427202A (en) A kind of system and method for car networking TBOX end FOTA
CN102054045A (en) System and method for updating resources of electronic device
CN108600331A (en) Interactive interface rendering method, client, terminal and system
CN109189460A (en) offline firmware upgrade system and method
CN110109748A (en) A kind of hybrid language task executing method, device and cluster
CN109725912A (en) Application program configuration method, device, terminal, server and readable storage medium storing program for executing
CN115248692A (en) Device and method for supporting cloud deployment of multiple deep learning framework models
CN107741853A (en) A kind of method, system and the information management platform of deployment services device
US7499971B1 (en) Alternate java server page (JSP) processing for better response time
JP2012048386A (en) Arrangement determination program, method and device
CN106528192A (en) Service logic updating method and device
CN108521349A (en) A kind of method and system of the installation number of statistics installation kit
KR20100013616A (en) Web service providing system and web service providing method
CN106775845A (en) A kind of method of software installation upgrading
CN114090242A (en) Model training method, device, equipment, storage medium and program product

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: 20170811