CN103327026A - Data updating method and updating system - Google Patents

Data updating method and updating system Download PDF

Info

Publication number
CN103327026A
CN103327026A CN2013102686590A CN201310268659A CN103327026A CN 103327026 A CN103327026 A CN 103327026A CN 2013102686590 A CN2013102686590 A CN 2013102686590A CN 201310268659 A CN201310268659 A CN 201310268659A CN 103327026 A CN103327026 A CN 103327026A
Authority
CN
China
Prior art keywords
data
terminal
verification parameter
parameter
verification
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.)
Granted
Application number
CN2013102686590A
Other languages
Chinese (zh)
Other versions
CN103327026B (en
Inventor
夏盛新
甘晖明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201310268659.0A priority Critical patent/CN103327026B/en
Publication of CN103327026A publication Critical patent/CN103327026A/en
Application granted granted Critical
Publication of CN103327026B publication Critical patent/CN103327026B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a data updating method and a data updating system, and belongs to the field of data processing. The data updating method includes receiving a data updating request sent by a terminal, generating a second verification parameter corresponding to second data according to the data updating request, comparing the second verification parameter with a first verification parameter stored in a server, and sending an updating indication to the terminal according to a comparison result so that the terminal updates first data locally stored according to the updating indication. According to the data updating method and the updating system, the server generates the second verification parameter corresponding to the second data, the second verification parameter is compared with the first verification parameter, and data stored in the terminal are updated according to the comparison result of the second verification parameter and the first verification parameter, so that when data updating is carried out on the server through the terminal, obtaining of the complete data from the server every time is needless, network bandwidth is saved, and operation performance of the terminal is improved.

Description

Data updating method and system
Technical Field
The invention belongs to the field of data processing, and particularly relates to a data updating method and a data updating system.
Background
The terminal obtains data from the server to update the data stored locally in the terminal, which is a very common data updating method, and especially for data which needs to be updated frequently, such as friend data, data updating is usually performed through the server.
Data updating in the prior art generally requires the terminal to acquire complete data from the server and then replace the existing data of the terminal with the acquired data, which results in waste of data traffic of the terminal.
Disclosure of Invention
The embodiment of the invention provides a data updating method and a data updating device, which are used for solving the problem that data flow is wasted when data are updated in the prior art.
The embodiment of the invention is realized in such a way that a data updating method comprises the following steps:
receiving a data updating request sent by a terminal;
generating a second verification parameter corresponding to second data according to the data updating request, wherein the second data is used for being sent to the terminal to update the first data stored by the terminal;
comparing the second verification parameter with a first verification parameter stored by a server, wherein the first verification parameter is generated according to first data locally stored by the terminal and sent by the terminal;
and sending an updating instruction to the terminal according to the comparison result so that the terminal updates the first data stored locally according to the updating instruction.
Another embodiment of the present invention provides a data update apparatus, including:
the receiving unit is used for receiving a data updating request sent by the terminal;
the generating unit is used for generating a second verification parameter corresponding to second data according to the data updating request received by the receiving unit, wherein the second data is used for being sent to the terminal to update the first data stored by the terminal;
the comparison unit is used for comparing the second verification parameter generated by the generation unit with a first verification parameter stored by a server, wherein the first verification parameter is generated according to first data locally stored by the terminal and sent by the terminal;
and the sending unit is used for sending an updating instruction to the terminal according to the comparison result of the comparison unit so that the terminal updates the first data stored locally according to the updating instruction.
In the embodiment of the invention, the server generates the second verification parameter corresponding to the second data, compares the second verification parameter with the first verification parameter, and updates the data stored in the terminal according to the comparison result of the second verification parameter and the first verification parameter, so that the terminal does not need to acquire complete data from the server every time when updating the data to the server, the network bandwidth is saved, and the operation performance of the terminal is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic structural diagram of a data update system according to an embodiment of the present invention;
FIG. 2 is a flow chart of a data update method provided by an embodiment of the invention;
FIG. 3 is a flow chart of a data update method provided by another embodiment of the present invention;
fig. 4 is a block diagram of a data update apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the embodiment of the invention, the terminal generates the first verification parameter corresponding to the first data, the server generates the second verification parameter corresponding to the second data, the second data is the updated data which is stored in the server and corresponds to the first data, the second verification parameter is compared with the first verification parameter, and the data stored in the terminal is updated according to the comparison result of the second verification parameter and the first verification parameter, so that the terminal does not need to acquire complete data from the server every time when updating the data to the server, the network bandwidth is saved, and the operation performance of the terminal is improved.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Example one
Fig. 1 is a schematic structural diagram of a data updating system according to an embodiment of the present invention, including: the terminal 1 sends a first verification parameter corresponding to first data stored locally to the server 2, and when the server 2 sends an update instruction to the terminal 1, the server compares a second verification parameter corresponding to second data with the first verification parameter: if the second verification parameter is the same as the first verification parameter, the server 2 informs the terminal 1 to keep the first data locally stored in the terminal 1 unchanged; and if the second verification parameter is different from the first verification parameter, the server 2 sends second data corresponding to the second verification parameter to the terminal 1.
Example two
Fig. 2 is a flowchart of a data updating method according to an embodiment of the present invention, where the method includes the following steps:
in step S201, the server receives a data update request transmitted by the terminal.
In the embodiment of the invention, when the terminal needs to update data (such as friend data in communication application), a data update request is sent to the server so as to update the data stored locally in the terminal.
In step S202, the server generates a second verification parameter corresponding to second data according to the data update request, where the second data is used to be sent to the terminal to update the first data stored in the terminal.
In the embodiment of the present invention, taking the buddy data as an example, when the terminal is applied to display the buddy list, the buddy list is usually generated by the buddy data (first data) locally stored in the terminal, but the terminal needs to update the buddy list frequently, and the updated buddy data (second data) needs to be acquired by the terminal from the server. When the terminal initiates to acquire the updated friend data to the server, the server first generates a corresponding second verification parameter according to the updated friend data. The verification parameters include:
if the first verification parameter is Etag, the second verification parameter is Etag; or,
and if the first verification parameter is a parameter obtained after the first data is calculated through a security algorithm, the second verification parameter is a parameter obtained after the second data is calculated through the security algorithm.
Wherein:
the Etag is an "entity value of a requested variable", that is, "a token associated with a Web resource", defined in a Hypertext Transfer Protocol (HTTP), and may be a token of a Web resource (first data and second data) transmitted by a server.
After the data is calculated by the security algorithm, a parameter can also be obtained, such as: after the data is calculated by the Message Digest Algorithm5 (Message Digest Algorithm5 is abbreviated as MD 5), a fixed-length value can be obtained, and the value is the verification parameter. Similar algorithms also include: MD2, MD3, MD4, and the like.
In step S203, the server compares the second authentication parameter with a first authentication parameter stored in the server, where the first authentication parameter is generated according to first data locally stored in the terminal and sent by the terminal.
In the embodiment of the invention, after the step of generating the second verification parameter, the server compares the second verification parameter with the first verification parameter stored by the server, wherein the first verification parameter is generated by the terminal according to the friend data locally stored by the terminal.
In step S204, the server sends an update instruction to the terminal according to the result of the comparison.
In the embodiment of the present invention, the comparison results of the second verification parameter and the first verification parameter are only two types: the second verification parameter is the same as the first verification parameter; the second authentication parameter is different from the first authentication parameter. The step that the server sends an updating instruction to the terminal according to the comparison result comprises the following steps:
if the second verification parameter is the same as the first verification parameter, the terminal is instructed to keep the first data stored locally in the terminal unchanged; or,
and if the second verification parameter is different from the first verification parameter, sending second data corresponding to the second verification parameter to the terminal so that the terminal updates the locally stored data into the second data.
In the embodiment of the invention, if the second verification parameter is the same as the first verification parameter, the updated friend data is the same as the friend data stored in the terminal, and the server only needs to instruct the terminal to call the locally stored friend data to generate the friend list; if the second verification parameter is different from the first verification parameter, the updated friend data is different from the friend data stored in the terminal, and the server needs to send the updated friend data to the terminal.
In step S205, the terminal updates the locally stored data according to the update instruction.
In the embodiment of the invention, the terminal receives the update instruction sent by the server, updates the friend data, serializes the updated friend data into a section of binary data, stores the binary data in a binary BLOB block in the database, reads the binary data in the BLOB block when reading the friend information, and deserializes the binary data into the friend data object, so that the safety of data storage is ensured.
In the embodiment of the invention, the server generates the second verification parameter corresponding to the second data, compares the second verification parameter with the first verification parameter, and updates the data stored in the terminal according to the comparison result of the second verification parameter and the first verification parameter, so that the terminal does not need to acquire complete data from the server every time when updating the data to the server, the network bandwidth is saved, and the operation performance of the terminal is improved.
As an optional embodiment of the invention, before the step of comparing the second authentication parameter with the server-stored first authentication parameter, the method further comprises:
and the server acquires and stores the first verification parameter.
In this embodiment of the present invention, before comparing the second authentication parameter with the first authentication parameter, the server needs to obtain the first authentication parameter from the terminal, and many methods for obtaining the first authentication parameter include, but are not limited to, this method.
As another optional embodiment of the present invention, the second data and the randomly obtained third data are sent to the terminal, and in the step of generating the second verification parameter corresponding to the second data according to the data update request, the generated second verification parameter is: calculating the parameters obtained after the second data are obtained through a security algorithm; in the step of comparing the second authentication parameter with the first authentication parameter stored by the server, the first authentication parameter to be compared is: and calculating the parameters obtained after the first data are calculated through a security algorithm.
In the embodiment of the invention, if the server sends the second data and the randomly generated third data to the terminal (for example, the recommended friends sent to the terminal by the server in the communication application are different each time, that is, the recommended friends are randomly generated), the verification parameters can only be parameters obtained by calculating the data through a security algorithm. Web resources sent by the server to the terminal are all integrated, namely, the third data and the second data only generate an integral Etag, the third data are different each time, the corresponding Etags are different each time, and the parameters obtained after the data are calculated through the security algorithm can independently calculate the verification parameters for the second data.
Correspondingly, the step of sending the second data and the randomly acquired third data to the terminal, and sending an update instruction to the terminal according to the comparison result includes:
if the second verification parameter is the same as the first verification parameter, the third data is sent to the terminal; or,
and if the second verification parameter is different from the first verification parameter, sending second data and third data corresponding to the second verification parameter to the terminal.
EXAMPLE III
Fig. 3 is a flowchart of a data updating method according to another embodiment of the present invention, where the method includes the following steps:
in step S301, a data update request transmitted by the terminal is received.
In the embodiment of the invention, when the terminal needs to update data (such as friend data in communication application), a data update request is sent to the server so as to update the data stored locally in the terminal.
In step S302, a second verification parameter corresponding to second data is generated according to the data update request, where the second data is used to be sent to the terminal to update the first data stored in the terminal.
In the embodiment of the present invention, taking the buddy data as an example, when the terminal is applied to display the buddy list, the buddy list is usually generated by the buddy data (first data) locally stored in the terminal, but the terminal needs to update the buddy list frequently, and the updated buddy data (second data) needs to be acquired by the terminal from the server. When the terminal initiates to acquire the updated friend data to the server, the server first generates a corresponding second verification parameter according to the updated friend data. The verification parameters include:
if the first verification parameter is Etag, the second verification parameter is Etag; or,
and if the first verification parameter is a parameter obtained after the first data is calculated through a security algorithm, the second verification parameter is a parameter obtained after the second data is calculated through the security algorithm.
Wherein:
the Etag is an "entity value of a requested variable", that is, "a token associated with a Web resource", defined in a Hypertext Transfer Protocol (HTTP), and may be a token of a Web resource (first data and second data) transmitted by a server.
After the data is calculated by the security algorithm, a parameter can also be obtained, such as: after the data is calculated by the Message Digest Algorithm5 (Message Digest Algorithm5 is abbreviated as MD 5), a fixed-length value can be obtained, and the value is the verification parameter. Similar algorithms also include: MD2, MD3, MD4, and the like.
In step S303, the second authentication parameter is compared with a first authentication parameter stored in the server, where the first authentication parameter is generated according to first data locally stored in the terminal and sent by the terminal.
In the embodiment of the invention, after the step of generating the second verification parameter, the server compares the second verification parameter with the first verification parameter stored by the server, wherein the first verification parameter is generated by the terminal according to the friend data locally stored by the terminal.
In step S304, an update instruction is sent to the terminal according to the comparison result, so that the terminal updates the locally stored first data according to the update instruction.
In the embodiment of the present invention, the comparison results of the second verification parameter and the first verification parameter are only two types: the second verification parameter is the same as the first verification parameter; the second authentication parameter is different from the first authentication parameter. The step of sending an update instruction to the terminal according to the result of the comparison includes:
if the second verification parameter is the same as the first verification parameter, the terminal is instructed to keep the first data stored locally in the terminal unchanged; or,
and if the second verification parameter is different from the first verification parameter, sending second data corresponding to the second verification parameter to the terminal so that the terminal updates the locally stored data into the second data.
In the embodiment of the invention, if the second verification parameter is the same as the first verification parameter, the updated friend data is the same as the friend data stored in the terminal, and the server only needs to instruct the terminal to call the locally stored friend data to generate the friend list; if the second verification parameter is different from the first verification parameter, the updated friend data is different from the friend data stored in the terminal, and the server needs to send the updated friend data to the terminal.
In the embodiment of the invention, the server generates the second verification parameter corresponding to the second data, compares the second verification parameter with the first verification parameter, and updates the data stored in the terminal according to the comparison result of the second verification parameter and the first verification parameter, so that the terminal does not need to acquire complete data from the server every time when updating the data to the server, the network bandwidth is saved, and the operation performance of the terminal is improved.
As an optional embodiment of the invention, before the step of comparing the second authentication parameter with the server-stored first authentication parameter, the method further comprises:
and acquiring and storing the first verification parameter.
In this embodiment of the present invention, before comparing the second authentication parameter with the first authentication parameter, the server needs to obtain the first authentication parameter from the terminal, and many methods for obtaining the first authentication parameter include, but are not limited to, this method.
As another optional embodiment of the present invention, the second data and the randomly obtained third data are sent to the terminal, and in the step of generating the second verification parameter corresponding to the second data according to the data update request, the generated second verification parameter is: calculating the parameters obtained after the second data are obtained through a security algorithm; in the step of comparing the second authentication parameter with the first authentication parameter stored by the server, the first authentication parameter to be compared is: and calculating the parameters obtained after the first data are calculated through a security algorithm.
In the embodiment of the invention, if the server sends the second data and the randomly generated third data to the terminal (for example, the recommended friends sent to the terminal by the server in the communication application are different each time, that is, the recommended friends are randomly generated), the verification parameters can only be parameters obtained by calculating the data through a security algorithm. Web resources sent by the server to the terminal are all integrated, namely, the third data and the second data only generate an integral Etag, the third data are different each time, the corresponding Etags are different each time, and the parameters obtained after the data are calculated through the security algorithm can independently calculate the verification parameters for the second data.
Correspondingly, the step of sending the second data and the randomly acquired third data to the terminal, and sending an update instruction to the terminal according to the comparison result includes:
if the second verification parameter is the same as the first verification parameter, the third data is sent to the terminal; or,
and if the second verification parameter is different from the first verification parameter, sending second data and third data corresponding to the second verification parameter to the terminal.
Example four
As shown in fig. 4, a block diagram of a data updating apparatus according to an embodiment of the present invention is shown, and for convenience of description, only a part related to the embodiment of the present invention is shown, including:
a receiving unit 401, configured to receive a data update request sent by a terminal.
In the embodiment of the invention, when the terminal needs to update data (such as friend data in communication application), a data update request is sent to the server so as to update the data stored locally in the terminal.
A generating unit 402, configured to generate a second verification parameter corresponding to second data according to the data update request received by the receiving unit 401, where the second data is used to be sent to the terminal to update the first data stored in the terminal.
In the embodiment of the present invention, taking the buddy data as an example, when the terminal is applied to display the buddy list, the buddy list is usually generated by the buddy data (first data) locally stored in the terminal, but the terminal needs to update the buddy list frequently, and the updated buddy data (second data) needs to be acquired by the terminal from the server. When the terminal initiates to acquire updated friend data from the server, the generating unit 402 first generates a corresponding second verification parameter according to the updated friend data. The verification parameters include:
if the first verification parameter is Etag, the second verification parameter is Etag; or,
and if the first verification parameter is a parameter obtained after the first data is calculated through a security algorithm, the second verification parameter is a parameter obtained after the second data is calculated through the security algorithm.
Wherein:
the Etag is an "entity value of a requested variable", that is, "a token associated with a Web resource", defined in a Hypertext Transfer Protocol (HTTP), and may be a token of a Web resource (first data and second data) transmitted by a server.
After the data is calculated by the security algorithm, a parameter can also be obtained, such as: after the data is calculated by the Message Digest Algorithm5 (Message Digest Algorithm5 is abbreviated as MD 5), a fixed-length value can be obtained, and the value is the verification parameter. Similar algorithms also include: MD2, MD3, MD4, and the like.
A comparing unit 403, configured to compare the second authentication parameter generated by the generating unit 402 with a first authentication parameter stored in a server, where the first authentication parameter is generated according to first data locally stored in the terminal and sent by the terminal.
In this embodiment of the present invention, after the generating unit 402 generates the second verification parameter, the comparing unit 403 compares the second verification parameter with the first verification parameter stored in the server, where the first verification parameter is generated by the terminal according to the friend data locally stored in the terminal.
A sending unit 404, configured to send an update instruction to a terminal according to a result of the comparison by the comparing unit 403, so that the terminal updates the locally stored first data according to the update instruction.
In the embodiment of the present invention, the comparison results of the second verification parameter and the first verification parameter are only two types: the second verification parameter is the same as the first verification parameter; the second authentication parameter is different from the first authentication parameter. The sending unit 404 includes:
a same sending subunit 4041, configured to instruct the terminal to keep the first data locally stored by the terminal unchanged if the second authentication parameter is the same as the first authentication parameter; or,
the different sending subunit 4042, if the second verification parameter is different from the first verification parameter, sends second data corresponding to the second verification parameter to the terminal, so that the terminal updates the locally stored data to the second data.
In the embodiment of the invention, if the second verification parameter is the same as the first verification parameter, the updated friend data is the same as the friend data stored in the terminal, and the server only needs to instruct the terminal to call the locally stored friend data to generate the friend list; if the second verification parameter is different from the first verification parameter, the updated friend data is different from the friend data stored in the terminal, and the server needs to send the updated friend data to the terminal.
In the embodiment of the invention, the server generates the second verification parameter corresponding to the second data, compares the second verification parameter with the first verification parameter, and updates the data stored in the terminal according to the comparison result of the second verification parameter and the first verification parameter, so that the terminal does not need to acquire complete data from the server every time when updating the data to the server, the network bandwidth is saved, and the operation performance of the terminal is improved.
As an alternative embodiment of the present invention, before the comparing unit 403 compares, the apparatus further includes:
an obtaining unit 405, configured to obtain and store the first verification parameter.
In this embodiment of the present invention, before the comparing unit 403 compares the second authentication parameter with the first authentication parameter, the obtaining unit 405 needs to obtain the first authentication parameter from the terminal, and many methods for obtaining the first authentication parameter are included, which is not limited herein.
As another optional embodiment of the present invention, the sending unit 404 sends the second data and the randomly acquired third data to the terminal, and the second verification parameter generated by the generating unit 402 is: calculating the parameters obtained after the second data are obtained through a security algorithm; the first verification parameter used by the comparing unit 403 for comparison is: and calculating the parameters obtained after the first data are calculated through a security algorithm.
In the embodiment of the present invention, if the sending unit 404 sends the second data and the randomly generated third data to the terminal (for example, if the recommended friends sent to the terminal by the server in the communication application are different each time, that is, the recommended friends are randomly generated), the verification parameter may only be a parameter obtained by calculating the data through a security algorithm. Web resources sent by the server to the terminal are all integrated, namely, the third data and the second data only generate an integral Etag, the third data are different each time, the corresponding Etags are different each time, and the parameters obtained after the data are calculated through the security algorithm can independently calculate the verification parameters for the second data.
Correspondingly, if the sending unit 404 sends the second data and the randomly generated third data to the terminal, the step of sending the update instruction by the sending unit 404 includes:
if the second verification parameter is the same as the first verification parameter, the third data is sent to the terminal; or,
and if the second verification parameter is different from the first verification parameter, sending second data and third data corresponding to the second verification parameter to the terminal.
Those skilled in the art can understand that each unit included in the above embodiments is only divided according to functional logic, but is not limited to the above division as long as the corresponding function can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It will also be understood by those skilled in the art that all or part of the steps in the method according to the above embodiments may be implemented by a program to instruct related hardware, such as instructions stored in the server, to be executed by at least one processor in the server, so as to implement the image processing method. In this embodiment, the program may be stored in a readable storage medium of the server, where the storage medium includes a ROM/RAM, a magnetic disk, an optical disk, and the like.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (12)

1. A method for updating data, the method comprising:
receiving a data updating request sent by a terminal;
generating a second verification parameter corresponding to second data according to the data updating request, wherein the second data is used for being sent to the terminal to update the first data stored by the terminal;
comparing the second verification parameter with a first verification parameter stored by a server, wherein the first verification parameter is generated according to first data locally stored by the terminal and sent by the terminal;
and sending an updating instruction to the terminal according to the comparison result so that the terminal updates the first data stored locally according to the updating instruction.
2. The method of claim 1, wherein prior to the step of comparing the second authentication parameter to the server-stored first authentication parameter, the method further comprises:
and acquiring and storing the first verification parameter.
3. The method of claim 1, wherein the step of sending an update indication to the terminal based on the result of the comparison comprises:
if the second verification parameter is the same as the first verification parameter, the terminal is instructed to keep the first data stored locally in the terminal unchanged; or,
and if the second verification parameter is different from the first verification parameter, sending second data corresponding to the second verification parameter to the terminal so that the terminal updates the locally stored data into the second data.
4. The method of any of claims 1 to 3, wherein the validation parameters comprise:
if the first verification parameter is Etag, the second verification parameter is Etag; or,
and if the first verification parameter is a parameter obtained after the first data is calculated through a security algorithm, the second verification parameter is a parameter obtained after the second data is calculated through the security algorithm.
5. The method according to claim 4, wherein the second data and the randomly acquired third data are sent to a terminal, and in the step of generating the second verification parameter corresponding to the second data according to the data update request, the generated second verification parameter is: calculating the parameters obtained after the second data are obtained through a security algorithm; in the step of comparing the second authentication parameter with the first authentication parameter stored by the server, the first authentication parameter to be compared is: and calculating the parameters obtained after the first data are calculated through a security algorithm.
6. The method of claim 5, wherein the step of sending the second data and the randomly acquired third data to the terminal, and the step of sending an update indication to the terminal based on the result of the comparison, comprises:
if the second verification parameter is the same as the first verification parameter, the third data is sent to the terminal; or,
and if the second verification parameter is different from the first verification parameter, sending second data and third data corresponding to the second verification parameter to the terminal.
7. An apparatus for updating data, the apparatus comprising:
the receiving unit is used for receiving a data updating request sent by the terminal;
the generating unit is used for generating a second verification parameter corresponding to second data according to the data updating request received by the receiving unit, wherein the second data is used for being sent to the terminal to update the first data stored by the terminal;
the comparison unit is used for comparing the second verification parameter generated by the generation unit with a first verification parameter stored by a server, wherein the first verification parameter is generated according to first data locally stored by the terminal and sent by the terminal;
and the sending unit is used for sending an updating instruction to the terminal according to the comparison result of the comparison unit so that the terminal updates the first data stored locally according to the updating instruction.
8. The apparatus of claim 7, wherein prior to the comparison by the comparison unit, the apparatus further comprises:
and the acquisition unit is used for acquiring and storing the first verification parameter.
9. The apparatus of claim 7, wherein the transmitting unit comprises:
the same sending subunit is configured to instruct the terminal to keep the first data locally stored by the terminal unchanged if the second verification parameter is the same as the first verification parameter; or,
and if the second verification parameter is different from the first verification parameter, the different sending subunit sends second data corresponding to the second verification parameter to the terminal, so that the terminal updates the locally stored data into the second data.
10. The apparatus of any of claims 7 to 9, wherein the authentication parameters comprise:
if the first verification parameter is Etag, the second verification parameter is Etag; or,
and if the first verification parameter is a parameter obtained after the first data is calculated through a security algorithm, the second verification parameter is a parameter obtained after the second data is calculated through the security algorithm.
11. The apparatus according to claim 10, wherein the sending unit sends the second data and the randomly acquired third data to the terminal, and the second verification parameter generated by the generating unit is: calculating the parameters obtained after the second data are obtained through a security algorithm; the first verification parameter used by the comparison unit for comparison is: and calculating the parameters obtained after the first data are calculated through a security algorithm.
12. The apparatus as claimed in claim 11, wherein the transmitting unit transmits the second data and the randomly acquired third data to the terminal, and the step of the transmitting unit transmitting the update indication comprises:
if the second verification parameter is the same as the first verification parameter, the third data is sent to the terminal; or,
and if the second verification parameter is different from the first verification parameter, sending second data and third data corresponding to the second verification parameter to the terminal.
CN201310268659.0A 2013-06-28 2013-06-28 A kind of data-updating method and the system of renewal Active CN103327026B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310268659.0A CN103327026B (en) 2013-06-28 2013-06-28 A kind of data-updating method and the system of renewal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310268659.0A CN103327026B (en) 2013-06-28 2013-06-28 A kind of data-updating method and the system of renewal

Publications (2)

Publication Number Publication Date
CN103327026A true CN103327026A (en) 2013-09-25
CN103327026B CN103327026B (en) 2016-03-02

Family

ID=49195556

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310268659.0A Active CN103327026B (en) 2013-06-28 2013-06-28 A kind of data-updating method and the system of renewal

Country Status (1)

Country Link
CN (1) CN103327026B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618498A (en) * 2015-02-13 2015-05-13 深圳市创梦天地科技有限公司 Data resource synchronizing method and server
CN106055420A (en) * 2016-05-18 2016-10-26 沈阳东软医疗系统有限公司 Method, device and equipment for data verification
CN106161623A (en) * 2016-07-05 2016-11-23 上海帝联信息科技股份有限公司 Caching server, renewal server and data-updating method
CN109446205A (en) * 2017-08-28 2019-03-08 中国电信股份有限公司 Judge the device and method of data mode and the device and method that data update

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030157A (en) * 2007-04-20 2007-09-05 北京搜狗科技发展有限公司 Method and system for updating user vocabulary synchronouslly
CN101051912A (en) * 2006-04-05 2007-10-10 迈世亚(北京)科技有限公司 Data automatic updating method
CN101194229A (en) * 2005-04-11 2008-06-04 索尼爱立信移动通讯股份有限公司 Updating of data instructions
CN101316256A (en) * 2007-05-28 2008-12-03 微码(北京)移动技术有限公司 Data updating method
CN102622251A (en) * 2012-03-07 2012-08-01 深圳市凯立德欣软件技术有限公司 Method and server for managing navigation software upgrading
CN102724297A (en) * 2012-05-25 2012-10-10 上海传漾网络科技有限公司 Method for increasing access speed in browser/server (BS) architecture advertisement management system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101194229A (en) * 2005-04-11 2008-06-04 索尼爱立信移动通讯股份有限公司 Updating of data instructions
CN101051912A (en) * 2006-04-05 2007-10-10 迈世亚(北京)科技有限公司 Data automatic updating method
CN101030157A (en) * 2007-04-20 2007-09-05 北京搜狗科技发展有限公司 Method and system for updating user vocabulary synchronouslly
CN101316256A (en) * 2007-05-28 2008-12-03 微码(北京)移动技术有限公司 Data updating method
CN102622251A (en) * 2012-03-07 2012-08-01 深圳市凯立德欣软件技术有限公司 Method and server for managing navigation software upgrading
CN102724297A (en) * 2012-05-25 2012-10-10 上海传漾网络科技有限公司 Method for increasing access speed in browser/server (BS) architecture advertisement management system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618498A (en) * 2015-02-13 2015-05-13 深圳市创梦天地科技有限公司 Data resource synchronizing method and server
CN106055420A (en) * 2016-05-18 2016-10-26 沈阳东软医疗系统有限公司 Method, device and equipment for data verification
CN106055420B (en) * 2016-05-18 2019-07-16 东软医疗系统股份有限公司 A kind of data verification method, device and equipment
CN106161623A (en) * 2016-07-05 2016-11-23 上海帝联信息科技股份有限公司 Caching server, renewal server and data-updating method
CN109446205A (en) * 2017-08-28 2019-03-08 中国电信股份有限公司 Judge the device and method of data mode and the device and method that data update
CN109446205B (en) * 2017-08-28 2021-03-16 中国电信股份有限公司 Device and method for judging data state and device and method for updating data

Also Published As

Publication number Publication date
CN103327026B (en) 2016-03-02

Similar Documents

Publication Publication Date Title
CN110929880A (en) Method and device for federated learning and computer readable storage medium
CN111182525B (en) Method and device for storing data
CN105516135B (en) Method and device for account login
CN113015165A (en) Internet of things platform device access method, device and system
FR2855691B1 (en) SECURING THE DISTRIBUTION OF DIGITAL DOCUMENTS IN A PAIRING NETWORK
CN111355986B (en) Message processing method and device in live broadcast room and storage medium
CN112615753B (en) Link abnormity tracking method, first node, second node and link
CN103327026B (en) A kind of data-updating method and the system of renewal
CN112087475B (en) Message pushing method and device for cloud platform component application and message server
CN110650097B (en) Data broadcasting method and device and computer readable storage medium
CN108418679B (en) Method and device for processing secret key under multiple data centers and electronic equipment
US11546284B2 (en) Offline email synchronization
EP3171565B1 (en) Methods, devices and system for netconf hello packets interaction
CN110888892B (en) Block synchronization method, device and storage medium
KR20190127867A (en) Method for managing reputation level of communication device
CN106487637A (en) A kind of processing system of application message, method and application apparatus
CN106412018B (en) Message pushing method and device
CN104796311B (en) A kind of method, client, server and the system for sending information of transmission information
CN115243256A (en) Gateway dynamic login method and device
KR101632366B1 (en) Cloud Monitoring System for Parallel Processing Holographic Content
CN105471818B (en) Method and system for information transmission between application software
US20180227720A1 (en) Method and system for providing information data
CN114553542A (en) Data packet encryption method and device and electronic equipment
JP2019029921A (en) Transmitter, receiver, and communication method
CN105187472A (en) Data synchronization method and data synchronization device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant