Collaborative editing method, device, equipment and storage medium

Through the collaborative editing method, file snapshot synchronization technology is used to solve the problem of low efficiency in online agreement signing, realize efficient collaborative editing under low network quality, and meet the basic needs of agreement editing.

CN112906355BActive Publication Date: 2024-10-11CHANGSHA DAOJIA YOUXIANG NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110075834.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-20
Publication Date
2024-10-11
Estimated Expiration
2041-01-20

AI Technical Summary

Technical Problem

Existing technology makes it difficult to complete online agreement signing efficiently and accurately, especially when the network quality is not high, and the traditional method results in a long and cumbersome signing period.

Method used

Through the collaborative editing method, file snapshot synchronization technology is used to synchronize the first file snapshot of the file to be edited to the collaborative party, receive and process its operation content, and generate the second file snapshot of the edited file to achieve collaborative editing.

Benefits of technology

In the case of low network quality requirements, the real-time and efficiency of collaborative editing are achieved, the basic needs of protocol editing are met, and the efficiency of collaborative editing is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112906355B_ABST
    Figure CN112906355B_ABST
Patent Text Reader

Abstract

The present invention discloses a collaborative editing method, apparatus, device and storage medium. The method includes synchronizing a first file snapshot of a file to be edited to the first collaborative party and the second collaborative party based on the authentication results of the first collaborative party and the second collaborative party; receiving the operation content of the first collaborative party and / or the second collaborative party on the first file snapshot; performing an editing operation on the file to be edited according to the operation content to generate an edited file; synchronizing a second file snapshot of the edited file to the first collaborative party and the second collaborative party. Through the above scheme, file snapshots are generated and synchronized to multiple collaborative parties, and the collaborative parties can also perform related file editing operations based on the snapshot files, so that collaborative editing operations can be realized under conditions with low network quality requirements, while meeting basic editing needs and improving collaborative editing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of Internet technology, and in particular to a collaborative editing method, apparatus, device and storage medium. Background Art

[0002] With the development of Internet technology, more and more offline activities have been transferred online. Interviews, meetings and other tasks can be easily transferred from offline to online. However, many businesses are difficult to transfer from offline to online.

[0003] In practical applications, for example, when two parties need to sign an agreement, they usually need to meet face to face, or, after reaching an agreement through an online interview or online meeting, mail the agreement to be signed to the other party. It can be seen that when using the traditional method to sign an agreement, the signing cycle is long and too long and cumbersome. Therefore, a method is needed to achieve accurate and efficient signing of the agreement. Summary of the invention

[0004] The embodiments of the present invention provide a collaborative editing method, apparatus, device and storage medium to improve the technical solution for implementing online protocol editing processing.

[0005] In a first aspect, an embodiment of the present invention provides a collaborative editing method, the method comprising:

[0006] Based on the authentication results of the first collaborator and the second collaborator, synchronizing the first file snapshot of the file to be edited to the first collaborator and the second collaborator;

[0007] receiving operation content of the first collaborator and / or the second collaborator on the first file snapshot;

[0008] Performing an editing operation on the file to be edited according to the operation content to generate an edited file;

[0009] Synchronize a second file snapshot of the edited file to the first collaborator and the second collaborator.

[0010] Optionally, the receiving the operation content of the first collaborating party and / or the second collaborating party on the first file snapshot includes:

[0011] If the first collaborator and the second collaborator perform operations on the first file snapshot at the same time, then the operation content of the party with a higher priority on the file snapshot is received; or,

[0012] If the first collaborator and the second collaborator perform operations on the first file snapshot at the same time, the operation contents of the first collaborator and the second collaborator on the first file snapshot are received at the same time.

[0013] Optionally, performing an editing operation on the file to be edited according to the operation content to generate an edited file includes:

[0014] If the operation content is a click operation, determining the operation coordinates corresponding to the click operation;

[0015] Determine the corresponding operated object in the to-be-edited file based on the operation coordinates;

[0016] In response to the click operation, the operated object is edited to generate an edited file.

[0017] Optionally, performing an editing operation on the file to be edited according to the operation content to generate an edited file includes:

[0018] If the operation content is an input operation, determining the operation coordinates and input content corresponding to the input operation;

[0019] Determine the corresponding operated object in the file to be edited based on the operation coordinates;

[0020] Based on the input content, the operated object is edited to generate an edited file.

[0021] Optionally, synchronizing the second file snapshot of the edited file to the first collaborating party and the second collaborating party includes:

[0022] According to a preset snapshot update cycle, the second file snapshot of the edited file is synchronized to the first collaborator and the second collaborator.

[0023] Optionally, also include:

[0024] If the input duration of the input content is greater than the update period of the second snapshot file, a plurality of consecutive second file snapshots are generated based on the input content according to the snapshot update period, and the plurality of consecutive second file snapshots are synchronized to the first collaborator and the second collaborator.

[0025] Optionally, after determining the corresponding operated object in the file to be edited based on the operation coordinates, the method further includes:

[0026] Determine whether the first collaborator or the second collaborator who initiated the operation content has the authority to perform the operation on the operated object;

[0027] If not, do not respond to the operation content.

[0028] In a second aspect, an embodiment of the present invention provides a collaboration device, the device comprising:

[0029] A synchronization module, configured to synchronize a first file snapshot of the file to be edited to the first collaborative party and the second collaborative party based on the authentication results of the first collaborative party and the second collaborative party;

[0030] A receiving module, configured to receive content of operations performed by the first collaborating party and / or the second collaborating party on the first file snapshot;

[0031] A generating module, used for performing an editing operation on the file to be edited according to the operation content, and generating an edited file;

[0032] The synchronization module is further used to synchronize the second file snapshot of the edited file to the first collaborating party and the second collaborating party.

[0033] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a processor and a memory, wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the collaborative editing method as described in the first aspect.

[0034] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium storing a computer program, which, when executed by one or more processors, causes the one or more processors to perform the following actions:

[0035] Based on the authentication results of the first collaborator and the second collaborator, synchronizing the first file snapshot of the file to be edited to the first collaborator and the second collaborator;

[0036] receiving operation content of the first collaborator and / or the second collaborator on the first file snapshot;

[0037] Performing an editing operation on the file to be edited according to the operation content to generate an edited file;

[0038] Synchronize a second file snapshot of the edited file to the first collaborator and the second collaborator.

[0039] In an embodiment of the present invention, after the first collaborator and the second collaborator complete the authentication with the server, they will simultaneously establish a connection relationship with the server, so that they can receive the snapshot files synchronized by the server in real time. Specifically, the server will generate a first file snapshot for the file to be edited, and synchronize the first file snapshot to the first collaborator and the second collaborator at the same time. Then, the first collaborator and the second collaborator can perform related operations based on the current first file snapshot, and send the operation content to the server, and then the server responds to the received operation content and performs operation editing on the file to be edited to generate an edited file. The second file snapshot generated based on the edited file is synchronized to the first collaborator and the second collaborator. Through the above scheme, by generating a file snapshot and synchronizing it to multiple collaborators, and the collaborators can also perform related file editing operations based on the snapshot file, it is possible to implement collaborative editing operations under conditions with low network quality requirements, while meeting basic editing needs and improving collaborative editing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0041] Figure 1 A flowchart of a collaborative editing method provided in an embodiment of the present application;

[0042] Figure 2 A schematic diagram of file snapshot synchronization is provided as an example to illustrate an embodiment of the present application;

[0043] Figure 3 A schematic diagram of the structure of a collaborative editing device provided in an embodiment of the present application;

[0044] Figure 4 For Figure 3 A schematic diagram of the structure of an electronic device corresponding to a collaborative editing device provided in the embodiment. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0046] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two.

[0047] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0048] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a product or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such a product or system. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the product or system including the elements.

[0049] In the prior art, when a customer has a meeting and signs a contract with a broker, the customer is usually required to go to the store to talk face to face with the broker and sign the contract face to face. However, in some scenarios, the condition of going to the store cannot be met. Although online talks can be achieved by phone or instant messaging software, the contract signing work cannot be met. However, in some application scenarios, online real-time editing of files can be used, but the network resource consumption is high and the synchronization requirements are high. When the network speed is not good, the synchronization effect is not ideal. In addition, in actual application scenarios, customers may only be able to complete the contract through mobile phones and cannot edit files through computers. Therefore, this application adopts a snapshot synchronization solution, which can provide friendly support and implementation possibilities for users who can only perform editing operations through mobile phones, especially when the files to be edited are relatively large, the synchronization frequency can be increased.

[0050] Figure 1 A flowchart of a collaborative editing method provided in an embodiment of the present application is applied to a server (eg, a cloud server or a server cluster), and can also be applied to a local computer, such as Figure 1 As shown, the method comprises the following steps:

[0051] 101: Based on the authentication results of the first collaborating party and the second collaborating party, synchronize a first file snapshot of the file to be edited to the first collaborating party and the second collaborating party.

[0052] 102: Receive the content of operation performed by the first collaborator and / or the second collaborator on the first file snapshot.

[0053] 103: Performing an editing operation on the file to be edited according to the operation content to generate an edited file.

[0054] 104: Synchronize a second file snapshot of the edited file to the first collaborator and the second collaborator.

[0055] For ease of understanding, the application scenario of this solution is illustrated here. The first collaborating party mentioned here can be understood as a client, the second collaborating party can be understood as a broker, and the file to be edited can be understood as a contract to be signed or an agreement to be signed. The file snapshot is a snapshot of the contract or agreement. It is easy to understand that the snapshot is usually divided into multiple frames and generated, sent and displayed according to a certain period or frequency.

[0056] Assume that the first collaborator logs in to the service platform through a mobile phone and performs login authentication on the service platform. When the authentication result is authentication passed, the server synchronizes the first snapshot file generated by the file to be edited to the first collaborator and the second collaborator. It should be noted that when transmitting the file snapshot to the first collaborator and the second collaborator, it is necessary to ensure the simultaneous transmission effect. In other words, it is necessary to ensure that the first collaborator and the second collaborator can see the same file snapshot in real time at the same time. If the synchronization effect between the first collaborator and the second collaborator is not good, the party with faster synchronization can be delayed so that the first collaborator and the second collaborator can maintain synchronization.

[0057] It should be noted that in actual applications, multiple parties can participate in the collaborative editing activity, not limited to the first collaborative party and the second collaborative party. Here, the collaborative editing process is only illustrated by the first collaborative party and the second collaborative party, which is not enough to limit the technical solution of this application. The staff can selectively access multiple collaborative parties according to their needs.

[0058] After the first file snapshot corresponding to the file to be edited is synchronized to the first collaborator and the second collaborator, the two collaborators can not only see the content in the first file snapshot, but also perform related operations based on the first file snapshot.

[0059] Figure 2 The following is a schematic diagram of file snapshot synchronization for an example of the present application. For example, the first collaborative party receives the first file snapshot via a mobile phone. Figure 2As shown, in the first file snapshot, you can see that the basic information of the first collaborator needs to be filled in, such as name, age, mobile phone number, etc. You can also check length of service, salary range, etc. Similarly, the same content is seen on the mobile phone or computer of the second collaborator. Because it is displayed on the mobile phone or computer in the form of a snapshot, the first collaborator cannot directly edit the file to be edited when editing. Instead, the operation content is sent to the server, and then the server side performs the corresponding editing operation on the file to be edited. For example, upon receiving the first collaborator's check operation on length of service, the server side completes the check operation on the corresponding length of service in the file to be edited, and generates the edited file. The second file snapshot generated based on the edited file is synchronized to the first and second collaborators.

[0060] In one or more embodiments of the present application, the receiving the operation content of the first collaborating party and / or the second collaborating party on the first file snapshot includes:

[0061] If the first collaborator and the second collaborator perform operations on the first file snapshot at the same time, the operation content of the party with a higher priority on the file snapshot is received.

[0062] Assuming that the broker (the second collaborator) has higher operating authority, when the first collaborator and the second collaborator simultaneously perform operations on the first file snapshot, since the second collaborator has higher authority, the server receives the second collaborator's operations and displays relevant prompt information such as "unable to operate" on the client of the first collaborator (such as a mobile phone APP). When the second collaborator's operation is completed, the first collaborator can operate. It should be noted that in order to ensure operational continuity, although the second collaborator has a higher priority, during the operation of the first collaborator, the second collaborator cannot terminate the operation of the first collaborator.

[0063] If the first collaborator and the second collaborator perform operations on the first file snapshot at the same time, the operation contents of the first collaborator and the second collaborator on the first file snapshot are received at the same time.

[0064] For example, after synchronizing the same first file snapshot to the first collaborator and the second collaborator at the same time, the server receives the operation content of the first collaborator and the operation content of the second collaborator at the same time. After the server receives the operation content, it will be edited and saved separately, and then the two edited files will be merged. For example, the edited file generated based on the operation content of the first collaborator is saved as edited file 1, and the edited file generated based on the operation content of the second collaborator is saved as edited file 2, and then the edited file 1 is merged with the edited file 2 to obtain the edited file, and then the second file snapshot is generated and synchronized to the first collaborator and the second collaborator. In this way, it can support multi-party collaborative editing based on the same file snapshot, effectively improve editing efficiency, and meet users' diverse editing needs.

[0065] In one or more embodiments of the present application, performing an editing operation on the file to be edited according to the operation content to generate an edited file includes: if the operation content is a click operation, determining the operation coordinates corresponding to the click operation; determining the corresponding operated object in the file to be edited based on the operation coordinates; and editing the operated object in response to the click operation to generate an edited file.

[0066] In actual applications, when the first collaborator or the second collaborator performs a click operation on the first file snapshot, the operation coordinates corresponding to the click operation of either collaborator will be obtained through the client. Then, after receiving the operation coordinates, the server determines the corresponding operated object in the file to be edited. For example, in response to the click operation, the length of service and salary range are checked, and the checked file is generated.

[0067] It should be noted that in addition to click operations, the operation content can also be other non-input operations, such as sliding operations, page turning operations, cutting operations, etc. These operations can lock the corresponding operated object through the operation coordinates, and then perform the corresponding operation in combination with the operation type supported by the operated object. Of course, due to different operation contents, the corresponding editing type is also different, that is, the corresponding editing is performed according to the actual operation content.

[0068] In one or more embodiments of the present application, performing an editing operation on the file to be edited according to the operation content to generate an edited file includes: if the operation content is an input operation, determining the operation coordinates and input content corresponding to the input operation; determining the corresponding operated object in the file to be edited based on the operation coordinates; and editing the operated object based on the input content to generate an edited file.

[0069] As mentioned above, since the collaborator performs related editing operations based on the file snapshot, the collaborator cannot directly operate the file to be edited, but needs the server to complete it. Specifically, after receiving the input operation of the collaborator (the collaborator mentioned here can be understood as at least one of the first collaborator and the second collaborator), the operation coordinates and input content are determined.

[0070] Furthermore, the corresponding operated object can be determined based on the operation coordinates. It is necessary to determine whether the operated object allows content input. If content input is not allowed, no editing operation will be performed on the operated object. If content input is allowed, the input content is further obtained, and the operated object is edited according to the input content. For example, if the operation coordinates correspond to a blank space where a name needs to be filled in, the blank space in the edited file is edited according to the content input by the first collaborative party (for example, name). For another example, if the operation coordinates correspond to a salary range that needs to be checked, even if the first collaborative party enters content in the check box, the server will not edit it, or prompt the first collaborative party that it cannot be edited.

[0071] In one or more embodiments of the present application, synchronizing the second file snapshot of the edited file to the first collaborator and the second collaborator includes: synchronizing the second file snapshot of the edited file to the first collaborator and the second collaborator according to a preset snapshot update cycle.

[0072] In actual applications, file snapshots are updated according to a certain update cycle. It should be noted that when setting the update cycle, it can be set in combination with the current network quality. If the network quality is good, the update cycle can be increased, such as 1 millisecond. If the network quality is not good, it can be delayed to 5 milliseconds. Of course, the network quality can also be monitored, and the update cycle can be dynamically adjusted according to the monitoring results. For example, if the network quality is good, the update cycle is adjusted to 1 millisecond. If the network quality is not good, the update cycle is adjusted to 5 milliseconds. However, it is necessary to ensure that the normal viewing and use of the collaborators are not affected. According to the update cycle, the newly generated second file snapshot is synchronized to the first collaborator and the second collaborator.

[0073] In addition, if the input duration of the input content is greater than the update period of the second snapshot file, a plurality of continuous second file snapshots are generated based on the input content according to the snapshot update period, and the plurality of continuous second file snapshots are synchronized to the first collaborator and the second collaborator.

[0074] In actual applications, sometimes the first or second collaborator continuously inputs a lot of content, which may last for 3 or 5 seconds. In this case, it is necessary to divide the content into multiple frames and synchronize them to the first and second collaborators. When splitting multiple frames, you can split them according to the preset update cycle. For example, if the preset update cycle is 1 millisecond and the continuous input time is 3 seconds, you can split them into 3000 frames. When generating multiple consecutive frames, you must synchronize them to the first and second collaborators in strict chronological order.

[0075] In one or more embodiments of the present application, after determining the corresponding operated object in the file to be edited based on the operation coordinates, it also includes: determining whether the first collaborator or the second collaborator who initiated the operation content has the authority to perform the operation on the operated object; if not, do not respond to the operation content. If yes, execute the relevant operation content.

[0076] In actual applications, some content in the file to be edited needs to be completed by a designated collaborator, such as the customer signature, which must be completed by the first collaborator, and the second collaborator is not allowed to complete it on behalf of the first collaborator. Therefore, when the second collaborator performs any operation at the signature position of the first collaborator, the server will not respond to the operation content because it does not have the operation authority. Only the first collaborator is allowed to operate at the signature position. By limiting the operation authority, it can ensure that there will be no incorrect editing during the multi-party collaboration process.

[0077] Based on the above embodiment, after the first collaborator and the second collaborator complete the authentication with the server, they will simultaneously establish a connection relationship with the server, so that they can receive the snapshot file synchronized by the server in real time. Specifically, the server will generate a first file snapshot for the file to be edited, and synchronize the first file snapshot to the first collaborator and the second collaborator at the same time. Then, the first collaborator and the second collaborator can perform related operations based on the current first file snapshot, and send the operation content to the server, and then the server responds to the received operation content and performs operation editing on the file to be edited to generate an edited file. The second file snapshot generated based on the edited file is synchronized to the first collaborator and the second collaborator. Through the above scheme, by generating a file snapshot and synchronizing it to multiple collaborators, and the collaborators can also perform related file editing operations based on the snapshot file, it is possible to implement collaborative editing operations under conditions with low network quality requirements, while meeting basic editing needs and improving collaborative editing efficiency.

[0078] Based on the same idea, the embodiment of the present application also provides a collaborative editing device, the execution subject of which can be a client serving drivers. Figure 3 A schematic diagram of the structure of a collaborative editing device provided in an embodiment of the present application. Figure 3It can be seen that the device includes:

[0079] A synchronization module 31, configured to synchronize a first file snapshot of the file to be edited to the first collaboration party and the second collaboration party based on the authentication results of the first collaboration party and the second collaboration party;

[0080] A receiving module 32, configured to receive content of operations performed by the first collaborating party and / or the second collaborating party on the first file snapshot;

[0081] A generating module 33, configured to perform an editing operation on the file to be edited according to the operation content, and generate an edited file;

[0082] The synchronization module 31 is further configured to synchronize the second file snapshot of the edited file to the first collaborating party and the second collaborating party.

[0083] Optionally, the receiving module 32 is further configured to receive the operation content of the party with a higher priority on the file snapshot if the first collaborating party and the second collaborating party perform operations on the first file snapshot at the same time; or

[0084] If the first collaborator and the second collaborator perform operations on the first file snapshot at the same time, the operation contents of the first collaborator and the second collaborator on the first file snapshot are received at the same time.

[0085] Optionally, the generation module 33 is also used to determine the operation coordinates corresponding to the click operation if the operation content is a click operation; determine the corresponding operated object in the file to be edited based on the operation coordinates; and edit the operated object in response to the click operation to generate an edited file.

[0086] Optionally, the generation module 33 is also used to determine the operation coordinates and input content corresponding to the input operation if the operation content is an input operation; determine the corresponding operated object in the file to be edited based on the operation coordinates; and edit the operated object based on the input content to generate an edited file.

[0087] Optionally, the synchronization module 31 is further configured to synchronize the second file snapshot of the edited file to the first collaborating party and the second collaborating party according to a preset snapshot update cycle.

[0088] Optionally, the synchronization module 31 is also used to generate a plurality of continuous second file snapshots based on the input content according to the snapshot update period if the input duration of the input content is greater than the update period of the second snapshot file, and synchronize the plurality of continuous second file snapshots to the first collaborator and the second collaborator.

[0089] Optionally, the generating module 33 is further used to determine whether the first collaborating party or the second collaborating party that initiated the operation content has the authority to perform the operation on the operated object; if not, then the operation content is not responded to.

[0090] In one possible design, the above Figure 3 The structure of the collaborative editing device shown can be implemented as an electronic device, such as Figure 4 Shown with Figure 3 A schematic diagram of the structure of an electronic device corresponding to another collaborative editing device provided in the embodiment, the electronic device may include: a processor 41, a memory 43, the memory 43 is used to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor 41, implement the steps executed by the server in the aforementioned embodiments.

[0091] Optionally, the electronic device may further include a communication interface 44 for communicating with other devices.

[0092] In addition, an embodiment of the present invention provides a computer storage medium for storing a computer program, which enables the client to implement the above Figure 3 The collaborative editing method in the illustrated embodiment.

[0093] Based on the above embodiment, after the first collaborator and the second collaborator complete the authentication with the server, they will simultaneously establish a connection relationship with the server, so that they can receive the snapshot file synchronized by the server in real time. Specifically, the server will generate a first file snapshot for the file to be edited, and synchronize the first file snapshot to the first collaborator and the second collaborator at the same time. Then, the first collaborator and the second collaborator can perform related operations based on the current first file snapshot, and send the operation content to the server, and then the server responds to the received operation content and performs operation editing on the file to be edited to generate an edited file. The second file snapshot generated based on the edited file is synchronized to the first collaborator and the second collaborator. Through the above scheme, by generating a file snapshot and synchronizing it to multiple collaborators, and the collaborators can also perform related file editing operations based on the snapshot file, it is possible to implement collaborative editing operations under conditions with low network quality requirements, while meeting basic editing needs and improving collaborative editing efficiency.

[0094] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0095] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course can also be implemented by combining hardware and software. Based on such an understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a computer product, and the present invention can be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0096] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable resource update device to produce a machine, so that the instructions executed by the processor of the computer or other programmable resource update device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0097] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable resource update device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0098] These computer program instructions can also be loaded onto a computer or other programmable resource update device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0099] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0100] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0101] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0102] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A collaborative editing method based on snapshot synchronization, characterized in that: Applied to the server, including: Based on the authentication results of the first collaborator and the second collaborator, the first file snapshot of the file to be edited is synchronized to the first collaborator and the second collaborator and displayed, wherein the synchronization ensures that the first collaborator and the second collaborator can view the same file snapshot at the same time, and when the synchronization effect of the first collaborator and the second collaborator is not good, the faster synchronization party is delayed; Receiving the operation content of the first collaborator and / or the second collaborator on the first file snapshot, comprising: if the first collaborator and the second collaborator perform operations on the first file snapshot at the same time, receiving the operation content of the party with a higher priority on the file snapshot; or, if the first collaborator and the second collaborator perform operations on the first file snapshot at the same time, receiving the operation content of the first collaborator and the second collaborator on the first file snapshot at the same time; the operation content includes input operations and non-input operations; Performing an editing operation on the file to be edited according to the operation content to generate an edited file includes: if the operation content is an input operation, determining the operation coordinates and input content corresponding to the input operation, determining the corresponding operated object in the file to be edited based on the operation coordinates, and judging whether the operated object allows input of content, and if the input of content is allowed, obtaining the input content and performing an editing operation on the operated object of the file to be edited to generate an edited file; According to a preset snapshot update cycle, the second file snapshot of the edited file is synchronized to the first collaborator and the second collaborator, and, when the input content is continuous input content, it is divided into multiple frames of second file snapshots and synchronized to the first collaborator and the second collaborator in chronological order.

2. The method according to claim 1, characterized in that The receiving the operation content of the first collaborating party and / or the second collaborating party on the first file snapshot further includes: The operation performed by the other party on the first file snapshot cannot be terminated when receiving the operation content of the party with a higher priority on the first file snapshot, and the operation is performed by the other party after the operation performed by the party with a higher priority is completed; or, At the same time, the operation contents of the first collaborator and the second collaborator on the first file snapshot are received and edited separately and saved, and the files edited by both parties are merged.

3. The method according to claim 1, characterized in that The step of performing an editing operation on the file to be edited according to the operation content to generate an edited file includes: If the operation content is a click operation, a slide operation, a page turning operation or a cut operation, determining the operation coordinates corresponding to the click operation; Determine the corresponding operated object in the to-be-edited file based on the operation coordinates; In response to the click operation, the operated object is edited to generate an edited file.

4. The method according to claim 1, characterized in that: The step of performing an editing operation on the file to be edited according to the operation content to generate an edited file includes: If the operation content is an input operation, determining the operation coordinates and input content corresponding to the input operation; Determine the corresponding operated object in the file to be edited based on the operation coordinates; Based on the input content, the operated object is edited to generate an edited file.

5. The method according to claim 1, characterized in that The preset snapshot update cycles include: Combined with the current network quality settings, if the network quality is good, the update cycle is increased, otherwise it is delayed; or, The update cycle is dynamically adjusted based on the results of network quality monitoring.

6. The method according to claim 5, characterized in that Also includes: If the input duration of the input content is greater than the update period of the second snapshot file, a plurality of consecutive second file snapshots are generated based on the input content according to the snapshot update period, and the plurality of consecutive second file snapshots are synchronized to the first collaborator and the second collaborator.

7. The method according to claim 3 or 4, characterized in that: After determining the corresponding operated object in the to-be-edited file based on the operation coordinates, the method further includes: Determine whether the first collaborative party or the second collaborative party that initiates the operation content has the authority to perform the operation on the operated object; if not, do not respond to the operation content.

8. A collaborative editing device based on snapshot synchronization, characterized in that: Also includes: A synchronization module, for synchronizing and displaying the first file snapshot of the file to be edited to the first and second collaborative parties based on the authentication results of the first and second collaborative parties, wherein the synchronization ensures that the first and second collaborative parties can view the same file snapshot at the same time, and when the synchronization effect of the first and second collaborative parties is not good, the faster synchronization party is delayed; a receiving module, configured to receive the operation content of the first collaborator and / or the second collaborator on the first file snapshot, including: if the first collaborator and the second collaborator perform operations on the first file snapshot at the same time, receiving the operation content of the party with a higher priority on the file snapshot; or, if the first collaborator and the second collaborator perform operations on the first file snapshot at the same time, receiving the operation content of the first collaborator and the second collaborator on the first file snapshot at the same time; the operation content includes input operations and non-input operations; A generating module, configured to perform an editing operation on the file to be edited according to the operation content to generate an edited file, specifically comprising: if the operation content is an input operation, determining the operation coordinates and input content corresponding to the input operation, determining the corresponding operated object in the file to be edited based on the operation coordinates, and judging whether the operated object allows input of content, and if the input of content is allowed, obtaining the input content and performing an editing operation on the operated object of the file to be edited to generate an edited file; The synchronization module is also used to synchronize the second file snapshot of the edited file to the first collaborator and the second collaborator according to a preset snapshot update cycle, and, when the input content is continuous input content, divide the second file snapshot into multiple frames and synchronize them to the first collaborator and the second collaborator in chronological order.

9. An electronic device, characterized in that: include: A processor and a memory, wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the collaborative editing method described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by one or more processors, the one or more processors are caused to execute the collaborative editing method according to any one of claims 1 to 7.