A document online collaborative editing method, client and server

By saving the modified difference point data of online collaborative editing documents on the client, the problem of network consumption and low efficiency caused by frequent data transmission in traditional online collaborative editing methods is solved, and more efficient data processing is achieved.

CN111858523BActive Publication Date: 2024-09-27BEIJING DIDI INFINITY TECH & DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911329119.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-20
Publication Date
2024-09-27
Estimated Expiration
2040-09-27

AI Technical Summary

Technical Problem

The traditional online collaborative editing method results in frequent data sending and receiving, which results in large network consumption, waste of data processing time, and low efficiency.

Method used

Save the modified difference point data of the online collaborative editing document on the client. When the preset conditions are met, data transmission with the server is reduced. For example, when there is only one client connection or the server's request for modified difference point data is not received, the data is saved. in local storage.

Benefits of technology

It reduces the transmission frequency of online collaborative editing document data, reduces network consumption, avoids waste of data processing time, and improves data processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111858523B
    Figure CN111858523B
Patent Text Reader

Abstract

The present application provides a method, client and server for online collaborative editing of documents. The method comprises: when the client sends a network connection request to the server, the modified difference point data is determined according to the feedback of the server, and when the preset conditions are met between the client and the server, the modified difference point data is saved in the local storage of the client; after the server receives the network connection request sent by the client and allows the client to connect to the online collaborative editing network, the matching online collaborative editing document is sent to the client, and if the preset conditions are met between the client and the server, no data request is sent to the client. In this way, the transmission of online collaborative editing document data between the client and the server can be reduced, frequent data sending and receiving is not required, the network consumption in the online collaborative editing network of the document is reduced, the waste of data processing time is avoided, and the efficiency of data processing is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of online document data processing, and in particular to a document online collaborative editing method, a client, and a server. Background Art

[0002] Online Collaborative Editing, also known as Real-time Collaborative Editing, means that multiple users edit the same document simultaneously over the Internet. Each user can modify the document and see other users' modifications in real time. Online collaborative editing has been widely used because it allows multiple users to work together efficiently, significantly improving the speed of document editing.

[0003] The traditional online collaborative editing method is that after the user edits the document on the client, the modified data is sent to the server in real time. The server updates the document content according to the modified data and then sends the updated document to the user to keep the document updated in real time. This requires frequent data sending and receiving, as well as data reading and writing, etc., which consumes a lot of network resources and wastes data processing time and data resources. Summary of the invention

[0004] In view of this, the purpose of the present application is to provide a document online collaborative editing method, client and server, which can save the modified data of the online collaboratively edited document at the client when certain conditions are met, thereby reducing the transmission of online collaboratively edited document data between the client and the server, eliminating the need for frequent data sending and receiving, reducing network consumption in the document online collaborative editing network, avoiding wasting data processing time, and helping to improve data processing efficiency.

[0005] According to a first aspect of the present application, a document online collaborative editing method is provided, which is applied to a client, and the document online collaborative editing method includes:

[0006] Sending a network connection request carrying a document editing request to the server;

[0007] After the client is connected to the document online collaborative editing network in the server based on the network connection request, in response to the user's editing operation on the online collaborative editing document matching the document editing request fed back by the server, determining the modification difference point data for editing the online collaborative editing document;

[0008] If the preset condition is satisfied between the client and the server, the modified difference point data is stored in the local storage of the client.

[0009] In some embodiments of the present application, the following steps are performed to determine whether the client and the server meet a preset condition:

[0010] If after the client is connected to the document online collaborative editing network in the server, it is determined based on feedback information from the server that only the client is connected to the document online collaborative editing network, it is determined that a preset condition is satisfied between the client and the server.

[0011] In some embodiments of the present application, the following steps are performed to determine whether the client and the server meet a preset condition:

[0012] If the client is connected to the document online collaborative editing network in the server and receives an online collaborative editing document that matches the document editing request from the server, but does not receive a data request sent by the server to request modification of the difference point data, it is determined that a preset condition is met between the client and the server.

[0013] In some embodiments of the present application, if the preset condition is satisfied between the client and the server, after the modified difference point data is saved in the local storage of the client, the document online collaborative editing method includes:

[0014] If it is determined that the user has completed editing the online collaboratively edited document, all modified difference point data for editing the online collaboratively edited document saved at the client are sent to the server.

[0015] In some embodiments of the present application, if the preset condition is satisfied between the client and the server, after the modified difference point data is saved in the local storage of the client, the document online collaborative editing method includes:

[0016] If a document data request is received from the server, or if feedback is received from the server that a new user terminal is connected to the online collaborative editing network of the document in the server, all modification difference point data of the online collaborative editing document saved at the client are sent to the server.

[0017] According to a second aspect of the present application, a document online collaborative editing method is provided, which is applied to a server, and the document online collaborative editing method includes:

[0018] Receiving a network connection request carrying a document editing request sent by a client;

[0019] After allowing the client to connect to the document online collaborative editing network in the server based on the network connection request, sending the online collaborative editing document matching the document editing request to the client;

[0020] If the preset condition is satisfied between the client and the server, the sending of the data request for modifying the difference point data generated by editing the online collaborative editing document to the client is stopped.

[0021] In some embodiments of the present application, the following steps are performed to determine whether the client and the server meet a preset condition:

[0022] If, after the client is connected to the online collaborative document editing network in the server, the server detects that only the client is connected to the online collaborative document editing network, it is determined that a preset condition is satisfied between the client and the server.

[0023] In some embodiments of the present application, if the preset condition is satisfied between the client and the server, after stopping sending the data request for modifying the difference point data generated by editing the online collaboratively edited document to the client, the document online collaborative editing method includes:

[0024] If it is detected that a new user terminal is connected to the document online collaborative editing network in the server, a data request for modifying the difference point data generated by editing the online collaborative editing document is sent to the client terminal;

[0025] After receiving the modification difference point data, the edited online collaborative editing document is obtained based on the modification difference point data, and the edited online collaborative editing document is sent to the new user terminal and the client terminal.

[0026] In some embodiments of the present application, after receiving the modification difference point data, obtaining the edited online collaborative editing document based on the modification difference point data, and sending the edited online collaborative editing document to the new user terminal and the client terminal, the document online collaborative editing method includes:

[0027] When it is detected that the document online collaborative editing network meets the preset conditions, the received modification difference point data and the edited online collaborative editing document are stored in the local cache of the server.

[0028] In the above embodiment, it is determined that the document online collaborative editing network meets the preset condition in the following manner:

[0029] If it is detected that the client and at least one new user terminal are connected to the online collaborative editing network of the document, or if it is detected that at least two new user terminals are connected to the online collaborative editing network of the document, it is determined that the online collaborative editing network of the document meets a preset condition.

[0030] In some embodiments of the present application, after receiving the modification difference point data, obtaining the edited online collaborative editing document based on the modification difference point data, and sending the edited online collaborative editing document to the new user terminal and the client terminal, the document online collaborative editing method includes:

[0031] If it is detected that both the client and the new user are disconnected from the server and leave the document online collaborative editing network, the received modification difference point data and the edited online collaborative editing document are sent to a database connected to the server for storage.

[0032] According to a third aspect of the present application, a client is provided, the client comprising:

[0033] A request sending module, used for sending a network connection request carrying a document editing request to a server;

[0034] a data modification module, configured to determine modification difference point data for editing the online collaborative editing document in response to the editing operation of the online collaborative editing document matched with the document editing request fed back by the server by the user after the client is connected to the online collaborative editing network of the server based on the network connection request;

[0035] The data saving module is used to save the modified difference point data in the local storage of the client if the preset condition is met between the client and the server.

[0036] In some embodiments of the present application, the data storage module is used to determine that a preset condition is satisfied between the client and the server through the following steps:

[0037] If after the client is connected to the document online collaborative editing network in the server, it is determined based on feedback information from the server that only the client is connected to the document online collaborative editing network, it is determined that a preset condition is satisfied between the client and the server.

[0038] In some embodiments of the present application, the data storage module is used to determine that a preset condition is satisfied between the client and the server through the following steps:

[0039] If the client is connected to the document online collaborative editing network in the server and receives an online collaborative editing document that matches the document editing request from the server, but does not receive a data request sent by the server to request modification of the difference point data, it is determined that a preset condition is met between the client and the server.

[0040] In some embodiments of the present application, the client further includes a first data sending module, and the first data sending module is used to:

[0041] If it is determined that the user has completed editing the online collaboratively edited document, all modified difference point data for editing the online collaboratively edited document saved at the client are sent to the server.

[0042] In some embodiments of the present application, the client further includes a second data sending module, and the second data sending module is used to:

[0043] If a document data request is received from the server, or if feedback is received from the server that a new user terminal is connected to the online collaborative editing network of the document in the server, all modification difference point data of the online collaborative editing document saved at the client are sent to the server.

[0044] According to a fourth aspect of the present application, a server is provided, the server comprising:

[0045] A request receiving module, used for receiving a network connection request carrying a document editing request sent by a client;

[0046] A document sending module, configured to send an online collaborative editing document matching the document editing request to the client after allowing the client to connect to the document online collaborative editing network in the server based on the network connection request;

[0047] The request stopping module is used to stop sending a data request for modifying the difference point data generated by editing the online collaborative editing document to the client if a preset condition is satisfied between the client and the server.

[0048] In some embodiments of the present application, the request stop module is used to determine that a preset condition is satisfied between the client and the server through the following steps:

[0049] If, after the client is connected to the online collaborative document editing network in the server, the server detects that only the client is connected to the online collaborative document editing network, it is determined that a preset condition is satisfied between the client and the server.

[0050] In some embodiments of the present application, the server further includes a data request module, and the data request module is used to:

[0051] If it is detected that a new user terminal is connected to the document online collaborative editing network in the server, a data request for modifying the difference point data generated by editing the online collaborative editing document is sent to the client terminal;

[0052] After receiving the modification difference point data, the edited online collaborative editing document is obtained based on the modification difference point data, and the edited online collaborative editing document is sent to the new user terminal and the client terminal.

[0053] In some embodiments of the present application, the server further includes a data storage module, and the data storage module is used to:

[0054] When it is detected that the document online collaborative editing network meets the preset conditions, the received modification difference point data and the edited online collaborative editing document are stored in the local cache of the server.

[0055] In some embodiments of the present application, the data storage module is used to determine that the document online collaborative editing network meets the preset condition in the following manner:

[0056] If it is detected that the client and at least one new user terminal are connected to the online collaborative editing network of the document, or if it is detected that at least two new user terminals are connected to the online collaborative editing network of the document, it is determined that the online collaborative editing network of the document meets a preset condition.

[0057] In some embodiments of the present application, the server further includes a document sending module, and the document sending module is used to:

[0058] If it is detected that both the client and the new user are disconnected from the server and leave the document online collaborative editing network, the received modification difference point data and the edited online collaborative editing document are sent to a database connected to the server for storage.

[0059] An embodiment of the present application also provides an electronic device, including: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of the online collaborative editing method of documents as described above are performed.

[0060] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the online collaborative document editing method as described above are executed.

[0061] An embodiment of the present application provides a document online collaborative editing method and client, which sends a network connection request carrying a document editing request to a server; after the client connects to the document online collaborative editing network in the server based on the network connection request, in response to the user's editing operation on the online collaborative editing document that matches the document editing request fed back by the server, determines modification difference point data for editing the online collaborative editing document; if a preset condition is met between the client and the server, the modification difference point data is saved in the local storage of the client.

[0062] In this way, when the client sends a network connection request carrying a document editing request to the server, the modification difference point data for editing the online collaboratively edited document is determined based on the feedback from the server, and when the preset conditions are met between the client and the server, the modification difference point data is saved in the local storage of the client. The modification data of the online collaboratively edited document can be saved at the client when certain conditions are met, thereby reducing the transmission of online collaboratively edited document data between the client and the server, eliminating the need for frequent data sending and receiving, reducing network consumption in the document online collaborative editing network, avoiding wasting data processing time, and helping to improve data processing efficiency.

[0063] An embodiment of the present application provides a method and server for online collaborative editing of documents, which receive a network connection request carrying a document editing request sent by a client; after allowing the client to connect to the online collaborative editing network of the document in the server based on the network connection request, send an online collaborative editing document matching the document editing request to the client; if a preset condition is met between the client and the server, stop sending a data request to the client for requesting modified difference point data generated by editing the online collaborative editing document.

[0064] In this way, when the server receives a network connection request carrying a document editing request sent by the client and allows the client to connect to the document online collaborative editing network in the server, it sends a matching online collaborative editing document to the client. If the preset conditions are met between the client and the server, no data request to modify the difference point data is sent to the client. That is, there is no need for real-time and frequent transmission of online collaborative editing document data with the client, which reduces network consumption in the document online collaborative editing network, avoids wasting data processing time, and helps to improve data processing efficiency.

[0065] Furthermore, after detecting that there is no client or a new user terminal connected to the server, the communication between the server and the database is initiated, and the received modification difference point data and the edited online collaborative editing document are sent to the database, triggering the database data reading and writing operations, thereby reducing the frequency of database data reading and writing operations, avoiding database operation jams, and improving the database data processing efficiency.

[0066] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0068] Figure 1 A schematic diagram of the architecture of an online collaborative document editing system provided in an embodiment of the present application;

[0069] Figure 2 A flowchart of a method for online collaborative editing of a document provided in an embodiment of the present application;

[0070] Figure 3 A schematic diagram of a process of online collaborative editing of a document provided by another embodiment of the present application;

[0071] Figure 4 One of the structural diagrams of a client provided in an embodiment of the present application;

[0072] Figure 5 A second schematic diagram of the structure of a client provided in an embodiment of the present application;

[0073] Figure 6 One of the structural diagrams of a server provided in an embodiment of the present application;

[0074] Figure 7 A second structural diagram of a server provided in an embodiment of the present application;

[0075] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0076] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, each other embodiment obtained by those skilled in the art without making creative work belongs to the scope of protection of the present application.

[0077] In order to enable those skilled in the art to use the contents of this application, the following implementation method is provided in conjunction with a specific application scenario of "modifying difference point data during online collaborative editing of documents and then sending them uniformly after storage". For those skilled in the art, the general principles defined here can be applied to other embodiments and application scenarios without departing from the spirit and scope of this application. Although this application mainly describes the storage method of modifying difference point data during online collaborative editing of documents, it should be understood that this is only an exemplary embodiment.

[0078] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.

[0079] One aspect of the present application relates to a document online collaborative editing system. The system can select whether the data modified during the document online editing process is stored in the local storage of the client by detecting whether the clients connected to the server meet preset conditions during the connection process between the server and the client, that is, the data is not transmitted between the client and the server in real time, thereby reducing the transmission of document data for online collaborative editing between the client and the server, eliminating the need for frequent data sending and receiving, reducing network consumption in the document online collaborative editing network, avoiding wasting data processing time, and helping to improve data processing efficiency.

[0080] It is worth noting that before the present application was filed, the traditional online collaborative editing method was generally that after the user edited the document on the client, the modified data was sent to the server in real time. The server updated the document content according to the modified data, and then sent the updated document to the user in order to keep the document updated in real time. This required frequent data sending and receiving, as well as data reading and writing, etc., which consumed a lot of network and wasted data processing time and data resources. However, the document online collaborative editing method, client and server provided by the present application can save the modified data of the online collaboratively edited document at the client when certain conditions are met, thereby reducing the transmission of the online collaboratively edited document data between the client and the server, eliminating the need for frequent data sending and receiving, reducing network consumption in the document online collaborative editing network, avoiding wasting data processing time, and helping to improve data processing efficiency.

[0081] Figure 1 The schematic diagram of the architecture of an online collaborative editing system for a document provided in an embodiment of the present application is as follows: The online collaborative editing system for a document may include one or more of a server 110 , a network 120 , a client 130 , and a database 140 .

[0082] In some embodiments, the server 110 may include a processor. The processor may process information and / or data related to the service request to perform one or more functions described in the present application. For example, the processor may determine the online collaborative editing document based on a network connection request carrying a document editing request obtained from the client 130. In some embodiments, the processor may include one or more processing cores (e.g., a single-core processor (S) or a multi-core processor (S)). By way of example only, the processor may include a central processing unit (CPU), an application specific integrated circuit (ASIC), an application specific instruction set processor (ASIP), a graphics processing unit (GPU), a physical processing unit (PPU), a digital signal processor (DSP), a field programmable gate array (FPGA), a programmable logic device (PLD), a controller, a microcontroller unit, a reduced instruction set computer (RISC), or a microprocessor, or any combination thereof.

[0083] In some embodiments, the device type corresponding to the client 130 may be a mobile device, such as a tablet computer, a laptop computer, etc.

[0084] In some embodiments, database 140 may be connected to network 120 to communicate with one or more components in the online document editing system (e.g., server 110, client 130, etc.). One or more components in the document online collaborative editing system may access data or instructions stored in database 140 via network 120.

[0085] The following is combined with the above Figure 1 The contents described in the document online collaborative editing system shown are used to explain in detail the document online collaborative editing method provided in the embodiment of the present application.

[0086] Reference Figure 2 As shown, Figure 2A flowchart of a method for online collaborative editing of a document provided in an embodiment of the present application is provided. The method for online collaborative editing of a document can be executed by a client in the above-mentioned online collaborative editing system of a document. The specific execution process is as follows:

[0087] S201: Send a network connection request carrying a document editing request to a server.

[0088] In this step, when there is a need to edit a document, the client sends a network connection request carrying a network document editing request to the server, requesting to connect to the server to facilitate subsequent data transmission.

[0089] Among them, the connection between the client and the server can have three solutions: websocket, long polling and polling. Among them, the websocket protocol is a new network protocol based on TCP, which realizes full-duplex communication between the client and the server, that is, allows the server to send messages to the client.

[0090] Here, the document requested to be edited by the client is an online collaborative editing document that can be shared online and supports multiple users to edit the document online (Excel or Word).

[0091] Here, the interaction between the client and the server can be divided into a single-person scenario and a multi-person scenario. The single-person scenario means that at the same time point, only one client is connected to the server for communication and editing of network documents; the multi-person scenario means that at the same time point, there are at least two clients connected to the server for communication and editing of network documents.

[0092] Among them, in a single-person scenario: the client recognizes the user's modified content, triggers real-time communication with the server, and sends the client's modification points (abbreviated as diff, that is, the difference between the user's modification and the modification points) to the server. The server merges the original document with the modification points to ensure the consistency of the server and client content; in a multi-person scenario: the client recognizes user A's modification of the content, synchronizes it to the server in real time, and the server sends the content to other connected users (user B / user C). Other users merge the modification points with the current client content to ensure the consistency of the server and all client content. The modifications of other users adopt the same process.

[0093] S202. After the client is connected to the document online collaborative editing network in the server based on the network connection request, in response to the user's editing operation on the online collaborative editing document that matches the document editing request fed back by the server, determine the modification difference point data for editing the online collaborative editing document.

[0094] In this step, according to the network connection request sent by the client, the client connects to the corresponding document online collaborative editing network, and according to the editing operation of the online collaborative editing document fed back by the server that matches the document editing request sent by the user, determines at least one modification difference point data of the online collaborative editing document that needs to be modified.

[0095] Here, the document editing request may include representation information of the document requested to be edited, such as the document name, document number, etc., so as to determine an online collaboratively edited document that matches the document editing request.

[0096] Here, in the initial stage of the document editing request service, the contents of the server and the user are consistent, that is, the online collaborative editing document is consistent, and the node positions, node numbers and content corresponding to the nodes in the online collaborative editing document are completely consistent.

[0097] Here, the modification of online collaborative editing documents by users can be roughly divided into adding data, deleting data, and modifying data. The data structures of the differences are as follows:

[0098] {option:"add";

[0099] path:" / root / children / 0 / children / 0";

[0100] value:{children:[],data:{created:1575967347998,id:uuid,text:"diff1"}}};

[0101] Among them, option represents the operation performed by the user (addition, deletion, modification of data, etc.); path represents the path of performing the operation. The paths of all difference points start from the root node (root). Value represents the detailed content of the corresponding node. The basic content includes child nodes, creation time, unique code of the node, detailed content of the node, etc.

[0102] S203: If the client and the server meet a preset condition, the modified difference point data is saved in the local storage of the client.

[0103] In this step, when the preset conditions are met between the client and the server, the modified difference point data is stored in the local storage of the client and is not transmitted to the server.

[0104] Here, all modified difference point data are generated into a difference point data list in a preset order and stored in the client. The preset order may be the time when the difference point data is generated or the node number corresponding to the difference point.

[0105] Furthermore, it is determined that a preset condition is satisfied between the client and the server through the following steps: if the client is connected to the document online collaborative editing network in the server, and it is determined based on the feedback information from the server that only the client is connected to the document online collaborative editing network, it is determined that a preset condition is satisfied between the client and the server.

[0106] In this step, after the client accesses the document online collaborative editing network in the server, it is obtained from the feedback information of the server whether there is only one client connected to the server in the document online collaborative editing network. If there is only the client connected to the document online collaborative editing network, it is determined that the preset conditions are met between the client and the server, and the modification difference point data is saved in the local storage of the client.

[0107] Here, there may be more than one document online collaborative editing network in the server. When detecting whether there is only one client, it is necessary to judge the situation of the client accessing the same document online collaborative editing network of the same server.

[0108] Furthermore, it is determined that a preset condition is satisfied between the client and the server through the following steps: if the client is connected to the online collaborative editing network of documents in the server, and after receiving an online collaborative editing document that matches the document editing request fed back by the server, but does not receive a data request sent by the server to request modification of the difference point data, it is determined that a preset condition is satisfied between the client and the server.

[0109] In this step, after the client sends a network connection request carrying a document editing request to the server, the server will send the online collaborative editing document matching the network connection request to the client, and send a data request to modify the difference point data to the user end. After the client receives the corresponding request, the modified difference point data is sent to the server. Therefore, when the client does not receive the data request sent by the server to request to modify the difference point data, it is considered that the server does not need to update the data at the current stage, determines that the preset conditions are met between the client and the server, and saves the modified difference point data in the local cache of the client.

[0110] Here, there may be two situations for the client not receiving the data request sent by the server for requesting to modify the difference point data. One is that the server side does not receive the demand for modifying the difference point data; the other is that there is a problem in the communication network between the client and the server during the transmission of the request, such as device power failure, etc. At this time, the modified difference point data is directly stored in the local storage of the client, which can save the data well and prevent data loss.

[0111] Furthermore, after step S203, the document online collaborative editing method includes: if it is determined that the user has completed editing the online collaborative editing document, sending all modification difference point data of the online collaborative editing document saved at the client to the server.

[0112] In this step, after determining that the user has completed editing the online collaboratively edited document, all modified difference data of the collaboratively edited document saved in the local storage of the user end are sent to the server end to keep the server end content consistent with the client end.

[0113] Among them, when the user completes all editing of the online collaborative editing document, the server determines that other clients actively disconnect from the server, that is, only one client is connected to the server. When it is determined that the client actively maintains the content or exits editing, all the modification difference point data saved locally on the client are sent to the server.

[0114] Here, all the modified difference point data sent by the client to the server may be a difference point data list stored in the client, or the modified difference point data may be sent to the server one by one.

[0115] Furthermore, after step S203, the document online collaborative editing method also includes: if a document data request is received from the server, or feedback is received from the server that a new user terminal is connected to the document online collaborative editing network in the server, all modification difference point data for editing the online collaborative editing document saved at the client are sent to the server.

[0116] In this step, if the client receives a document data request sent by the server or receives feedback from the server that at least one new user terminal is connected to the online collaborative editing network of the document in the server, it is determined that all the modified difference point data stored locally needs to be sent to the server.

[0117] Among them, all the modified difference point data sent by the client to the server refer to all the modified difference point data stored locally by the client when the corresponding instruction information is received. Therefore, the modified difference point data sent to the server when the instruction is received may be all the modified difference point data that the client needs to modify, or may be part of all the modified difference point data that the client needs to modify.

[0118] A document online collaborative editing method provided in an embodiment of the present application is applied to a client to send a network connection request carrying a document editing request to a server; after the client is connected to the document online collaborative editing network in the server based on the network connection request, in response to the user's editing operation on the online collaborative editing document that matches the document editing request fed back by the server, the modification difference point data for editing the online collaborative editing document is determined; if a preset condition is met between the client and the server, the modification difference point data is saved in the local storage of the client.

[0119] In this way, when the client sends a network connection request carrying a document editing request to the server, the modification difference point data for editing the online collaboratively edited document is determined based on the feedback from the server, and when the preset conditions are met between the client and the server, the modification difference point data is saved in the local storage of the client. The modification data of the online collaboratively edited document can be saved at the client when certain conditions are met, thereby reducing the transmission of online collaboratively edited document data between the client and the server, eliminating the need for frequent data sending and receiving, reducing network consumption in the document online collaborative editing network, avoiding wasting data processing time, and helping to improve data processing efficiency.

[0120] Reference Figure 3 As shown, Figure 3 A schematic diagram of a process flow of online collaborative editing of a document provided by another embodiment of the present application. The online collaborative editing method of the document can be executed by a server in the online collaborative editing system of the document, such as Figure 3 As shown in , the specific execution process is:

[0121] S301: Receive a network connection request carrying a document editing request sent by a client.

[0122] In this step, when a client that wants to establish a network communication connection is found, a network connection request carrying a document editing request sent by the client is received.

[0123] Here, when establishing a network connection with the client, it is necessary to verify the network protocol and the like carried in the network request of the client to detect whether the network request made by the client at this time is legal.

[0124] S302: After allowing the client to connect to the document online collaborative editing network in the server based on the network connection request, an online collaborative editing document matching the document editing request is sent to the client.

[0125] In this step, based on the network request sent by the client, it is detected whether the client is allowed to connect to the online collaborative editing network of documents in the server. If it is determined that the client is allowed to connect to the online collaborative editing network of documents in the server, based on the document editing request carried in the network request of the client, an online collaborative editing document matching the document editing request is sent to the client.

[0126] Among them, for the detection of whether to allow the client to connect to the document online collaborative editing network in the server, in addition to detecting whether the network request sent by the client is legal and whether the network protocol is correct, it is also necessary to detect whether the requested document indicated by the document editing request carried in the network connection request matches the document online collaborative editing network, that is, whether the document requested to be edited by the client is a document that can be edited in the document online collaborative editing network provided by the server.

[0127] Here, after determining that the client is allowed to connect to the online collaborative editing network of documents in the server, if the user of the client opens the online document for the first time, the server sends a document request message to the database, and obtains from the database an online collaborative editing document that matches the document editing request carried in the network request of the client.

[0128] S303: If a preset condition is satisfied between the client and the server, stop sending a data request for modifying difference point data generated by editing the online collaboratively edited document to the client.

[0129] In this step, when the preset conditions are met between the client and the server, the server will stop sending data requests to the client for requesting the client to modify the difference point data generated when editing the online collaborative editing document, that is, stop requesting the client to modify the difference point data.

[0130] Furthermore, it is determined that a preset condition is satisfied between the client and the server through the following steps: if after the client is connected to the document online collaborative editing network in the server, the server detects that only the client is connected to the document online collaborative editing network, it is determined that a preset condition is satisfied between the client and the server.

[0131] In this step, after the client is connected to the online collaborative editing network of documents in the server, the server detects whether there are other clients connected to the server at the same time except the client. If it is detected that at the same time point, only the client is connected to the online collaborative editing network of documents in the server, it is determined that the preset conditions are met between the client and the server.

[0132] Among them, the statistics of clients connected to the server are based on clients that are actually connected to the server, that is, clients that have communication connection and data exchange with the server. Clients that have sent network requests to the server but the server does not allow the clients to connect to the document online collaborative editing network in the server, or clients that have connection failures due to problems in the network link between the two are not counted as clients connected to the server.

[0133] Furthermore, after step S303, the document online collaborative editing method also includes: if it is detected that a new user terminal is connected to the document online collaborative editing network in the server, sending a data request for requesting the modification difference point data generated by editing the online collaborative editing document to the client; after receiving the modification difference point data, obtaining the edited online collaborative editing document based on the modification difference point data, and sending the edited online collaborative editing document to the new user terminal and the client.

[0134] In this step, if it is detected that when the client is connected to the server, there is at least one new user terminal connected to the document online collaborative editing network in the server, a data request is sent to the client to obtain from the client the modification difference data generated by editing the online collaborative editing document. After receiving the modification difference data sent by the client, the online collaborative editing document first stored in the server is correspondingly updated based on the modification difference data to obtain the edited online collaborative editing document, and the edited online collaborative editing document is sent to the new user terminal and the client.

[0135] The client and the user end are both terminals for online editing of the online collaborative editing document.

[0136] Here, when the server sends a data request to the client, the send_message interface in the websocket may be triggered to perform data interaction between the server and the client.

[0137] Here, after the server requests the client to obtain the modified difference point data, it determines the difference point that needs to be modified through the corresponding difference point identification information, and merges the difference points into the server's online collaborative editing document in the chronological order of their generation, ensuring that the server content is consistent with the client.

[0138] For example, the server receives two difference points returned by the client, diff1 and diff2. According to the generation order of the two, diff1 is generated before diff2, so the server side first merges the modification information carried in diff1 into the server. After the modification information carried in diff1 is completed, the modification information carried in diff2 is merged.

[0139] Here, after the server obtains the edited online collaboratively edited document based on the received modification difference point data, it is necessary to send the edited online collaboratively edited document to the client and at least one new user terminal connected to the server. After receiving the edited online collaboratively edited document, the client and at least one new user terminal save the edited online collaboratively edited document in local storage to ensure that the contents stored in the server, the client and the new user terminal are consistent.

[0140] Furthermore, after receiving the modification difference point data, obtaining the edited online collaborative editing document based on the modification difference point data, and sending the edited online collaborative editing document to the new user terminal and the client, the document online collaborative editing method includes: when it is detected that the document online collaborative editing network meets preset conditions, storing the received modification difference point data and the edited online collaborative editing document in the local cache of the server.

[0141] In this step, after modifying the online collaborative editing document, it is detected whether the online collaborative editing network of the document meets the preset conditions. If the preset conditions are met, the received modification difference point data and the edited online collaborative editing document are stored in the local cache of the server.

[0142] The modified difference point data in the local storage of the server and the online collaboratively edited document are stored together in a matching manner.

[0143] Here, if it is detected that the document online collaborative editing network does not meet the preset conditions, the server starts a network connection with the database, and adds, deletes, and modifies the corresponding data in the database according to the received modification difference point data and the edited online collaborative editing document to update the database.

[0144] Further, it is determined that the document online collaborative editing network meets the preset conditions in the following manner: if it is detected that the client and at least one of the new user terminals are connected in the document online collaborative editing network, or if it is detected that at least two of the new user terminals are connected in the document online collaborative editing network, it is determined that the document online collaborative editing network meets the preset conditions.

[0145] In this step, if it is detected that the client and at least one of the new user terminals are connected in the document online collaborative editing network, or that at least two of the new user terminals are connected in the document online collaborative editing network, and it is determined that the document online collaborative editing network meets the preset conditions, the server will store the received modification difference point data and the edited online collaborative editing document in the local cache.

[0146] Among them, the statistics of clients and / or new users connected to the server are based on clients and / or new users that are actually connected to the server, that is, clients and / or new users that have communication connection and data exchange with the server. Clients and / or new users that have sent network requests to the server but the server does not allow the clients and / or new users to connect to the document online collaborative editing network in the server, or there is a problem with the network link between the two, resulting in connection failure, are not counted as clients and / or new users that are connected to the server.

[0147] Here, the setting of preset conditions is to ensure that the server receives the modified difference point data sent by the client, can perform editing operations on online collaborative editing documents, and can update the data conditions of online collaborative editing documents, that is, the conditions that can trigger the client or new user to send modified difference point data to the server: more than one terminal device is connected to the online collaborative editing network in the server in the same time period.

[0148] Furthermore, after receiving the modification difference point data, obtaining the edited online collaborative editing document based on the modification difference point data, and sending the edited online collaborative editing document to the new user terminal and the client, the document online collaborative editing method also includes: if it is detected that the client terminal and the new user terminal are both disconnected from the server and leave the document online collaborative editing network, sending the received modification difference point data and the edited online collaborative editing document to a database connected to the server for storage.

[0149] In this step, if it is detected that the client and the new user terminal are all disconnected from the server and leave the document online collaborative editing network, after completing the compilation of the online collaborative editing document, the received modification difference data and the edited online collaborative editing document are sent to the database connected to the server, and the data in the database is updated according to the corresponding modification difference data to ensure that the content of the online collaborative editing document in the database is consistent with the content of the server, the client and all new user terminals.

[0150] Here, the client and the new user are both disconnected from the server. There may be two situations: one is that the client and the new user have both completed editing the online collaborative editing document, and the other may be that there is a problem with the communication network, resulting in a network connection interruption. Therefore, when it is detected that the client and the new user are both disconnected from the server, it is necessary to check the network connection. If it is a network connection problem, it is necessary to check the network failure and re-establish the network connection between the server and the client and / or the new user.

[0151] Here, after determining that the client and new user terminal connected to the server have normally exited the online collaborative editing network of the document and disconnected from the server after completing editing the online collaborative editing document, when the last user terminal (which may be the client or the new user terminal) exits editing the online document, by monitoring the browser message, the last user terminal exiting editing the online document is triggered to send the latest modification difference point data completed to the server. The server edits and modifies the online collaborative editing document based on all the modification difference point data received, determines the edited online collaborative editing document, and ensures that the document content of the server and the client is consistent. After determining that the last user terminal exits the online collaborative editing network of the document, the server starts the connection with the database, sends the edited online collaborative editing document to the database, triggers the database's add, delete, and modify operations, and updates the content in the database to the latest.

[0152] The operations of adding, deleting and modifying the database are referred to as dropping data into the database, which can ensure the persistence of the data. When the server is restarted or powered off, the modified content will not be lost.

[0153] A document online collaborative editing method provided in an embodiment of the present application is applied to a server, receives a network connection request carrying a document editing request sent by a client; after allowing the client to connect to the document online collaborative editing network in the server based on the network connection request, sends an online collaborative editing document matching the document editing request to the client; if a preset condition is met between the client and the server, stops sending a data request to the client for requesting modified difference point data generated by editing the online collaborative editing document.

[0154] In this way, when the server receives a network connection request carrying a document editing request sent by the client and allows the client to connect to the document online collaborative editing network in the server, it sends a matching online collaborative editing document to the client. If the preset conditions are met between the client and the server, no data request to modify the difference point data is sent to the client. That is, there is no need to frequently send and receive data with the client in real time, thereby reducing the transmission of online collaborative editing document data between the client and the server. There is no need for frequent data sending and receiving, which reduces network consumption in the document online collaborative editing network, avoids wasting data processing time, and helps to improve data processing efficiency.

[0155] See also Figures 4 to 7 , Figure 4 This is one of the structural diagrams of a client provided in an embodiment of the present application. Figure 5 A second schematic diagram of the structure of a client provided in an embodiment of the present application; Figure 6 This is one of the structural diagrams of a server provided in an embodiment of the present application. Figure 7 This is a second structural diagram of a server provided in an embodiment of the present application. Figure 4 As shown in , the client 400 includes:

[0156] The request sending module 410 is used to send a network connection request carrying a document editing request to the server.

[0157] The data modification module 420 is used to determine the modification difference point data for editing the online collaborative editing document in response to the user's editing operation on the online collaborative editing document that matches the document editing request fed back by the server after the client is connected to the document online collaborative editing network in the server based on the network connection request.

[0158] The data saving module 430 is used to save the modified difference point data in the local storage of the client if the preset condition is met between the client and the server.

[0159] Further, such as Figure 5 As shown, the client 400 further includes a first data sending module 440, and the first data sending module 440 is used to:

[0160] If it is determined that the user has completed editing the online collaboratively edited document, all modified difference point data for editing the online collaboratively edited document saved at the client are sent to the server.

[0161] Furthermore, the client 400 further includes a second data sending module 450, and the second data sending module 450 is used to:

[0162] If a document data request is received from the server, or if feedback is received from the server that a new user terminal is connected to the online collaborative editing network of the document in the server, all modification difference point data of the online collaborative editing document saved at the client are sent to the server.

[0163] Furthermore, the data storage module 430 is used to determine whether the client and the server meet a preset condition through the following steps:

[0164] If after the client is connected to the document online collaborative editing network in the server, it is determined based on feedback information from the server that only the client is connected to the document online collaborative editing network, it is determined that a preset condition is satisfied between the client and the server.

[0165] Furthermore, the data storage module 430 is used to determine whether the client and the server meet a preset condition through the following steps:

[0166] If the client is connected to the document online collaborative editing network in the server and receives an online collaborative editing document that matches the document editing request from the server, but does not receive a data request sent by the server to request modification of the difference point data, it is determined that a preset condition is met between the client and the server.

[0167] The client provided in the embodiment of the present application sends a network connection request carrying a document editing request to a server; after the client connects to the document online collaborative editing network in the server based on the network connection request, the client determines the modification difference point data for editing the online collaborative editing document in response to the user's editing operation on the online collaborative editing document that matches the document editing request fed back by the server; if a preset condition is met between the client and the server, the modification difference point data is saved in the local storage of the client.

[0168] In this way, when the client sends a network connection request carrying a document editing request to the server, the modification difference point data for editing the online collaboratively edited document is determined based on the feedback from the server, and when the preset conditions are met between the client and the server, the modification difference point data is saved in the local storage of the client. The modification data of the online collaboratively edited document can be saved at the client when certain conditions are met, thereby reducing the transmission of online collaboratively edited document data between the client and the server, eliminating the need for frequent data sending and receiving, reducing network consumption in the document online collaborative editing network, avoiding wasting data processing time, and helping to improve data processing efficiency.

[0169] like Figure 6 As shown in , the server 600 includes:

[0170] The request receiving module 610 is used to receive a network connection request carrying a document editing request sent by a client;

[0171] A document sending module 620, configured to send an online collaborative editing document matching the document editing request to the client after allowing the client to connect to the document online collaborative editing network in the server based on the network connection request;

[0172] The request stop module 630 is used to stop sending a data request for modifying the difference point data generated by editing the online collaborative editing document to the client if a preset condition is satisfied between the client and the server.

[0173] Further, such as Figure 7 As shown in , the server 600 also includes:

[0174] The data request module 640 is used to:

[0175] If it is detected that a new user terminal is connected to the document online collaborative editing network in the server, a data request for modifying the difference point data generated by editing the online collaborative editing document is sent to the client terminal;

[0176] After receiving the modification difference point data, the edited online collaborative editing document is obtained based on the modification difference point data, and the edited online collaborative editing document is sent to the new user terminal and the client terminal.

[0177] Furthermore, the server 600 further includes a data storage module 650, and the data storage module 650 is used to:

[0178] When it is detected that the document online collaborative editing network meets the preset conditions, the received modification difference point data and the edited online collaborative editing document are stored in the local cache of the server.

[0179] Furthermore, the server 600 further includes a document sending module 660, and the document sending module 660 is used to:

[0180] If it is detected that both the client and the new user are disconnected from the server and leave the document online collaborative editing network, the received modification difference point data and the edited online collaborative editing document are sent to a database connected to the server for storage.

[0181] Further, the request stop module 630 is used to determine whether the preset condition is satisfied between the client and the server through the following steps:

[0182] If, after the client is connected to the online collaborative document editing network in the server, the server detects that only the client is connected to the online collaborative document editing network, it is determined that a preset condition is satisfied between the client and the server.

[0183] Furthermore, the data storage module 650 is used to determine that the document online collaborative editing network meets the preset condition in the following manner:

[0184] If it is detected that the client and at least one new user terminal are connected to the online collaborative editing network of the document, or if it is detected that at least two new user terminals are connected to the online collaborative editing network of the document, it is determined that the online collaborative editing network of the document meets a preset condition.

[0185] The server provided in the embodiment of the present application receives a network connection request carrying a document editing request sent by a client; after allowing the client to connect to the document online collaborative editing network in the server based on the network connection request, sends an online collaborative editing document matching the document editing request to the client; if a preset condition is met between the client and the server, stops sending a data request to the client for requesting the modification difference point data generated by editing the online collaborative editing document.

[0186] In this way, when the server receives a network connection request carrying a document editing request sent by the client and allows the client to connect to the document online collaborative editing network in the server, it sends a matching online collaborative editing document to the client. If the preset conditions are met between the client and the server, no data request to modify the difference point data is sent to the client. That is, there is no need to frequently send and receive data with the client in real time, thereby reducing the transmission of online collaborative editing document data between the client and the server. There is no need for frequent data sending and receiving, which reduces network consumption in the document online collaborative editing network, avoids wasting data processing time, and helps to improve data processing efficiency.

[0187] See also Figure 8 , Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 8 As shown in , the electronic device 800 includes a processor 810 , a memory 820 and a bus 830 .

[0188] The memory 820 stores machine-readable instructions executable by the processor 810. When the electronic device 800 is running, the processor 810 communicates with the memory 820 via the bus 830. When the machine-readable instructions are executed by the processor 810, the above-mentioned Figure 2 as well as Figure 3 The steps of a method for online collaborative editing of a document in the method embodiment shown are specifically implemented in the method embodiment and will not be described in detail here.

[0189] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Figure 2 as well as Figure 3 The steps of a method for online collaborative editing of a document in the method embodiment shown are specifically implemented in the method embodiment and will not be described in detail here.

[0190] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0191] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0192] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0193] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0194] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0195] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A document online collaborative editing method, characterized in that: Applied to the client, the document online collaborative editing method includes: Sending a network connection request carrying a document editing request to the server; After the client is connected to the document online collaborative editing network in the server based on the network connection request, in response to the user's editing operation on the online collaborative editing document that matches the document editing request fed back by the server, the modification difference point data for editing the online collaborative editing document is determined; wherein the difference point data includes the operation performed by the user, the path for performing the operation, and the basic content of the node, and the basic content includes the child node, the creation time, the unique code of the node, and the detailed content of the node; If the client and the server meet a preset condition, the modified difference point data is stored in the local storage of the client; The following steps are used to determine whether the client and the server meet the preset conditions: If after the client is connected to the document online collaborative editing network in the server, it is determined based on the feedback information of the server that only the client is connected to the document online collaborative editing network, it is determined that the client and the server meet a preset condition; Alternatively, if the client is connected to the online collaborative editing network of documents in the server, and after receiving an online collaborative editing document from the server that matches the document editing request, but does not receive a data request from the server for requesting to modify the difference point data, it is determined that a preset condition is met between the client and the server.

2. The method for online collaborative editing of documents according to claim 1, characterized in that: If the preset condition is satisfied between the client and the server, after the modified difference point data is saved in the local storage of the client, the document online collaborative editing method includes: If a document data request is received from the server, or if feedback is received from the server that a new user terminal is connected to the online collaborative editing network of the document in the server, all modification difference point data of the online collaborative editing document saved at the client are sent to the server.

3. A document online collaborative editing method, characterized in that: Applied to a server, the document online collaborative editing method comprises: Receiving a network connection request carrying a document editing request sent by a client; After allowing the client to connect to the document online collaborative editing network in the server based on the network connection request, sending the online collaborative editing document matching the document editing request to the client; If the preset conditions are met between the client and the server, stop sending the data request for modifying the difference point data generated by editing the online collaborative editing document to the client; wherein the difference point data includes the operation performed by the user, the path for performing the operation, and the basic content of the node, and the basic content includes the child node, the creation time, the unique code of the node, and the detailed content of the node; The following steps are used to determine whether the client and the server meet the preset conditions: If, after the client is connected to the online collaborative document editing network in the server, the server detects that only the client is connected to the online collaborative document editing network, it is determined that a preset condition is satisfied between the client and the server; Alternatively, if it is detected that the client and at least one new user terminal are connected to the online collaborative editing network of the document, or it is detected that at least two new user terminals are connected to the online collaborative editing network of the document, it is determined that the online collaborative editing network of the document meets the preset condition.

4. The method for online collaborative editing of documents according to claim 3, characterized in that: After the process of stopping sending the data request for modifying the difference point data generated by editing the online collaboratively edited document to the client when the preset condition is satisfied between the client and the server, the document online collaborative editing method comprises: If it is detected that a new user terminal is connected to the document online collaborative editing network in the server, a data request for modifying the difference point data generated by editing the online collaborative editing document is sent to the client terminal; After receiving the modification difference point data, the edited online collaborative editing document is obtained based on the modification difference point data, and the edited online collaborative editing document is sent to the new user terminal and the client terminal.

5. The method for online collaborative editing of documents according to claim 4, characterized in that: After receiving the modification difference point data, obtaining the edited online collaborative editing document based on the modification difference point data, and sending the edited online collaborative editing document to the new user terminal and the client terminal, the document online collaborative editing method includes: When it is detected that the document online collaborative editing network meets the preset conditions, the received modification difference point data and the edited online collaborative editing document are stored in the local cache of the server.

6. A client, characterized in that: The client comprises: A request sending module, used for sending a network connection request carrying a document editing request to a server; A data modification module, for determining modification difference point data for editing the online collaborative editing document in response to the editing operation of the online collaborative editing document matched with the document editing request fed back by the user to the server after the client is connected to the online collaborative editing network of the document in the server based on the network connection request; wherein the difference point data includes the operation performed by the user, the path for performing the operation and the basic content of the node, and the basic content includes the child node, the creation time, the unique code of the node and the detailed content of the node; A data saving module, used for saving the modified difference point data in the local storage of the client if the client and the server meet a preset condition; The data storage module is used to determine that the client and the server meet the preset conditions through the following steps: If after the client is connected to the document online collaborative editing network in the server, it is determined based on the feedback information of the server that only the client is connected to the document online collaborative editing network, it is determined that the client and the server meet a preset condition; Alternatively, if the client is connected to the online collaborative editing network of documents in the server, and after receiving an online collaborative editing document from the server that matches the document editing request, but does not receive a data request from the server for requesting to modify the difference point data, it is determined that a preset condition is met between the client and the server.

7. A server, characterized in that: The server comprises: A request receiving module, used for receiving a network connection request carrying a document editing request sent by a client; A document sending module, configured to send an online collaborative editing document matching the document editing request to the client after allowing the client to connect to the document online collaborative editing network in the server based on the network connection request; A request stop module, used for stopping sending a data request for modifying difference point data generated by editing the online collaborative editing document to the client if a preset condition is satisfied between the client and the server; wherein the difference point data includes an operation performed by a user, a path for performing the operation, and basic content of a node, wherein the basic content includes a child node, a creation time, a unique code of the node, and detailed content of the node; The request stop module determines that the preset condition is satisfied between the client and the server through the following steps: If, after the client is connected to the online collaborative document editing network in the server, the server detects that only the client is connected to the online collaborative document editing network, it is determined that a preset condition is satisfied between the client and the server; Alternatively, if it is detected that the client and at least one new user terminal are connected to the online collaborative editing network of the document, or it is detected that at least two new user terminals are connected to the online collaborative editing network of the document, it is determined that the online collaborative editing network of the document meets the preset condition.

8. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the storage medium communicate via the bus, and the processor executes the machine-readable instructions to perform the steps of the method as described in any one of claims 1 to 2.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 2 are executed.

10. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the storage medium communicate via the bus, and the processor executes the machine-readable instructions to perform the steps of the method as described in any one of claims 3 to 5.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method according to any one of claims 3 to 5 are executed.