CN110557412A - A data synchronization method and device - Google Patents
A data synchronization method and device Download PDFInfo
- Publication number
- CN110557412A CN110557412A CN201810541503.8A CN201810541503A CN110557412A CN 110557412 A CN110557412 A CN 110557412A CN 201810541503 A CN201810541503 A CN 201810541503A CN 110557412 A CN110557412 A CN 110557412A
- Authority
- CN
- China
- Prior art keywords
- page
- data
- updated
- synchronized
- synchronization information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域technical field
本发明涉及计算机技术领域,特别是涉及一种数据同步方法及装置。The invention relates to the field of computer technology, in particular to a data synchronization method and device.
背景技术Background technique
页面展示信息时受限于显示设备的大小,当需要同时展示多个页面时,用户浏览时需要在多个页面之间来回切换。为了解决浏览多个页面时来回切换的问题,从电脑输出多个视频源。这样用户可以同时浏览多个页面。每一个页面均是一个独立的进程,各页面之间的数据不能共享。目前,用户主要通过手动操作的方式在不同的页面之间进行数据同步。例如,用户通过手动操作将一个页面中需要同步的数据,分别导入到相关联的其他页面,实现各页面之间的数据同步。When displaying information on a page, it is limited by the size of the display device. When multiple pages need to be displayed at the same time, the user needs to switch back and forth between multiple pages when browsing. In order to solve the problem of switching back and forth when browsing multiple pages, multiple video sources are output from the computer. This allows users to browse multiple pages at the same time. Each page is an independent process, and data between pages cannot be shared. Currently, users mainly perform data synchronization between different pages through manual operations. For example, the user manually imports the data that needs to be synchronized in one page to other associated pages, so as to realize the data synchronization among the pages.
然而,通过手动操作的方式在所关联的页面之间进行数据同步,不仅浪费人力资源,而且降低了数据同步的效率。However, manually performing data synchronization among associated pages not only wastes human resources, but also reduces the efficiency of data synchronization.
发明内容Contents of the invention
本发明实施例的目的在于提供一种数据同步方法及装置,以解决通过手动操作的方式实现多页面之间的数据同步的问题,进而提高数据同步的效率。具体技术方案如下:The purpose of the embodiments of the present invention is to provide a data synchronization method and device, so as to solve the problem of realizing data synchronization between multiple pages through manual operation, and further improve the efficiency of data synchronization. The specific technical scheme is as follows:
第一方面,本发明实施例提供了一种数据同步方法,应用于服务器,所述方法包括:In a first aspect, an embodiment of the present invention provides a data synchronization method applied to a server, and the method includes:
接收目标页面发送的更新信息,其中,所述更新信息包括登录所述目标页面的用户的用户信息和待更新数据标识;receiving the update information sent by the target page, wherein the update information includes the user information of the user who logs into the target page and the data identifier to be updated;
从用户登录的多个页面中,确定待同步页面;From the multiple pages logged in by the user, determine the page to be synchronized;
生成针对所述待更新数据标识对应的数据的同步信息;generating synchronization information for the data corresponding to the data identifier to be updated;
将所述同步信息发送至所述待同步页面,以使得所述待同步页面根据所述同步信息更新所述待更新数据标识对应的数据。Sending the synchronization information to the page to be synchronized, so that the page to be synchronized updates the data corresponding to the data identifier to be updated according to the synchronization information.
可选地,所述从用户登录的多个页面中,确定待同步页面的步骤,包括:Optionally, the step of determining the page to be synchronized from the multiple pages logged in by the user includes:
若目标页面为检索页面,从用户登录的功能页面中,确定待同步页面;If the target page is a retrieval page, determine the page to be synchronized from the function page logged in by the user;
若目标页面为功能页面,从用户登录的除所述目标页面以外的其他功能页面中,确定待同步页面。If the target page is a functional page, determine the page to be synchronized from other functional pages logged in by the user except the target page.
可选地,所述更新信息还包括操作类型;Optionally, the update information also includes an operation type;
所述生成针对所述待更新数据标识对应的数据的同步信息的步骤,包括:The step of generating synchronization information for the data corresponding to the data identifier to be updated includes:
根据预设的页面与数据标识列表的对应关系,获取所述待同步页面对应的目标数据标识列表,其中,所述数据标识列表用于记录所对应的页面包括的各数据的标识;Obtain a target data identification list corresponding to the page to be synchronized according to the preset correspondence between the page and the data identification list, wherein the data identification list is used to record the identification of each data included in the corresponding page;
根据所述操作类型,以及所述目标数据标识列表中是否存储有所述待更新数据标识,生成针对所述待更新数据标识对应的数据的同步信息。Synchronization information for data corresponding to the data identifier to be updated is generated according to the operation type and whether the data identifier to be updated is stored in the target data identifier list.
可选地,所述操作类型为导入操作;Optionally, the operation type is an import operation;
所述根据所述操作类型,以及所述目标数据标识列表中是否存储有所述待更新数据标识,生成针对所述待更新数据标识对应的数据的同步信息的步骤,包括:The step of generating synchronization information for the data corresponding to the data identifier to be updated according to the operation type and whether the data identifier to be updated is stored in the target data identifier list includes:
判断所述目标数据标识列表中是否存储有所述待更新数据标识;judging whether the data identifier to be updated is stored in the target data identifier list;
如果否,从预设的数据库中,获取所述待更新数据标识对应的待更新数据,所述数据库中存储数据标识与数据的对应关系;If not, from a preset database, the data to be updated corresponding to the data to be updated identifier is obtained, and the corresponding relationship between the data identifier and the data is stored in the database;
生成包含所述待更新数据的第一同步信息,所述第一同步信息用于将待更新数据导入所述待同步页面。First synchronization information including the data to be updated is generated, and the first synchronization information is used to import the data to be updated into the page to be synchronized.
可选地,所述操作类型为删除操作;Optionally, the operation type is a delete operation;
所述根据所述操作类型,以及所述目标数据标识列表中是否存储有所述待更新数据标识,生成针对所述待更新数据标识对应的数据的同步信息的步骤,包括:The step of generating synchronization information for the data corresponding to the data identifier to be updated according to the operation type and whether the data identifier to be updated is stored in the target data identifier list includes:
判断所述目标数据标识列表中是否存储有所述待更新数据标识;judging whether the data identifier to be updated is stored in the target data identifier list;
如果是,生成针对待删除数据的第二同步信息,所述待删除数据为所述待更新数据标识对应的数据,所述第二同步信息用于将所述待删除数据从所述待同步页面中删除。If so, generate second synchronization information for the data to be deleted, the data to be deleted is the data corresponding to the data to be updated, and the second synchronization information is used to transfer the data to be deleted from the page to be synchronized Deleted in .
可选地,所述操作类型为选择操作;Optionally, the operation type is a selection operation;
所述根据所述操作类型,以及所述目标数据标识列表中是否存储有所述待更新数据标识,生成针对所述待更新数据标识对应的数据的同步信息的步骤,包括:The step of generating synchronization information for the data corresponding to the data identifier to be updated according to the operation type and whether the data identifier to be updated is stored in the target data identifier list includes:
判断所述目标数据标识列表中是否存储有所述待更新数据标识;judging whether the data identifier to be updated is stored in the target data identifier list;
如果是,生成针对待选择数据的第三同步信息,所述待选择数据为所述待更新数据标识对应的数据,所述第三同步信息用于在所述待同步页面中选择所述待选择数据;If so, generate third synchronization information for the data to be selected, the data to be selected is the data corresponding to the data to be updated, and the third synchronization information is used to select the data to be selected in the page to be synchronized data;
如果否,获取所述待选择数据,并生成包含所述待同步数据的第三同步信息。If not, acquire the data to be selected, and generate third synchronization information including the data to be synchronized.
可选地,所述用户已登录的页面包括:功能页面和检索页面;所述方法还包括:Optionally, the pages on which the user has logged in include: a function page and a retrieval page; the method further includes:
接收功能页面发送的心跳包;Receive the heartbeat packet sent by the function page;
根据所接收到的心跳包,确定所述功能页面的页面状态;Determine the page status of the function page according to the received heartbeat packet;
将包含所述页面状态的信息发送至检索页面,以使得所述检索页面对所述功能页面的页面状态进行更新。Sending information including the page status to the retrieval page, so that the retrieval page updates the page status of the function page.
可选地,所述根据所接收到的心跳包,确定所述功能页面的页面状态的步骤,包括:Optionally, the step of determining the page status of the function page according to the received heartbeat packet includes:
若预设时长内接收到下一个心跳包,则确定所述功能页面的页面状态为开启状态;If the next heartbeat packet is received within the preset duration, it is determined that the page status of the function page is open;
若预设时长内未接收到下一个心跳包,则中断与所述功能页面的连接,并确定所述功能页面的页面状态为关闭状态。If the next heartbeat packet is not received within the preset time period, the connection with the function page is interrupted, and the page status of the function page is determined to be closed.
可选地,所述心跳包包括用户信息;Optionally, the heartbeat packet includes user information;
所述根据所接收到的心跳包,确定所述功能页面的页面状态的步骤,包括:The step of determining the page status of the function page according to the received heartbeat packet includes:
根据所述心跳包包括的用户信息,与所述功能页面建立连接;Establishing a connection with the function page according to the user information included in the heartbeat packet;
确定所述功能页面的页面状态为开启状态。It is determined that the page state of the function page is an open state.
第二方面,本发明实施例提供了一种数据同步装置,应用于服务器,所述装置包括:In a second aspect, an embodiment of the present invention provides a data synchronization device, which is applied to a server, and the device includes:
第一接收模块,用于接收目标页面发送的更新信息,其中,所述更新信息包括登录所述目标页面的用户的用户信息和待更新数据标识;The first receiving module is configured to receive the update information sent by the target page, wherein the update information includes the user information of the user who logs into the target page and the data identifier to be updated;
第一确定模块,用于从用户登录的多个页面中,确定待同步页面;The first determining module is used to determine the page to be synchronized from the multiple pages logged in by the user;
生成模块,用于生成针对所述待更新数据标识对应的数据的同步信息;A generating module, configured to generate synchronization information for the data corresponding to the data identifier to be updated;
第一发送模块,用于将所述同步信息发送至所述待同步页面,以使得所述待同步页面根据所述同步信息更新所述待更新数据标识对应的数据。The first sending module is configured to send the synchronization information to the page to be synchronized, so that the page to be synchronized updates the data corresponding to the data identifier to be updated according to the synchronization information.
可选地,所述第一确定模块具体用于:Optionally, the first determining module is specifically configured to:
若目标页面为检索页面,从用户登录的功能页面中,确定待同步页面;If the target page is a retrieval page, determine the page to be synchronized from the function page logged in by the user;
若目标页面为功能页面,从用户登录的除所述目标页面以外的其他功能页面中,确定待同步页面。If the target page is a functional page, determine the page to be synchronized from other functional pages logged in by the user except the target page.
可选地,所述更新信息还包括操作类型;Optionally, the update information also includes an operation type;
所述生成模块包括:The generating modules include:
获取子模块,用于根据预设的页面与数据标识列表的对应关系,获取所述待同步页面对应的目标数据标识列表,其中,所述数据标识列表用于记录所对应的页面包括的各数据的标识;The obtaining sub-module is used to obtain the target data identification list corresponding to the page to be synchronized according to the preset correspondence between the page and the data identification list, wherein the data identification list is used to record each data included in the corresponding page logo;
生成子模块,用于根据所述操作类型,以及所述目标数据标识列表中是否存储有所述待更新数据标识,生成针对所述待更新数据标识对应的数据的同步信息。The generating submodule is configured to generate synchronization information for data corresponding to the data identifier to be updated according to the operation type and whether the data identifier to be updated is stored in the target data identifier list.
可选地,所述操作类型为导入操作;Optionally, the operation type is an import operation;
所述生成子模块具体用于:The generating submodule is specifically used for:
判断所述目标数据标识列表中是否存储有所述待更新数据标识;judging whether the data identifier to be updated is stored in the target data identifier list;
如果否,从预设的数据库中,获取所述待更新数据标识对应的待更新数据,所述数据库中存储数据标识与数据的对应关系;If not, from a preset database, the data to be updated corresponding to the data to be updated identifier is obtained, and the corresponding relationship between the data identifier and the data is stored in the database;
生成包含所述待更新数据的第一同步信息,所述第一同步信息用于将待更新数据导入所述待同步页面。First synchronization information including the data to be updated is generated, and the first synchronization information is used to import the data to be updated into the page to be synchronized.
可选地,所述操作类型为删除操作;Optionally, the operation type is a delete operation;
所述生成子模块具体用于:The generating submodule is specifically used for:
判断所述目标数据标识列表中是否存储有所述待更新数据标识;judging whether the data identifier to be updated is stored in the target data identifier list;
如果是,生成针对待删除数据的第二同步信息,所述待删除数据为所述待更新数据标识对应的数据,所述第二同步信息用于将所述待删除数据从所述待同步页面中删除。If so, generate second synchronization information for the data to be deleted, the data to be deleted is the data corresponding to the data to be updated, and the second synchronization information is used to transfer the data to be deleted from the page to be synchronized Deleted in .
可选地,所述操作类型为选择操作;Optionally, the operation type is a selection operation;
所述生成子模块具体用于:The generating submodule is specifically used for:
判断所述目标数据标识列表中是否存储有所述待更新数据标识;judging whether the data identifier to be updated is stored in the target data identifier list;
如果是,生成针对待选择数据的第三同步信息,所述待选择数据为所述待更新数据标识对应的数据,所述第三同步信息用于在所述待同步页面中选择所述待选择数据;If so, generate third synchronization information for the data to be selected, the data to be selected is the data corresponding to the data to be updated, and the third synchronization information is used to select the data to be selected in the page to be synchronized data;
如果否,获取所述待选择数据,并生成包含所述待同步数据的第三同步信息。If not, acquire the data to be selected, and generate third synchronization information including the data to be synchronized.
可选地,所述用户已登录的页面包括:功能页面和检索页面;所述装置还包括:Optionally, the pages on which the user has logged in include: a function page and a retrieval page; the device further includes:
第二接收模块,用于接收功能页面发送的心跳包;The second receiving module is used to receive the heartbeat packet sent by the function page;
第二确定模块,用于根据所接收到的心跳包,确定所述功能页面的页面状态;The second determination module is used to determine the page status of the function page according to the received heartbeat packet;
第二发送模块,用于将包含所述页面状态的信息发送至检索页面,以使得所述检索页面对所述功能页面的页面状态进行更新。The second sending module is configured to send the information including the page status to the retrieval page, so that the retrieval page updates the page status of the function page.
可选地,所述第二确定模块具体用于:Optionally, the second determination module is specifically configured to:
若预设时长内接收到下一个心跳包,则确定所述功能页面的页面状态为开启状态;If the next heartbeat packet is received within the preset duration, it is determined that the page status of the function page is open;
若预设时长内未接收到下一个心跳包,则中断与所述功能页面的连接,并确定所述功能页面的页面状态为关闭状态。If the next heartbeat packet is not received within the preset time period, the connection with the function page is interrupted, and the page status of the function page is determined to be closed.
可选地,所述心跳包包括用户信息;所述第二确定模块具体用于:Optionally, the heartbeat packet includes user information; the second determination module is specifically configured to:
根据所述心跳包包括的用户信息,与所述功能页面建立连接;Establishing a connection with the function page according to the user information included in the heartbeat packet;
确定所述功能页面的页面状态为开启状态。It is determined that the page state of the function page is an open state.
第三方面,本发明实施例提供了一种数据同步系统,包括服务器和至少两个页面;所述至少两个页面中的目标页面,用于获取用户输入的更新信息,并将所述更新信息发送至所述服务器,所述更新信息包括所述用户的用户信息和待更新数据标识;In the third aspect, the embodiment of the present invention provides a data synchronization system, including a server and at least two pages; the target page in the at least two pages is used to obtain the update information input by the user, and convert the update information sent to the server, the update information includes the user information of the user and the data identifier to be updated;
所述服务器,用于接收所述目标页面发送的所述更新信息,从用户登录的多个页面中,确定待同步页面;生成针对所述待更新数据标识对应的数据的同步信息;将所述同步信息发送至所述待同步页面;The server is configured to receive the update information sent by the target page, determine the page to be synchronized from the multiple pages logged in by the user; generate synchronization information for the data corresponding to the data to be updated identifier; The synchronization information is sent to the page to be synchronized;
所述待同步页面,用于接收所述服务器发送的所述同步信息,并根据所述同步信息更新所述待更新数据标识对应的数据。The page to be synchronized is configured to receive the synchronization information sent by the server, and update the data corresponding to the data identifier to be updated according to the synchronization information.
可选地,所述至少两个页面包括检索页面和功能页面;当目标页面为检索页面时,Optionally, the at least two pages include a search page and a function page; when the target page is a search page,
所述目标页面,还用于获取用户输入的指定功能页面的信息;检测所述指定功能页面的页面状态是否为开启状态;如果否,创建所述指定功能页面,并根据所述用户信息,开启所述指定功能页面。The target page is also used to obtain the information of the specified function page input by the user; detect whether the page status of the specified function page is open; if not, create the specified function page, and open the specified function page according to the user information The designated function page.
第四方面,本发明实施例提供了一种服务器,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;In a fourth aspect, an embodiment of the present invention provides a server, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete communication with each other through the communication bus;
存储器,用于存放计算机程序;memory for storing computer programs;
处理器,用于执行存储器上所存放的程序时,实现上述任一所述的数据同步方法步骤。The processor is configured to implement the steps of any one of the data synchronization methods described above when executing the program stored in the memory.
第五方面,本发明实施例提供了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述任一所述的数据同步方法步骤。In the fifth aspect, the embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any one of the data synchronization methods described above is implemented step.
本发明实施例提供的技术方案中,服务器接收目标页面发送的更新信息,从用户登录的多个页面中,确定待同步页面;生成针对待更新数据标识对应的数据的同步信息,并将同步信息发送至待同步页面,待同步页面根据同步信息更新待更新数据标识对应的数据。这样,由服务器确定待同步页面,待同步页面根据服务器的同步信息进行更新,不仅实现了多页面之间数据同步,而且解决了手动操作进行更新的问题,提高了数据同步的效率。In the technical solution provided by the embodiment of the present invention, the server receives the update information sent by the target page, determines the page to be synchronized from the multiple pages logged in by the user; generates synchronization information for the data corresponding to the data identifier to be updated, and converts the synchronization information Send to the page to be synchronized, and the page to be synchronized updates the data corresponding to the data identifier to be updated according to the synchronization information. In this way, the server determines the page to be synchronized, and the page to be synchronized is updated according to the synchronization information of the server, which not only realizes data synchronization between multiple pages, but also solves the problem of updating by manual operation, and improves the efficiency of data synchronization.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为本发明实施例提供的数据同步方法的一种流程图;FIG. 1 is a flowchart of a data synchronization method provided by an embodiment of the present invention;
图2为本发明实施例提供的数据同步装置的一种结构示意图;FIG. 2 is a schematic structural diagram of a data synchronization device provided by an embodiment of the present invention;
图3为本发明实施例提供的数据同步系统的一种结构示意图;FIG. 3 is a schematic structural diagram of a data synchronization system provided by an embodiment of the present invention;
图4为本发明实施例提供的服务器的一种结构示意图。FIG. 4 is a schematic structural diagram of a server provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
为了解决通过手动操作的方式实现多页面之间的数据同步的问题,本发明实施例提供了一种数据同步方法及装置,应用于服务器,其中,该数据同步方法包括如下步骤:In order to solve the problem of realizing data synchronization between multiple pages through manual operation, an embodiment of the present invention provides a data synchronization method and device, which are applied to a server, wherein the data synchronization method includes the following steps:
接收目标页面发送的更新信息,其中,更新信息包括登录目标页面的用户的用户信息和待更新数据标识;receiving the update information sent by the target page, wherein the update information includes the user information of the user who logs into the target page and the data identifier to be updated;
从用户登录的多个页面中,确定待同步页面;From the multiple pages logged in by the user, determine the page to be synchronized;
生成针对待更新数据标识对应的数据的同步信息;Generate synchronization information for the data corresponding to the data identifier to be updated;
将同步信息发送至待同步页面,以使得待同步页面根据同步信息更新待更新数据标识对应的数据。The synchronization information is sent to the page to be synchronized, so that the page to be synchronized updates the data corresponding to the data identifier to be updated according to the synchronization information.
本发明实施例提供的技术方案中,服务器接收目标页面发送的更新信息,从用户登录的多个页面中,确定待同步页面;生成针对待更新数据标识对应的数据的同步信息,并将同步信息发送至待同步页面,待同步页面根据同步信息更新待更新数据标识对应的数据。这样,由服务器确定待同步页面,待同步页面根据服务器的同步信息进行更新,不仅实现了多页面之间数据同步,而且解决了手动操作进行更新的问题,提高了数据同步的效率。In the technical solution provided by the embodiment of the present invention, the server receives the update information sent by the target page, determines the page to be synchronized from the multiple pages logged in by the user; generates synchronization information for the data corresponding to the data identifier to be updated, and converts the synchronization information Send to the page to be synchronized, and the page to be synchronized updates the data corresponding to the data identifier to be updated according to the synchronization information. In this way, the server determines the page to be synchronized, and the page to be synchronized is updated according to the synchronization information of the server, which not only realizes data synchronization between multiple pages, but also solves the problem of updating by manual operation, and improves the efficiency of data synchronization.
下面首先对本发明实施例提供的一种数据同步方法进行介绍,如图1所示,该数据同步方法应用于服务器,具体地,该服务器可以是提供HTTP协议和WebSocket协议通信的HTTP服务器。该数据同步方法包括如下步骤。A data synchronization method provided by an embodiment of the present invention is firstly introduced below. As shown in FIG. 1 , the data synchronization method is applied to a server. Specifically, the server may be an HTTP server that provides HTTP protocol and WebSocket protocol communication. The data synchronization method includes the following steps.
S101,接收目标页面发送的更新信息。S101. Receive update information sent by a target page.
其中,目标页面可以是检索页面,还可以是功能页面。Wherein, the target page may be a search page or a function page.
检索页面为基于多屏的页面中的数据入口页面,用户登录到检索页面后,可以在检索页面输入所需的检索信息进行检索。功能页面为除检索页面以外的其他页面,并且每一个功能页面各自具有独立的功能。The search page is a data entry page based on multi-screen pages. After the user logs in to the search page, he can enter the required search information on the search page for search. Functional pages are pages other than the search page, and each functional page has an independent function.
例如,功能页面可以包括:关系网络页面、地图分析页面和综合研判页面等。其中,关系网络页面用于展示与所检索的目标对象有关联的其他人物的关系图,例如用户检索嫌疑人A,则关系网络页面会展示出与该嫌疑人A有关联的人物关系:家人关系、朋友关系、同事关系等。地图分析页面用于展示与所检索的目标对象有关联的地址信息。综合研判页面用于展示根据所检索的目标对象的相关信息进行综合判断后的结论。For example, the functional pages may include: relationship network pages, map analysis pages, and comprehensive research and judgment pages. Among them, the relationship network page is used to display the relationship diagram of other people related to the retrieved target object. For example, if the user searches for suspect A, the relationship network page will display the relationship between people related to the suspect A: family relationship , friendships, colleagues, etc. The map analysis page is used to display address information associated with the retrieved target object. The comprehensive research and judgment page is used to display the conclusion of comprehensive judgment based on the retrieved relevant information of the target object.
检索页面和功能页面均与服务器相连接的,该连接可以是WebSocket连接,具体地,检索页面和功能页面通过WebSocket与服务器连接,这样,页面与服务器之间便可以进行双向通信。Both the search page and the function page are connected to the server, and the connection may be a WebSocket connection. Specifically, the search page and the function page are connected to the server through WebSocket, so that two-way communication can be performed between the page and the server.
其中,更新信息包括登录目标页面的用户的用户信息和待更新数据标识。用户信息可以包括以下中的至少一种:用户登录的用户名、用户标识等。Wherein, the update information includes the user information of the user who logs into the target page and the data identifier to be updated. The user information may include at least one of the following: user name of the user logged in, user identification, and the like.
可以预设数据与标识的对应关系,即对于每一数据,均对应一标识。待更新数据标识为:用户在目标页面进行更新的数据对应的标识。即登录目标页面的用户对该待更新数据标识的数据进行了更新,该待更新数据标识的数据需要在该用户登录的其他功能页面进行同样的更新。例如,用户在关系网络页面删除嫌疑人A的数据,该嫌疑人A对应的标识为A,则该A为待更新数据标识。The corresponding relationship between data and identifiers can be preset, that is, each data corresponds to an identifier. The data identifier to be updated is: the identifier corresponding to the data that the user updates on the target page. That is, the user who logs into the target page updates the data identified by the data to be updated, and the data identified by the data to be updated needs to be updated in the same way on other functional pages logged in by the user. For example, if the user deletes the data of the suspect A on the relationship network page, and the identifier corresponding to the suspect A is A, then the A is the data identifier to be updated.
S102,从用户登录的多个页面中,确定待同步页面。S102. Determine a page to be synchronized from the multiple pages logged in by the user.
服务器可以监听同一用户登录的各页面的页面状态,其中,页面状态可以分为关闭状态和开启状态。其中,关闭状态的页面可以是手动操作关闭,还可以是异常终止关闭;页面的关闭状态是指页面与服务器之间的连接断开,并且页面无法展示、也无法提供相应的功能;页面的开启状态是指页面与服务器相连接,并且页面向用户展示出来、并提供相应的功能。服务器从用户登录的多个页面中,将页面状态为开启状态的页面确定为待同步页面。The server can monitor the page status of each page logged in by the same user, wherein the page status can be divided into a closed state and an open state. Among them, the page in the closed state can be closed by manual operation or closed by abnormal termination; the closed state of the page means that the connection between the page and the server is disconnected, and the page cannot be displayed or provide corresponding functions; Status means that the page is connected to the server, and the page is displayed to the user and provides corresponding functions. From the plurality of pages logged in by the user, the server determines a page whose page state is in an open state as a page to be synchronized.
一种实施方式中,根据目标页面的不同,确定待同步页面可以分为以下两种情况:In one embodiment, according to different target pages, determining the pages to be synchronized can be divided into the following two situations:
第一种情况,若目标页面为检索页面,则从用户登录的功能页面中,确定待同步页面。其中,用户登录的功能页面为开启状态的功能页面。In the first case, if the target page is a retrieval page, the page to be synchronized is determined from the function pages logged in by the user. Wherein, the function page logged in by the user is the function page in the enabled state.
例如,目标页面为检索页面,用户登录的功能页面包括页面A、页面B和页面C。其中,页面A和页面B均处于开启状态,页面C处于关闭状态,则服务器将页面A和页面B确定为待同步页面。For example, the target page is a search page, and the functional pages logged in by the user include page A, page B, and page C. Wherein, page A and page B are both in the open state, and page C is in the closed state, then the server determines page A and page B as pages to be synchronized.
第二种情况,若目标页面为功能页面,从用户登录的除目标页面以外的其他功能页面中,确定待同步页面。其中,用户登录的除目标页面以外的其他功能页面为开启状态的功能页面。In the second case, if the target page is a functional page, the page to be synchronized is determined from other functional pages logged in by the user except the target page. Wherein, the functional pages other than the target page logged in by the user are functional pages in an open state.
例如,用户登录的功能页面包括页面A、页面B和页面C,其中,目标页面为页面A,页面B和页面C均处于开启状态,则服务器将页面B和页面C确定为待同步页面。For example, the functional pages logged in by the user include page A, page B, and page C, where the target page is page A, and page B and page C are both enabled, then the server determines page B and page C as pages to be synchronized.
S103,生成针对待更新数据标识对应的数据的同步信息。S103. Generate synchronization information for data corresponding to the data identifier to be updated.
同步信息用于指示对待更新数据标识对应的数据进行更新。根据用户在目标页面进行操作的操作类型的不同,服务器生成的同步信息所指示的更新方式会有不同。The synchronization information is used to indicate that the data corresponding to the identifier of the data to be updated is updated. Depending on the type of operation performed by the user on the target page, the update method indicated by the synchronization information generated by the server will be different.
一种实施方式中,更新信息还可以包括操作类型,其中,操作类型可以包括导入操作、删除操作和选择操作等。例如,更新信息中包括的操作类型为导入操作时,表示用户已将待更新数据标识对应的数据导入到目标页面中。In an implementation manner, the update information may further include an operation type, where the operation type may include an import operation, a delete operation, a selection operation, and the like. For example, when the operation type included in the update information is an import operation, it means that the user has imported the data corresponding to the data identifier to be updated into the target page.
服务器在确定出待同步页面后,可以根据预设的页面与数据标识列表的对应关系,获取待同步页面对应的目标数据标识列表。服务器通过查询所获取的目标数据标识列表,可以确定该目标数据标识列表中是否存储有待更新数据标识。After the server determines the pages to be synchronized, it can acquire the target data identifier list corresponding to the pages to be synchronized according to the preset correspondence between the pages and the data identifier list. By querying the acquired target data identifier list, the server can determine whether a data identifier to be updated is stored in the target data identifier list.
其中,每一页面均对应一数据标识列表,数据标识列表用于记录所对应页面包括的各数据的标识,即数据标识列表中记录的标识与该数据标识列表对应的页面包括的数据保持一致。Wherein, each page corresponds to a data identification list, and the data identification list is used to record the identification of each data included in the corresponding page, that is, the identification recorded in the data identification list is consistent with the data included in the page corresponding to the data identification list.
根据更新信息中包括的操作类型,以及目标数据标识列表中是否存储有待更新数据标识,生成针对待更新数据标识对应的数据的同步信息。According to the operation type included in the update information and whether the data identifier to be updated is stored in the target data identifier list, the synchronization information for the data corresponding to the data identifier to be updated is generated.
操作类型的不同,所生成的同步信息不同。具体地,操作类型为导入操作时,生成将待更新数据导入待同步页面的第一同步信息;操作类型为删除操作时,生成将待删除数据从待同步页面中删除的第二同步信息;操作类型为选择操作时,生成在待同步页面中选择待选择数据的第三同步信息。Depending on the type of operation, the generated synchronization information is different. Specifically, when the operation type is an import operation, generate first synchronization information that imports the data to be updated into the page to be synchronized; when the operation type is a delete operation, generate second synchronization information that deletes the data to be deleted from the page to be synchronized; When the type is a selection operation, third synchronization information for selecting the data to be selected in the page to be synchronized is generated.
S104,将同步信息发送至待同步页面。S104, sending the synchronization information to the page to be synchronized.
待同步页面在接收到同步信息之后,可以根据同步信息更新待更新数据标识对应的数据。After receiving the synchronization information, the page to be synchronized may update the data corresponding to the data identifier to be updated according to the synchronization information.
待同步页面进行数据更新,以同步信息为根据,同步信息的生成以操作类型为根据。下面根据操作类型的不同分别对同步信息的生成以及发送进行介绍。The data update of the page to be synchronized is based on the synchronization information, and the generation of the synchronization information is based on the operation type. The generation and sending of synchronization information are introduced respectively below according to different operation types.
一种实施方式中,当操作类型为导入操作时,即表示用户在目标页面进行了数据的导入操作。对于服务器来说,在获取待同步页面对应的目标数据标识列表后,判断该目标数据标识列表中是否存储有待更新数据标识。In one embodiment, when the operation type is an import operation, it means that the user has performed a data import operation on the target page. For the server, after acquiring the target data identifier list corresponding to the page to be synchronized, it is judged whether the target data identifier list stores a data identifier to be updated.
如果该目标数据标识列表中已存储有待更新数据标识,则服务器不对该目标数据标识列表对应的待同步页面进行数据同步;如果该目标数据标识列表中未存储有待更新数据标识,则从预设的数据库中,服务器可以获取待更新数据标识对应的数据,并作为待更新数据。If the data identifier to be updated has been stored in the target data identifier list, the server will not perform data synchronization on the page to be synchronized corresponding to the target data identifier list; In the database, the server can acquire the data corresponding to the data identifier to be updated and use it as the data to be updated.
其中,预设的数据库用于存储各种数据,以及数据与数据标识的对应关系。在该数据库中可以获取数据标识对应的数据。Wherein, the preset database is used to store various data and the corresponding relationship between data and data identifiers. The data corresponding to the data identifier can be acquired in the database.
在获取待更新数据之后,服务器可以生成包含该待更新数据的第一同步信息,并将包含待更新数据的第一同步信息发送至待同步页面。其中,该第一同步信息用于将待更新数据导入待同步页面。After acquiring the data to be updated, the server may generate first synchronization information including the data to be updated, and send the first synchronization information including the data to be updated to the page to be synchronized. Wherein, the first synchronization information is used to import the data to be updated into the page to be synchronized.
此时,对于待同步页面来说,在接收到第一同步信息后,从第一同步信息中获取待更新数据,并将待更新数据导入自身的页面中,以实现与目标页面的同步。At this time, for the page to be synchronized, after receiving the first synchronization information, the data to be updated is obtained from the first synchronization information, and the data to be updated is imported into its own page, so as to realize synchronization with the target page.
例如,待同步页面为关系网络页面,当操作类型为导入操作时,待更新数据标识为A,在目标数据标识列表中未存储A,则服务器可以从数据库中获取A对应的数据A,生成包含数据A的第一同步信息,并将包含数据A的第一同步信息发送至关系网络页面。关系网络页面接收到包含数据A的第一同步信息后,将数据A导入到关系网络页面中。For example, if the page to be synchronized is a relational network page, when the operation type is an import operation, the data to be updated is identified as A, and A is not stored in the target data identification list, the server can obtain the data A corresponding to A from the database, and generate The first synchronization information of data A, and send the first synchronization information including data A to the relationship network page. After receiving the first synchronization information containing data A, the relationship network page imports data A into the relationship network page.
一种实施方式中,当操作类型为删除操作时,即表示用户在目标页面进行了数据的删除操作。对于服务器来说,判断目标数据标识列表中是否存储有待更新数据标识。In one embodiment, when the operation type is a delete operation, it means that the user has performed a data delete operation on the target page. For the server, it is determined whether the data identifier to be updated is stored in the target data identifier list.
如果未存储,则服务器不对该目标数据标识列表对应的待同步页面进行数据同步;如果已存储,则服务器生成针对待删除数据的第二同步信息,并将该第二同步信息发送至待同步页面。其中,待删除数据为待更新数据标识对应的数据,第二同步信息用于将待删除数据从待同步页面中删除。If not stored, the server does not perform data synchronization on the page to be synchronized corresponding to the target data identification list; if stored, the server generates second synchronization information for the data to be deleted, and sends the second synchronization information to the page to be synchronized . Wherein, the data to be deleted is the data corresponding to the data identifier to be updated, and the second synchronization information is used to delete the data to be deleted from the page to be synchronized.
此时,对于待同步页面来说,在接收到第二同步信息后,根据第二同步信息,将自身页面中的待删除数据删除,以实现与目标页面的同步。At this time, for the page to be synchronized, after receiving the second synchronization information, the data to be deleted in its own page is deleted according to the second synchronization information, so as to realize synchronization with the target page.
一种实施方式中,当操作类型为选择操作时,即表示用户在目标页面进行了数据的选择操作。对于服务器来说,判断目标数据标识列表中是否存储有待更新数据标识。In one embodiment, when the operation type is a selection operation, it means that the user has performed a data selection operation on the target page. For the server, it is determined whether the data identifier to be updated is stored in the target data identifier list.
如果有存储,则生成针对待选择数据的第三同步信息,并将该第三同步信息发送至待同步页面。其中,待选择数据为待更新数据标识对应的数据,第三同步信息用于在待同步页面中选择待选择数据。此时,对于待同步页面来说,在接收到第三同步信息后,根据第三同步信息,选择自身页面中的待选择数据,以实现与目标页面的同步。If there is storage, generate third synchronization information for the data to be selected, and send the third synchronization information to the page to be synchronized. Wherein, the data to be selected is the data corresponding to the data identifier to be updated, and the third synchronization information is used to select the data to be selected in the page to be synchronized. At this time, for the page to be synchronized, after receiving the third synchronization information, the data to be selected in its own page is selected according to the third synchronization information, so as to realize synchronization with the target page.
如果未存储,则服务器首先获取待更新数据标识对应的数据,该数据即为待选择数据。其中,获取待选择数据可以从服务器预设的数据库中获取。服务器在获取待选择数据之后,生成包含待同步数据的第三同步信息,并将包含待同步数据的第三同步信息发送至待同步页面。If not stored, the server first obtains the data corresponding to the data identifier to be updated, which is the data to be selected. Wherein, obtaining the data to be selected may be obtained from a database preset by the server. After acquiring the data to be selected, the server generates third synchronization information including the data to be synchronized, and sends the third synchronization information including the data to be synchronized to the page to be synchronized.
此时,对于待同步页面来说,在接收到包含待同步数据的第三同步信息后,从第三同步信息中获取待同步数据,将待选择数据导入自身的页面中,并选择自身页面中的待选择数据,以实现与目标页面的同步。At this time, for the page to be synchronized, after receiving the third synchronization information containing the data to be synchronized, the data to be synchronized is obtained from the third synchronization information, the data to be selected is imported into its own page, and the selected page is selected. The data to be selected to achieve synchronization with the target page.
为了可以实时地了解每一功能页面的状态,服务器可以对各功能页面进行监听。一种实施方式中,用户已登录的页面包括功能页面和检索页面。其中,功能页面均与服务器相连接,并可以进行双向通信。对于每一功能页面来说,可以设定按照预设时间间隔向服务器发送心跳包,心跳包中包括功能页面自身的状态信息。其中,预设时间间隔可以是自定义设定的,例如,可以设定每隔半秒向服务器发送一个心跳包。发送心跳包的功能页面的页面状态为开启状态。In order to know the status of each functional page in real time, the server can monitor each functional page. In one embodiment, the pages logged in by the user include a function page and a search page. Among them, the functional pages are all connected to the server, and can carry out two-way communication. For each functional page, it can be set to send a heartbeat packet to the server at a preset time interval, and the heartbeat packet includes status information of the functional page itself. Wherein, the preset time interval may be custom-set, for example, it may be set to send a heartbeat packet to the server every half second. The page status of the function page for sending heartbeat packets is enabled.
对于服务器来说,可以接收功能页面发送的心跳包,该功能页面为与服务器相连接的任一功能页面。服务器可以每隔预设时间间隔接收功能页面发送的心跳包。根据所接收到的心跳包,可以确定该功能页面的页面状态,其中,可以包括至少以下两种实现方式:For the server, the heartbeat packet sent by the function page can be received, and the function page is any function page connected to the server. The server may receive heartbeat packets sent by the function page at preset time intervals. According to the received heartbeat packet, the page status of the function page can be determined, which can include at least the following two implementation methods:
第一种实现方式,若预设时长内接收到下一个心跳包,则确定功能页面的页面状态为开启状态。In the first implementation manner, if the next heartbeat packet is received within a preset time period, it is determined that the page status of the function page is an open state.
其中,预设时长为自定义设定的,预设时长的实现可以由定时器控制。当服务器接收到功能页面发送的心跳包时定时器开始计时,当在预设时长内接收到功能页面发送的下一个心跳包时,则可以确定该功能页面的页面状态为开启状态。Wherein, the preset duration is set by self-definition, and the realization of the preset duration can be controlled by a timer. When the server receives the heartbeat packet sent by the function page, the timer starts counting, and when the next heartbeat packet sent by the function page is received within the preset time period, it can be determined that the page status of the function page is open.
若预设时长内未接收到下一个心跳包,则中断与功能页面的连接,并确定功能页面的页面状态为关闭状态。其中,当服务器与功能页面的连接为WebSocket连接时,服务器中断连接的方式可以是服务器删除与功能页面的WebSocket连接。If the next heartbeat packet is not received within the preset time period, the connection with the function page is interrupted, and the page status of the function page is determined to be closed. Wherein, when the connection between the server and the function page is a WebSocket connection, the way for the server to terminate the connection may be that the server deletes the WebSocket connection with the function page.
第二种实现方式,心跳包可以包括用户信息,该用户信息对应的用户即为登录功能页面的用户。In the second implementation manner, the heartbeat packet may include user information, and the user corresponding to the user information is the user who logs in to the function page.
当服务器接收到功能页面发送的心跳包后,可以从心跳包获取用户信息。根据该用户信息,服务器与功能页面建立连接。其中,所建立的连接与用户信息是相对应的。After the server receives the heartbeat packet sent by the function page, it can obtain user information from the heartbeat packet. According to the user information, the server establishes a connection with the function page. Wherein, the established connection corresponds to the user information.
在服务器与功能页面建立连接之后,确定功能页面的页面状态为开启状态,可以包括以下两种情况:若该功能页面第一次发送心跳包,该功能页面当前的页面状态为关闭状态,则将该功能页面的页面状态确定为开启状态;若该功能页面当前的页面状态已经为开启状态,则保持该功能页面的页面状态不变,仍为开启状态。After the server establishes a connection with the function page, it is determined that the page status of the function page is open, which may include the following two situations: if the function page sends a heartbeat packet for the first time, and the current page status of the function page is closed, the The page state of the function page is determined to be in the open state; if the current page state of the function page is already in the open state, then keep the page state of the function page unchanged and remain in the open state.
本发明实施例提供的技术方案中,服务器接收目标页面发送的更新信息,从用户登录的多个页面中,确定待同步页面;生成针对待更新数据标识对应的数据的同步信息,并将同步信息发送至待同步页面,待同步页面根据同步信息更新待更新数据标识对应的数据。这样,由服务器确定待同步页面,待同步页面根据服务器的同步信息进行更新,不仅实现了多页面之间数据同步,而且解决了手动操作进行更新的问题,提高了数据同步的效率。In the technical solution provided by the embodiment of the present invention, the server receives the update information sent by the target page, determines the page to be synchronized from the multiple pages logged in by the user; generates synchronization information for the data corresponding to the data identifier to be updated, and converts the synchronization information Send to the page to be synchronized, and the page to be synchronized updates the data corresponding to the data identifier to be updated according to the synchronization information. In this way, the server determines the page to be synchronized, and the page to be synchronized is updated according to the synchronization information of the server, which not only realizes data synchronization between multiple pages, but also solves the problem of updating by manual operation, and improves the efficiency of data synchronization.
相应于上述数据同步方法实施例,本发明实施例还提供一种数据同步装置,如图2所示的数据同步装置,应用于服务器,该数据同步装置包括:Corresponding to the above-mentioned embodiment of the data synchronization method, the embodiment of the present invention also provides a data synchronization device, such as the data synchronization device shown in Figure 2, which is applied to the server, and the data synchronization device includes:
第一接收模块210,用于接收目标页面发送的更新信息,其中,更新信息包括登录目标页面的用户的用户信息和待更新数据标识;The first receiving module 210 is configured to receive update information sent by the target page, wherein the update information includes user information of a user who logs into the target page and a data identifier to be updated;
第一确定模块220,用于从用户登录的多个页面中,确定待同步页面;The first determining module 220 is configured to determine the page to be synchronized from the multiple pages logged in by the user;
生成模块230,用于生成针对待更新数据标识对应的数据的同步信息;A generation module 230, configured to generate synchronization information for data corresponding to the data identifier to be updated;
第一发送模块240,用于将同步信息发送至待同步页面,以使得待同步页面根据同步信息更新待更新数据标识对应的数据。The first sending module 240 is configured to send the synchronization information to the page to be synchronized, so that the page to be synchronized updates the data corresponding to the data identifier to be updated according to the synchronization information.
可选地,一种实施方式中,第一确定模块220具体用于:Optionally, in an implementation manner, the first determination module 220 is specifically configured to:
若目标页面为检索页面,从用户登录的功能页面中,确定待同步页面;If the target page is a retrieval page, determine the page to be synchronized from the function page logged in by the user;
若目标页面为功能页面,从用户登录的除目标页面以外的其他功能页面中,确定待同步页面。If the target page is a functional page, determine the page to be synchronized from other functional pages logged in by the user except the target page.
可选地,一种实施方式中,更新信息还包括操作类型;生成模块230包括:Optionally, in an implementation manner, the update information also includes an operation type; the generating module 230 includes:
获取子模块,用于根据预设的页面与数据标识列表的对应关系,获取待同步页面对应的目标数据标识列表,其中,数据标识列表用于记录所对应的页面包括的各数据的标识;The obtaining sub-module is used to obtain the target data identification list corresponding to the page to be synchronized according to the preset correspondence relationship between the page and the data identification list, wherein the data identification list is used to record the identification of each data included in the corresponding page;
生成子模块,用于根据操作类型,以及目标数据标识列表中是否存储有待更新数据标识,生成针对待更新数据标识对应的数据的同步信息。The generation sub-module is used to generate synchronization information for the data corresponding to the data identifier to be updated according to the operation type and whether the data identifier to be updated is stored in the target data identifier list.
可选地,一种实施方式中,操作类型为导入操作;生成子模块具体用于:Optionally, in an implementation manner, the operation type is an import operation; generating a submodule is specifically used for:
判断目标数据标识列表中是否存储有待更新数据标识;Judging whether the data identifier to be updated is stored in the target data identifier list;
如果否,从预设的数据库中,获取待更新数据标识对应的待更新数据,数据库中存储数据标识与数据的对应关系;If not, from the preset database, the data to be updated corresponding to the data identifier to be updated is obtained, and the corresponding relationship between the data identifier and the data is stored in the database;
生成包含待更新数据的第一同步信息,第一同步信息用于将待更新数据导入待同步页面。First synchronization information including the data to be updated is generated, and the first synchronization information is used to import the data to be updated into the page to be synchronized.
可选地,一种实施方式中,操作类型为删除操作;生成子模块具体用于:Optionally, in an implementation manner, the operation type is a delete operation; the generating submodule is specifically used for:
判断目标数据标识列表中是否存储有待更新数据标识;Judging whether the data identifier to be updated is stored in the target data identifier list;
如果是,生成针对待删除数据的第二同步信息,待删除数据为待更新数据标识对应的数据,第二同步信息用于将待删除数据从待同步页面中删除。If so, generate second synchronization information for the data to be deleted, the data to be deleted is data corresponding to the data identifier to be updated, and the second synchronization information is used to delete the data to be deleted from the page to be synchronized.
可选地,一种实施方式中,操作类型为选择操作;生成子模块具体用于:Optionally, in an implementation manner, the operation type is a selection operation; the generating submodule is specifically used for:
判断目标数据标识列表中是否存储有待更新数据标识;Judging whether the data identifier to be updated is stored in the target data identifier list;
如果是,生成针对待选择数据的第三同步信息,待选择数据为待更新数据标识对应的数据,第三同步信息用于在待同步页面中选择待选择数据;If so, generate the third synchronization information for the data to be selected, the data to be selected is the data corresponding to the data identification to be updated, and the third synchronization information is used to select the data to be selected in the page to be synchronized;
如果否,获取待选择数据,并生成包含待同步数据的第三同步信息。If not, acquire the data to be selected, and generate third synchronization information including the data to be synchronized.
可选地,一种实施方式中,用户已登录的页面包括:功能页面和检索页面;装置还包括:Optionally, in one embodiment, the pages logged in by the user include: a function page and a search page; the device further includes:
第二接收模块,用于接收功能页面发送的心跳包;The second receiving module is used to receive the heartbeat packet sent by the function page;
第二确定模块,用于根据所接收到的心跳包,确定功能页面的页面状态;The second determination module is used to determine the page status of the function page according to the received heartbeat packet;
第二发送模块,用于将包含页面状态的信息发送至检索页面,以使得检索页面对功能页面的页面状态进行更新。The second sending module is configured to send the information including the page status to the retrieval page, so that the retrieval page updates the page status of the function page.
可选地,一种实施方式中,第二确定模块具体用于:Optionally, in an implementation manner, the second determining module is specifically configured to:
若预设时长内接收到下一个心跳包,则确定功能页面的页面状态为开启状态;If the next heartbeat packet is received within the preset time period, the page status of the function page is determined to be open;
若预设时长内未接收到下一个心跳包,则中断与功能页面的连接,并确定功能页面的页面状态为关闭状态。If the next heartbeat packet is not received within the preset time period, the connection with the function page is interrupted, and the page status of the function page is determined to be closed.
可选地,一种实施方式中,心跳包包括用户信息;第二确定模块具体用于:Optionally, in an implementation manner, the heartbeat packet includes user information; the second determining module is specifically used for:
根据心跳包包括的用户信息,与功能页面建立连接;According to the user information included in the heartbeat package, establish a connection with the function page;
确定功能页面的页面状态为开启状态。Make sure the page status of the function page is enabled.
本发明实施例提供的技术方案中,服务器接收目标页面发送的更新信息,从用户登录的多个页面中,确定待同步页面;生成针对待更新数据标识对应的数据的同步信息,并将同步信息发送至待同步页面,待同步页面根据同步信息更新待更新数据标识对应的数据。这样,由服务器确定待同步页面,待同步页面根据服务器的同步信息进行更新,不仅实现了多页面之间数据同步,而且解决了手动操作进行更新的问题,提高了数据同步的效率。In the technical solution provided by the embodiment of the present invention, the server receives the update information sent by the target page, determines the page to be synchronized from the multiple pages logged in by the user; generates synchronization information for the data corresponding to the data identifier to be updated, and converts the synchronization information Send to the page to be synchronized, and the page to be synchronized updates the data corresponding to the data identifier to be updated according to the synchronization information. In this way, the server determines the page to be synchronized, and the page to be synchronized is updated according to the synchronization information of the server, which not only realizes data synchronization between multiple pages, but also solves the problem of updating by manual operation, and improves the efficiency of data synchronization.
相应于上述数据同步方法实施例,本发明实施例还提供一种数据同步系统,如图3所示的数据同步系统300,包括服务器310和至少两个页面;Corresponding to the above-mentioned embodiment of the data synchronization method, the embodiment of the present invention also provides a data synchronization system, such as the data synchronization system 300 shown in FIG. 3 , including a server 310 and at least two pages;
至少两个页面中的目标页面,用于获取用户输入的更新信息,并将更新信息发送至服务器,更新信息包括用户的用户信息和待更新数据标识。The target page among the at least two pages is used to acquire the update information input by the user and send the update information to the server, the update information includes the user information of the user and the identification of the data to be updated.
其中,目标页面可以是检索页面,还可以是功能页面。Wherein, the target page may be a search page or a function page.
服务器310,用于接收目标页面发送的更新信息,从用户登录的多个页面中,确定待同步页面,生成针对待更新数据标识对应的数据的同步信息,将同步信息发送至待同步页面。The server 310 is configured to receive the update information sent by the target page, determine the page to be synchronized from the multiple pages logged in by the user, generate synchronization information for the data corresponding to the data identifier to be updated, and send the synchronization information to the page to be synchronized.
待同步页面,用于接收服务器310发送的同步信息,并根据同步信息更新待更新数据标识对应的数据。The page to be synchronized is used to receive the synchronization information sent by the server 310, and update the data corresponding to the data identifier to be updated according to the synchronization information.
一种实施方式中,至少两个页面包括检索页面和功能页面,当目标页面为检索页面时,目标页面还用于获取用户输入的指定功能页面的信息,其中,指定功能页面的信息可以是指定功能页面的标识、网址等信息,指定功能页面是由用户自定义指定的待同步的功能页面。In one embodiment, at least two pages include a search page and a function page. When the target page is a search page, the target page is also used to obtain information on a specified function page input by the user, wherein the information on the specified function page can be a specified Information such as the logo and URL of the function page, and the specified function page is a function page to be synchronized that is customized and designated by the user.
检索页面中存储有各功能页面的页面状态,其中,登录该检索页面的用户与登录该各功能页面的用户为同一用户。根据所存储的页面状态,检索页面可以检测指定功能页面的页面状态是否为开启状态,如果不是开启状态,检索页面可以根据用户信息,创建并开启指定功能页面。The page state of each function page is stored in the search page, wherein the user who logs in the search page is the same user who logs in the function pages. According to the stored page state, the retrieval page can detect whether the page state of the specified function page is in the open state, if not, the retrieval page can create and open the specified function page according to the user information.
其中,指定功能页面的创建可以通过在浏览器的地址栏中手动输入地址,还可以是检索页面将待更新数据标识导入到指定功能页面的方式创建。指定功能页面在被创建后,服务器310可以从该指定功能页面中获取用户信息,基于所获取的用户信息指定功能页面与服务器310建立连接,即对于服务器310来说,该用户信息对应的用户为登录该指定功能页面的用户。服务器310连接成功后,将该用户的同步数据通过该连接发送给指定功能页面,指定功能页面在接收到同步数据之后进行相应的导入和同步处理。此时,指定功能页面处于开启状态。Wherein, the page with the specified function can be created by manually inputting the address in the address bar of the browser, or it can also be created by importing the identifier of the data to be updated into the page with the specified function by retrieving the page. After the designated function page is created, the server 310 can obtain user information from the designated function page, and establish a connection with the server 310 based on the obtained user information designated function page, that is, for the server 310, the user corresponding to the user information is The user who logs in to the specified function page. After the server 310 is successfully connected, the user's synchronization data is sent to the specified function page through the connection, and the specified function page performs corresponding import and synchronization processing after receiving the synchronization data. At this point, the specified function page is open.
指定功能页面在成功开启之后,该指定功能页面按照预设时间间隔向服务器310发送心跳包,以使得服务器310实时了解该指定功能页面的页面状态。如果指定功能页面被手动关闭或者异常终止时,服务器310会通知检索页面该指定功能页面的页面状态已处于关闭状态,检索页面及时地对所存储的指定功能页面的页面状态进行更新。After the specified function page is successfully opened, the specified function page sends a heartbeat packet to the server 310 at a preset time interval, so that the server 310 can know the page status of the specified function page in real time. If the specified function page is manually closed or terminated abnormally, the server 310 will notify the retrieval page that the page status of the specified function page is closed, and the retrieval page will update the stored page status of the specified function page in time.
本发明实施例提供的技术方案中,服务器接收目标页面发送的更新信息,从用户登录的多个页面中,确定待同步页面;生成针对待更新数据标识对应的数据的同步信息,并将同步信息发送至待同步页面,待同步页面根据同步信息更新待更新数据标识对应的数据。这样,由服务器确定待同步页面,待同步页面根据服务器的同步信息进行更新,不仅实现了多页面之间数据同步,而且解决了手动操作进行更新的问题,提高了数据同步的效率。In the technical solution provided by the embodiment of the present invention, the server receives the update information sent by the target page, determines the page to be synchronized from the multiple pages logged in by the user; generates synchronization information for the data corresponding to the data identifier to be updated, and converts the synchronization information Send to the page to be synchronized, and the page to be synchronized updates the data corresponding to the data identifier to be updated according to the synchronization information. In this way, the server determines the page to be synchronized, and the page to be synchronized is updated according to the synchronization information of the server, which not only realizes data synchronization between multiple pages, but also solves the problem of updating by manual operation, and improves the efficiency of data synchronization.
本发明实施例还提供了一种服务器,如图4所示,包括处理器410、通信接口420、存储器430和通信总线440,其中,处理器410,通信接口420,存储器430通过通信总线440完成相互间的通信;The embodiment of the present invention also provides a server, as shown in FIG. mutual communication;
存储器430,用于存放计算机程序;Memory 430, used to store computer programs;
处理器410,用于执行存储器430上所存放的程序时,实现如下步骤:When the processor 410 is used to execute the program stored on the memory 430, the following steps are implemented:
接收目标页面发送的更新信息,其中,更新信息包括登录目标页面的用户的用户信息和待更新数据标识;receiving the update information sent by the target page, wherein the update information includes the user information of the user who logs into the target page and the data identifier to be updated;
从用户登录的多个页面中,确定待同步页面;From the multiple pages logged in by the user, determine the page to be synchronized;
生成针对待更新数据标识对应的数据的同步信息;Generate synchronization information for the data corresponding to the data identifier to be updated;
将同步信息发送至待同步页面,以使得待同步页面根据同步信息更新待更新数据标识对应的数据。The synchronization information is sent to the page to be synchronized, so that the page to be synchronized updates the data corresponding to the data identifier to be updated according to the synchronization information.
本发明实施例提供的技术方案中,服务器接收目标页面发送的更新信息,从用户登录的多个页面中,确定待同步页面;生成针对待更新数据标识对应的数据的同步信息,并将同步信息发送至待同步页面,待同步页面根据同步信息更新待更新数据标识对应的数据。这样,由服务器确定待同步页面,待同步页面根据服务器的同步信息进行更新,不仅实现了多页面之间数据同步,而且解决了手动操作进行更新的问题,提高了数据同步的效率。In the technical solution provided by the embodiment of the present invention, the server receives the update information sent by the target page, determines the page to be synchronized from the multiple pages logged in by the user; generates synchronization information for the data corresponding to the data identifier to be updated, and converts the synchronization information Send to the page to be synchronized, and the page to be synchronized updates the data corresponding to the data identifier to be updated according to the synchronization information. In this way, the server determines the page to be synchronized, and the page to be synchronized is updated according to the synchronization information of the server, which not only realizes data synchronization between multiple pages, but also solves the problem of updating by manual operation, and improves the efficiency of data synchronization.
当然,本发明实施例提供的一种服务器还可以执行上述实施例中任一所述的一种数据同步方法。具体见图1以及图1所对应的实施例,这里不再赘述。Certainly, a server provided in an embodiment of the present invention may also execute a data synchronization method described in any one of the above embodiments. See FIG. 1 and the embodiment corresponding to FIG. 1 for details, and details are not repeated here.
在本发明提供的又一实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述图1以及图1所对应的实施例中任一所述的一种数据同步方法。In yet another embodiment provided by the present invention, a computer-readable storage medium is also provided, and instructions are stored in the computer-readable storage medium. When the computer-readable storage medium is run on a computer, it causes the computer to execute the above-mentioned Figure 1 and Figure 1. A data synchronization method described in any one of the corresponding embodiments.
上述服务器提到的通信总线可以是外设部件互连标准(Peripheral ComponentInterconnect,PCI)总线或扩展工业标准结构(Extended Industry StandardArchitecture,EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus mentioned in the above server may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (Extended Industry Standard Architecture, EISA) bus or the like. The communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
通信接口用于上述服务器与其他设备之间的通信。The communication interface is used for communication between the above server and other devices.
存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory may include a random access memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located far away from the aforementioned processor.
上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital SignalProcessing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。Above-mentioned processor can be general-purpose processor, comprises central processing unit (Central Processing Unit, CPU), network processor (Network Processor, NP) etc.; Can also be Digital Signal Processor (Digital Signal Processing, DSP), ASIC (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a relationship between these entities or operations. any such actual relationship or order exists between them. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于数据同步装置、数据同步系统、服务器以及机器可读存储介质的实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a related manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the embodiments of the data synchronization device, data synchronization system, server, and machine-readable storage medium, since they are basically similar to the method embodiments, the description is relatively simple. Can.
以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present invention are included in the protection scope of the present invention.
Claims (22)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810541503.8A CN110557412A (en) | 2018-05-30 | 2018-05-30 | A data synchronization method and device |
| PCT/CN2019/079739 WO2019228034A1 (en) | 2018-05-30 | 2019-03-26 | Method and apparatus for data synchronization |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810541503.8A CN110557412A (en) | 2018-05-30 | 2018-05-30 | A data synchronization method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN110557412A true CN110557412A (en) | 2019-12-10 |
Family
ID=68697803
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810541503.8A Pending CN110557412A (en) | 2018-05-30 | 2018-05-30 | A data synchronization method and device |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN110557412A (en) |
| WO (1) | WO2019228034A1 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115914252A (en) * | 2021-08-02 | 2023-04-04 | 深圳市帝迈生物技术有限公司 | Multi-client synchronization method, system, and medium |
Families Citing this family (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113127239B (en) * | 2019-12-31 | 2024-10-25 | 深圳云天励飞技术有限公司 | Page state monitoring method, device, terminal and storage medium |
| CN111459612A (en) * | 2020-03-27 | 2020-07-28 | 新浪网技术(中国)有限公司 | Updating method and device for Pod in Kubernetes system |
| CN111488151B (en) * | 2020-04-17 | 2023-09-26 | 上海数禾信息科技有限公司 | Page interaction method and device among Android modules |
| CN113704212B (en) * | 2020-05-22 | 2024-08-16 | 深信服科技股份有限公司 | Data synchronization method, device and equipment of server and computer storage medium |
| CN111782728B (en) * | 2020-06-30 | 2024-02-02 | 北京金山云网络技术有限公司 | Data synchronization method, device, electronic equipment and medium |
| CN112328616B (en) * | 2020-11-17 | 2025-10-21 | 腾讯科技(深圳)有限公司 | Data updating method, device and storage medium |
| CN114661731B (en) * | 2020-12-22 | 2024-08-13 | 中核核电运行管理有限公司 | Method for automatically updating nuclear power plant functional equipment group data |
| CN112565455B (en) * | 2020-12-23 | 2023-01-20 | 深圳市安数科技有限责任公司 | Multi-event synchronous processing method, computer equipment and storage medium |
| CN112817830B (en) * | 2021-03-01 | 2024-05-07 | 北京车和家信息技术有限公司 | Method and device for displaying setting items, medium, equipment, display system and vehicle |
| CN113949894B (en) * | 2021-10-18 | 2023-06-20 | 上海哔哩哔哩科技有限公司 | Live broadcast related duration recording method and device |
| CN114048221A (en) * | 2021-11-22 | 2022-02-15 | 友谊时光科技股份有限公司 | Data operation method and device, computer equipment and storage medium |
| CN114281434B (en) * | 2021-12-15 | 2022-11-29 | 创优数字科技(广东)有限公司 | Applet user information management method, apparatus, computer device and storage medium |
| CN115729592B (en) * | 2022-11-21 | 2024-06-04 | 上海秉匠信息科技有限公司 | Page updating method and device, electronic equipment and medium |
| CN116628001A (en) * | 2023-05-26 | 2023-08-22 | 苏州浪潮智能科技有限公司 | A method, device and medium for loading page data |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020152239A1 (en) * | 2001-04-16 | 2002-10-17 | David Bautista-Lloyd | Method, system, and program for providing data updates to a page including multiple regions of dynamic content |
| CN102185875A (en) * | 2011-01-30 | 2011-09-14 | 北京开心人信息技术有限公司 | Synchronous information updating method and system |
| CN102270133A (en) * | 2011-07-18 | 2011-12-07 | 百度在线网络技术(北京)有限公司 | Method and equipment for showing status of page window |
| CN102334366A (en) * | 2011-08-12 | 2012-01-25 | 华为终端有限公司 | Data synchronism method, server, mobile terminal and data synchronism system |
| CN102882762A (en) * | 2011-07-11 | 2013-01-16 | 腾讯科技(深圳)有限公司 | Method and system for synchronizing chat status information in multiple pages |
| CN105027120A (en) * | 2014-02-24 | 2015-11-04 | 华为技术有限公司 | Multi-page management method and device |
| CN105099686A (en) * | 2014-05-13 | 2015-11-25 | 腾讯科技(深圳)有限公司 | Data synchronization method, server, terminal and system |
| CN105808702A (en) * | 2016-03-04 | 2016-07-27 | 华自科技股份有限公司 | Page content refreshing method and system, and page content synchronous refreshing management system |
| CN106161629A (en) * | 2016-07-13 | 2016-11-23 | 广州新博庭网络信息科技股份有限公司 | The method of a kind of business object synchronization, client and server |
| US20170352056A1 (en) * | 2013-06-20 | 2017-12-07 | Oath (Americas) Inc. | Systems and methods for cross-browser advertising id synchronization |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100429059B1 (en) * | 2001-05-24 | 2004-04-28 | 주식회사 비즈모델라인 | System and Method for syncronizing web browser of multi-users by using the direct data communication(P2P) between clients |
| FR2858080A1 (en) * | 2003-07-23 | 2005-01-28 | France Telecom | METHOD FOR SYNCHRONIZED POINTING OF AN OBJECT OF THE CONTENT OF A WEB PAGE DISPLAYED SIMULTANEOUSLY IN A PLURALITY OF USER TERMINALS CONNECTED TO A NETWORK OF THE INTERNET TYPE |
| JP2005149387A (en) * | 2003-11-19 | 2005-06-09 | Nec Corp | Real time web sharing system |
| CN104104575B (en) * | 2013-04-03 | 2019-01-29 | 腾讯科技(深圳)有限公司 | A kind of means of communication and system of instant communication group |
| CN103218461A (en) * | 2013-05-14 | 2013-07-24 | 百度在线网络技术(北京)有限公司 | Classified management method, system, terminal and cloud server for browse pages |
| US20160085661A1 (en) * | 2014-09-18 | 2016-03-24 | Antoine Clement | Multi-Browser Testing For Web Applications |
-
2018
- 2018-05-30 CN CN201810541503.8A patent/CN110557412A/en active Pending
-
2019
- 2019-03-26 WO PCT/CN2019/079739 patent/WO2019228034A1/en not_active Ceased
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020152239A1 (en) * | 2001-04-16 | 2002-10-17 | David Bautista-Lloyd | Method, system, and program for providing data updates to a page including multiple regions of dynamic content |
| CN102185875A (en) * | 2011-01-30 | 2011-09-14 | 北京开心人信息技术有限公司 | Synchronous information updating method and system |
| CN102882762A (en) * | 2011-07-11 | 2013-01-16 | 腾讯科技(深圳)有限公司 | Method and system for synchronizing chat status information in multiple pages |
| CN102270133A (en) * | 2011-07-18 | 2011-12-07 | 百度在线网络技术(北京)有限公司 | Method and equipment for showing status of page window |
| CN102334366A (en) * | 2011-08-12 | 2012-01-25 | 华为终端有限公司 | Data synchronism method, server, mobile terminal and data synchronism system |
| US20170352056A1 (en) * | 2013-06-20 | 2017-12-07 | Oath (Americas) Inc. | Systems and methods for cross-browser advertising id synchronization |
| CN105027120A (en) * | 2014-02-24 | 2015-11-04 | 华为技术有限公司 | Multi-page management method and device |
| CN105099686A (en) * | 2014-05-13 | 2015-11-25 | 腾讯科技(深圳)有限公司 | Data synchronization method, server, terminal and system |
| CN105808702A (en) * | 2016-03-04 | 2016-07-27 | 华自科技股份有限公司 | Page content refreshing method and system, and page content synchronous refreshing management system |
| CN106161629A (en) * | 2016-07-13 | 2016-11-23 | 广州新博庭网络信息科技股份有限公司 | The method of a kind of business object synchronization, client and server |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115914252A (en) * | 2021-08-02 | 2023-04-04 | 深圳市帝迈生物技术有限公司 | Multi-client synchronization method, system, and medium |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2019228034A1 (en) | 2019-12-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110557412A (en) | A data synchronization method and device | |
| CN104579934B (en) | A kind of information processing method and client | |
| US10623551B2 (en) | Method and apparatus for processing contact information using a wireless terminal | |
| US10095378B2 (en) | Web browser toolbar | |
| TW201737681A (en) | Instant messaging implementation method and device | |
| US20220342518A1 (en) | Card-based information management method and system | |
| US20170264707A1 (en) | Uploading a form attachment | |
| US20150373089A1 (en) | Cross-device notifications | |
| US20070198633A1 (en) | System and method for delivery of PC content through a server based relay system using really simple syndication | |
| CN109032663A (en) | Generation method, device, computer equipment and the storage medium of interface document | |
| WO2013029536A1 (en) | Method for providing search aiming at instant communication tool and system thereof | |
| CN110457610B (en) | Information recommendation method, device, terminal, server and storage medium | |
| CN107423070A (en) | A kind of page generation method and device | |
| US9876776B2 (en) | Methods for generating and publishing a web site based on selected items and devices thereof | |
| CN106325889A (en) | Data processing method and device | |
| CN105119783A (en) | Network request data detection method and device | |
| CN106713506A (en) | Data acquisition method and data acquisition system | |
| US20240020305A1 (en) | Systems and methods for automatic archiving, sorting, and/or indexing of secondary message content | |
| CN105530149B (en) | A method and device for providing a solution for controlling household appliances | |
| CN104468774A (en) | Data presentation method applied to could disk client side and could disk client side | |
| CN103955459A (en) | Method and device for loading webpage and browser | |
| WO2015096597A1 (en) | Method and device for browsing document by multiple devices | |
| EP2990947A1 (en) | Method and apparatus for backing up data and electronic device | |
| CN112788090B (en) | A network resource transmission method, device and system | |
| CN115361376B (en) | Government file uploading method and device, electronic equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191210 |
|
| RJ01 | Rejection of invention patent application after publication |