CN111241792A - Document online editing method and device and terminal equipment - Google Patents

Document online editing method and device and terminal equipment Download PDF

Info

Publication number
CN111241792A
CN111241792A CN202010061473.8A CN202010061473A CN111241792A CN 111241792 A CN111241792 A CN 111241792A CN 202010061473 A CN202010061473 A CN 202010061473A CN 111241792 A CN111241792 A CN 111241792A
Authority
CN
China
Prior art keywords
editing
user
document
verification message
ith
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010061473.8A
Other languages
Chinese (zh)
Other versions
CN111241792B (en
Inventor
龚敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010061473.8A priority Critical patent/CN111241792B/en
Publication of CN111241792A publication Critical patent/CN111241792A/en
Application granted granted Critical
Publication of CN111241792B publication Critical patent/CN111241792B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/101Collaborative creation, e.g. joint development of products or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices

Abstract

The invention is suitable for the technical field of document data processing, and provides a document online editing method, a device and terminal equipment, wherein the method comprises the steps of receiving a document editing request based on a target document sent by an ith user; if the target document is in an editable state, sending an editing verification message to the ith user and starting editing permission, wherein the editing verification message comprises a random identification code and an effective editing time period; and receiving a document saving request of the ith user, and saving the document contents edited by the ith user in the editing time period and provided with the random identification code. The invention can simplify the business processing items of the server and prevent the document contents edited by the user from losing due to the conflict generated when the items are processed by the server.

Description

Document online editing method and device and terminal equipment
Technical Field
The invention relates to the technical field of document data processing, in particular to a method and a device for online editing of a document and terminal equipment.
Background
In the field of document editing, multiple persons are often required to edit the same document at the same time, each person edits one part of the document, and finally each part of edited content is combined into one document. When multiple persons edit the same document in parallel, the modification of the document by one user can be seen by other persons in real time, and after the document is edited for multiple times, the interface contents seen by all the users are consistent.
However, when a plurality of users edit the same document at the same time, the server needs to process a plurality of change items, and the change items are likely to conflict with each other, so that a document editing error occurs, for example, if only one user's modification is saved, and the modification of other users is lost.
Disclosure of Invention
The invention mainly aims to provide a method, a device and a terminal device for editing a document online, so as to solve the problem that in the document online editing process in the prior art, conflicts are easily generated among all matters processed by a server, and the document is not successfully stored.
In order to achieve the above object, a first aspect of the embodiments of the present invention provides a method for editing a document online, including:
receiving a document editing request based on a target document sent by an ith user, wherein i is a positive integer;
if the target document is in an editable state, sending an editing verification message to the ith user and starting editing permission, wherein the editing verification message comprises a random identification code and an effective editing time period;
and receiving a document saving request of the ith user, and saving the document content edited by the ith user with the random identification code in the editing time period.
With reference to the first aspect of the present invention, in the first implementation manner of the present invention, after receiving the document editing request sent by the ith user, the method includes:
acquiring an effective editing time period of an i-1 th user;
and analyzing the state of the target document when the ith user sends the document editing request according to the effective editing time period of the (i-1) th user.
With reference to the first aspect of the present invention, in a second embodiment of the present invention, the method further includes:
receiving a document editing request sent by an (i + 1) th user;
if the (i + 1) th user and the ith user are the same user, verifying whether the editing verification message of the current user is valid, and opening the editing authority to the current user when the editing verification message of the current user is valid;
and if the (i + 1) th user and the (i) th user are different users, opening an editing authority to the (i + 1) th user when the target document is in an editable state.
With reference to the second embodiment of the first aspect of the present invention, in a third embodiment of the present invention, the method further includes:
if the (i + 1) th user and the ith user are the same user, verifying whether the editing verification message of the current user is valid, and notifying the current user to send a new document editing request when the editing verification message of the current user is invalid;
a new document editing request of a current user is received and processed.
With reference to the third implementation manner of the first aspect of the present invention, in a fourth implementation manner of the present invention, the verifying whether the edit verification message of the current user is valid includes:
acquiring an effective editing time period in an editing verification message of a current user;
detecting whether the current time is within the valid editing period;
if yes, the editing verification message of the current user is valid; and if not, the editing verification message of the current user is invalid.
With reference to the second implementation manner of the first aspect of the present invention, in a fifth implementation manner of the present invention, after receiving the document editing request sent by the (i + 1) th user, the method further includes:
acquiring request time of a document editing request sent by an (i + 1) th user;
calling a historical editing verification message which is adjacent to the request time and is sent to the (i + 1) th user, and sending the historical editing verification message to the ith user;
and identifying the user identity of the (i + 1) th user according to the historical editing verification message sent to the (i + 1) th user and the historical editing verification message sent to the ith user.
With reference to the first aspect of the present invention, in a sixth embodiment of the present invention, the method further includes:
if the target document is in an editing state, locking the editing authority of the ith user and receiving a reserved editing request sent by the ith user;
and sending a reserved editing verification message to the ith user, wherein the reserved editing verification message comprises a reserved identification code and a reserved editing time period.
A second aspect of the embodiments of the present invention provides an online document editing apparatus, including:
the document editing request receiving module is used for receiving a document editing request which is sent by the ith user and is based on a target document, wherein i is a positive integer;
the editing verification module is used for sending an editing verification message to the ith user and opening editing authority if the target document is in an editable state, wherein the editing verification message comprises a random identification code and an effective editing time period;
and the document storage module is used for receiving a document storage request of the ith user and storing the document content edited by the ith user with the random identification code in the editing time period.
A third aspect of embodiments of the present invention provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method provided in the first aspect when executing the computer program.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the method as provided in the first aspect above.
The embodiment of the invention provides a document online editing method, which is characterized in that after a document editing request sent by a user is received, an editing authority is opened to the user when a target document is in an editable state, and an editing verification message is sent to the user at the same time, so that the user can edit in an effective editing period. When one user requests to edit the document successfully, the target document is in the editing state, other users send document editing requests to the server at the moment, the server does not open editing authority to the server, and the user with the random identification code is not subjected to the fact that other users cannot obtain the editing authority when editing the document in the effective editing time period acquired by the user, so that the same document is prevented from being edited by multiple users at the same time, service processing items of the server are simplified, and the document content edited by the user is prevented from being lost.
Drawings
FIG. 1 is a schematic diagram illustrating an implementation flow of a document online editing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating an implementation flow of another document online editing method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating an implementation of a further method for online editing of a document according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a document online editing apparatus according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Suffixes such as "module", "part", or "unit" used to denote elements are used herein only for the convenience of description of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
As shown in fig. 1, an embodiment of the present invention provides a document online editing method, including but not limited to the following steps:
s101, receiving a document editing request based on a target document sent by an ith user;
i is a positive integer.
In the above step S101, the server may receive document editing requests sent by a plurality of users, indicating that editing of the target document is requested, within a preset time period. The server may arrange the users in order according to the time at which the users send the document editing requests and process the document editing requests of the users in order.
In a particular application, the target document may be a document stored on a server, which is attributed to a plurality of users, who initiate a document editing request based on the target document only if they have rights.
And S102, if the target document is in an editable state, sending an editing verification message to the ith user and starting editing permission, wherein the editing verification message comprises a random identification code and an effective editing time period.
In the above step S102, the ith user can edit the target document in the valid editing period. If the ith user does not finish editing the target document in the effective editing time period, the document editing request is sent again in the effective editing time period, so that the server directly sends a new editing verification message to the ith user, namely the new effective editing time period.
It is conceivable that, if there is an i +1 th user, and a request is sent to the server before the time when the i-th user sends out a document editing request again in the effective editing period, the request of the i +1 th user is processed first.
In a specific application, if i is a positive integer greater than 1, the ith user includes at least one user before, and when the service receives a document editing request based on the same target document sent by the ith user, the target document may be in an editable state or an in-editing state, that is, an uneditable state.
In the embodiment of the invention, only the editing authority of the ith user is opened when the target is in an editable state, so that the ith user can edit the target document.
In a specific application, the server further sends an editing verification message to the ith user, wherein the editing verification message is used for verifying the authority of the user for editing the target document and comprises a random identification code and an effective editing time period, the random identification code is a unique identification code respectively stored in the server and the terminal of the ith user, and if the target document is in an editable state, but other users do not have the random identification codes, other users cannot edit the document. The valid editing time period not only represents the time period in which the ith user can edit, but also can determine whether the current user should have the document editing right by verifying whether the random identification code held by the current user corresponds to the current editing time period. For example: the random identification code of the user a is 11, the effective editing time period is [7,11], the random identification code of the user B is 12, and the effective editing time period is [12,14], so that the user C cannot edit within the time period of [7,11] even if the user C acquires the random identification code of the user B.
In practical application, the edit verification message may be generated by a token parameter, and the process may be as follows:
① generating random numbers as random identification codes or random identification codes according to current user information;
②, before feeding back the edit verification message to the user, obtaining and saving the current user information, the token information related to the current user (including token, token generation time, and token validity period), and then generating a valid edit period with the token information related to the current user.
In the embodiment of the present invention, the step of how to judge the state of the target document is further shown, which comprises, after the above step S101 and before the step S102:
acquiring an effective editing time period of an i-1 th user;
and analyzing the state of the target document when the ith user sends the document editing request according to the effective editing time period of the (i-1) th user.
In a specific application, if the time when the ith user sends the document editing request is within the effective editing time period of the i-1 user, the target document is in an editing state;
and if the time of the document editing request sent by the ith user is out of the effective editing time period of the (i-1) th user, the target document is in an editable state.
In practical application, the value of i may also be 1, and then the effective editing time period of the i-1 st user does not exist at this time, and the target document is directly judged to be in an editable state.
S103, receiving a document storage request of the ith user, and storing the document content edited by the ith user with the random identification code in the editing time period.
In step S103, when the ith user saves the document, only the document contents edited in the effective editing time period can be saved, and the server can receive the request for saving the document in the effective editing time period.
It is conceivable that, if the target document is in the editing state, the server does not open the editing right of the ith user, thereby avoiding the situation that a plurality of users edit the document at the same time.
In specific application, when the target document is in an editing state, the server can also send the effective editing time period of the current user to the user requesting to edit the document, so that the user experience is improved.
Therefore, through the above steps S101 to S103, the server does not need to simultaneously process a plurality of change items for a long time, and particularly, when the user saves a document, a plurality of saved document requests based on the same target document are not received, thereby avoiding the problem that when a plurality of change items are processed, collision occurs between the change items, and the document content edited by the user is lost.
According to the document online editing method provided by the embodiment of the invention, after a document editing request sent by a user is received, the editing authority is opened to the user when a target document is in an editable state, and meanwhile, an editing verification message is sent to the user, so that the user can edit in an effective editing period. When one user requests to edit the document successfully, the target document is in the editing state, other users send document editing requests to the server at the moment, the server does not open editing authority to the server, and the user with the random identification code is not subjected to the fact that other users cannot obtain the editing authority when editing the document in the effective editing time period acquired by the user, so that the same document is prevented from being edited by multiple users at the same time, service processing items of the server are simplified, and the document content edited by the user is prevented from being lost.
As shown in fig. 2, an embodiment of the present invention provides another online document editing method, where in the online document editing method shown in fig. 2, a server may receive a document editing request sent by another user, and on the basis of the online document editing method shown in fig. 1, the method further includes steps S204 to S206 as follows, and it is understood that, in the embodiment of the present invention, steps S201 to S203 are the same as steps S101 to S103 in fig. 1, and are not repeated here, and steps S204 to S206 are:
and S204, receiving a document editing request sent by the (i + 1) th user.
S205, if the (i + 1) th user and the ith user are the same user, verifying whether the editing verification message of the current user is valid, and opening the editing permission to the current user when the editing verification message of the current user is valid.
In the step S205, if the i +1 th user and the ith user are the same user, two situations are included: the edit verification message is valid and the edit verification message is invalid.
In one embodiment, the above steps further include:
if the (i + 1) th user and the ith user are the same user, verifying whether the editing verification message of the current user is valid, and notifying the current user to send a new document editing request when the editing verification message of the current user is invalid;
a new document editing request of a current user is received and processed.
In a specific application, when the editing verification message of the current user is invalid, the current user sends a new document editing request, and the server directly receives the new document editing request of the current user, sends the new editing verification message to the current user and opens the editing authority of the current user.
In the embodiment of the present invention, an implementation manner of determining whether an edit verification message is valid or an edit verification message is invalid through a random identification code and a valid edit time period is further shown, where the implementation manner includes:
acquiring an effective editing time period in an editing verification message of a current user;
detecting whether the current time is within the valid editing period;
if yes, the editing verification message of the current user is valid; and if not, the editing verification message of the current user is invalid.
In a specific application, the judgment of validity or invalidity of the editing verification message is established on the basis of confirming that the ith user and the (i + 1) th user are the same user, and the ith user and the (i + 1) th user are the same user, so that the safety of the ith user and the (i + 1) th user can also be explained.
S206, if the (i + 1) th user and the (i) th user are different users, opening an editing right to the (i + 1) th user when the target document is in an editable state.
In step S206, if the (i + 1) th user and the ith user are different users, the (i + 1) th user will not be in the last valid editing time period of the (i + 1) th user when sending the document editing request.
At this time, the implementation manner of the determination target document state is the same as the implementation manner of the determination target document state described above, and is:
if the time of the document editing request sent by the (i + 1) th user is in the effective editing time period of the (i) th user, the target document is in an editing state; and if the time of the document editing request sent by the (i + 1) th user is out of the effective editing time period of the (i) th user, the target document is in an editable state.
Based on the foregoing steps S204 to S206, the embodiment of the present invention further illustrates an implementation manner of determining whether the ith user and the (i + 1) th user are the same user, where after the foregoing step S204 and before the step S205, the implementation manner further includes:
acquiring request time of a document editing request sent by an (i + 1) th user;
calling a historical editing verification message which is adjacent to the request time and is sent to the (i + 1) th user, and sending the historical editing verification message to the ith user;
and identifying the user identity of the (i + 1) th user according to the historical editing verification message sent to the (i + 1) th user and the historical editing verification message sent to the ith user.
In a specific application, the editing verification message comprises a random identification code and an effective editing time period, wherein the random identification code is used for identifying the identity of the current user and preventing the user from pretending to be other person identity to obtain the editing authority.
In the embodiment of the present invention, according to the history editing verification message sent to the (i + 1) th user and the history editing verification message sent to the ith user, not only the user identity of the (i + 1) th user can be identified, but also the user can be prevented from impersonating other users to obtain the editing right by judging whether the ith user and the (i + 1) th user are the same user.
For example: if the ith user and the (i + 1) th user are not the same user, the current user may be another person to steal the identity, and there is a risk, so in this case, the (i + 1) th user cannot acquire the editing right of the ith user in the effective editing period. And when the ith user and the (i + 1) th user are the same user, the current user does not steal the identity of others, whether the editing verification message of the current user is expired or not is verified again, and if the editing verification message is expired, the document editing request can be sent again, so that the server can directly process the new document editing request sent by the server.
In an embodiment, the above identifying the user identity of the (i + 1) th user according to the history edit verification message sent to the (i + 1) th user and the history edit verification message sent to the ith user may be:
if the random identification code in the history editing verification message of the (i + 1) th user has the same effective editing time period corresponding to the random identification code as the effective editing time period in the history editing verification message, the (i + 1) th user and the (i) th user are the same user;
if not, the (i + 1) th user and the (i) th user are different users.
As shown in fig. 3, an embodiment of the present invention further provides another document online editing method, which supplements the description on the document online editing method shown in fig. 1, and includes:
s301, receiving a document editing request based on a target document sent by an ith user, wherein i is a positive integer;
s3021, if the target document is in an editable state, sending an editing verification message to the ith user and starting editing authority, wherein the editing verification message comprises a random identification code and an effective editing time period;
and S3022, receiving a document saving request of the ith user, and saving the document content edited by the ith user with the random identification code in the editing time period.
S3031, if the target document is in an editing state, locking the editing authority of the ith user and receiving a reserved editing request sent by the ith user;
s3032, sending a reserved editing verification message to the ith user, wherein the reserved editing verification message comprises a reserved identification code and a reserved editing time period.
In the above steps S3031 and S3032, when the target document is in the editing state, the user may send a reserved editing request to the server, so as to avoid that the user continuously sends the document editing request in the effective editing period of the previous user.
In connection with the application scenario presented above: if there is an (i + 1) th user, before the time when the ith user sends out the document editing request again in the effective editing period, the request of the (i + 1) th user is processed first, and in the embodiment of the present invention, the processing of the request of the (i + 1) th user includes:
on one hand, if the document editing request of the (i + 1) th user is a reserved editing request, a reserved editing verification message is sent to the (i + 1) th user, and the reserved editing verification message comprises a reserved identification code and a reserved editing time period.
The i +1 th user sends the reserved editing request to the server before the time when the i th user sends the document editing request again in the effective editing time period, which means that the i th user sends the reserved editing request again after the i +1 th user sends the reserved editing request, and at this time, the server does not send a new editing verification message to the i th user when processing the request of the i th user.
On the other hand, if the document editing request of the (i + 1) th user is a document editing request, the editing authority of the (i + 1) th user is locked.
As shown in fig. 4, an embodiment of the present invention further provides a document online editing apparatus 40, including:
a document editing request receiving module 41, configured to receive a document editing request based on a target document sent by an ith user, where i is a positive integer.
In the document editing request receiving module 41, the server may receive document editing requests sent by a plurality of users within a preset time period, which indicates that editing of the target document is requested. The server may arrange the users in order according to the time at which the users send the document editing requests and process the document editing requests of the users in order.
In a particular application, the target document may be a document stored on a server, which is attributed to a plurality of users, who initiate a document editing request based on the target document only if they have rights.
And the editing verification module 42 is configured to send an editing verification message to the ith user and start an editing right if the target document is in an editable state, where the editing verification message includes a random identification code and a valid editing period.
In the above-mentioned editing verification module 42, if i is a positive integer greater than 1, the i-th user includes at least one user before, and when the service receives a document editing request based on the same target document sent by the i-th user, the target document may be in an editable state or an in-editing state, that is, an uneditable state.
In the embodiment of the invention, only the editing authority of the ith user is opened when the target is in an editable state, so that the ith user can edit the target document.
In a specific application, the server further sends an editing verification message to the ith user, wherein the random identification codes are unique identification codes respectively stored in the server and the terminal of the ith user, and if the target document is in an editable state, but other users do not have the random identification codes, the other users cannot edit the document. The valid editing time period not only represents the time period in which the ith user can edit, but also can determine whether the current user should have the document editing right by verifying whether the random identification code held by the current user corresponds to the current editing time period.
And the document saving module 43 is configured to receive a document saving request of the ith user, and save the document content edited by the ith user in the editing time period and having the random identification code.
In the document saving module 43, when the ith user saves the document, only the document contents edited in the effective editing time period can be saved, and the server can receive the document saving request in the effective editing time period.
It is conceivable that, if the target document is in the editing state, the server does not open the editing right of the ith user, thereby avoiding the situation that a plurality of users edit the document at the same time.
In specific application, when the target document is in an editing state, the server can also send the effective editing time period of the current user to the user requesting to edit the document, so that the user experience is improved.
Therefore, with the document online editing apparatus 40, the server does not need to process a plurality of change items simultaneously for a long time, and particularly, when the user saves a document, a plurality of saved document requests based on the same target document are not received, thereby avoiding the problem that when a plurality of change items are processed, the change items collide with each other, and the document content edited by the user is lost.
In one embodiment, edit verification module 42 is further configured to:
if the target document is in an editing state, locking the editing authority of the ith user and receiving a reserved editing request sent by the ith user;
and sending a reserved editing verification message to the ith user, wherein the reserved editing verification message comprises a reserved identification code and a reserved editing time period.
In practical applications, when the target document is in an editing state, the user may also send a reserved editing request to the server through the editing verification module 42, so as to avoid the user from continuously sending the document editing request in the effective editing period of the last user.
The embodiment of the present invention further provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, the steps in the document online editing method as described in the first embodiment are implemented.
The embodiment of the present invention further provides a storage medium, where the storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps in the document online editing method according to the first embodiment are implemented.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the foregoing embodiments illustrate the present invention in detail, those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A document online editing method is characterized by comprising the following steps:
receiving a document editing request based on a target document sent by an ith user, wherein i is a positive integer;
if the target document is in an editable state, sending an editing verification message to the ith user and starting editing permission, wherein the editing verification message comprises a random identification code and an effective editing time period;
and receiving a document saving request of the ith user, and saving the document content edited by the ith user with the random identification code in the editing time period.
2. The method for on-line editing of a document according to claim 1, wherein after receiving the document editing request sent by the ith user, the method comprises:
acquiring an effective editing time period of an i-1 th user;
and analyzing the state of the target document when the ith user sends the document editing request according to the effective editing time period of the (i-1) th user.
3. The document online editing method according to claim 1, further comprising:
receiving a document editing request sent by an (i + 1) th user;
if the (i + 1) th user and the ith user are the same user, verifying whether the editing verification message of the current user is valid, and opening the editing authority to the current user when the editing verification message of the current user is valid;
and if the (i + 1) th user and the (i) th user are different users, opening an editing authority to the (i + 1) th user when the target document is in an editable state.
4. The document online editing method according to claim 3, further comprising:
if the (i + 1) th user and the ith user are the same user, verifying whether the editing verification message of the current user is valid, and notifying the current user to send a new document editing request when the editing verification message of the current user is invalid;
a new document editing request of a current user is received and processed.
5. The document online editing method of claim 4, wherein the verifying whether the editing verification message of the current user is valid comprises:
acquiring an effective editing time period in an editing verification message of a current user;
detecting whether the current time is within the valid editing period;
if yes, the editing verification message of the current user is valid; and if not, the editing verification message of the current user is invalid.
6. The method for on-line editing of a document according to claim 3, after receiving a document editing request sent by an i +1 th user, further comprising:
acquiring request time of a document editing request sent by an (i + 1) th user;
calling a historical editing verification message which is adjacent to the request time and is sent to the (i + 1) th user, and sending the historical editing verification message to the ith user;
and identifying the user identity of the (i + 1) th user according to the historical editing verification message sent to the (i + 1) th user and the historical editing verification message sent to the ith user.
7. The document online editing method according to claim 1, further comprising:
if the target document is in an editing state, locking the editing authority of the ith user and receiving a reserved editing request sent by the ith user;
and sending a reserved editing verification message to the ith user, wherein the reserved editing verification message comprises a reserved identification code and a reserved editing time period.
8. An apparatus for online editing of a document, comprising:
the document editing request receiving module is used for receiving a document editing request which is sent by the ith user and is based on a target document, wherein i is a positive integer;
the editing verification module is used for sending an editing verification message to the ith user and opening editing authority if the target document is in an editable state, wherein the editing verification message comprises a random identification code and an effective editing time period;
and the document storage module is used for receiving a document storage request of the ith user and storing the document content edited by the ith user with the random identification code in the editing time period.
9. A terminal device, comprising a memory, a processor and a computer program stored on the memory and operable on the processor, wherein the processor executes the computer program to implement the steps of the document online editing method according to any one of claims 1 to 7.
10. A storage medium which is a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the document online editing method according to any one of claims 1 to 7.
CN202010061473.8A 2020-01-19 2020-01-19 Document online editing method and device and terminal equipment Active CN111241792B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010061473.8A CN111241792B (en) 2020-01-19 2020-01-19 Document online editing method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010061473.8A CN111241792B (en) 2020-01-19 2020-01-19 Document online editing method and device and terminal equipment

Publications (2)

Publication Number Publication Date
CN111241792A true CN111241792A (en) 2020-06-05
CN111241792B CN111241792B (en) 2023-06-09

Family

ID=70869171

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010061473.8A Active CN111241792B (en) 2020-01-19 2020-01-19 Document online editing method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN111241792B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112965946A (en) * 2021-03-31 2021-06-15 建信金融科技有限责任公司 Method, device, equipment and computer readable medium for processing document
CN114417392A (en) * 2022-04-02 2022-04-29 湖南宸瀚信息科技有限责任公司 Multiple auditing system for block chain editing permission

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070156605A1 (en) * 2005-12-21 2007-07-05 Gerrit Bleumer Method and arrangement for provision of security relevant services via a security module of a franking machine
CN102955785A (en) * 2011-08-22 2013-03-06 北大方正集团有限公司 Method and system for online editing of documents
CN106503581A (en) * 2016-10-21 2017-03-15 珠海市魅族科技有限公司 A kind of documents editing processing method and processing device
CN106844395A (en) * 2015-12-03 2017-06-13 山大鲁能信息科技有限公司 Many people's synchronization online document edit methods and device
CN108269063A (en) * 2018-01-25 2018-07-10 中国地质大学(武汉) The online synergic editing method of word document and system
CN110196971A (en) * 2019-04-23 2019-09-03 平安科技(深圳)有限公司 Online document edit methods, device, terminal device and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070156605A1 (en) * 2005-12-21 2007-07-05 Gerrit Bleumer Method and arrangement for provision of security relevant services via a security module of a franking machine
CN102955785A (en) * 2011-08-22 2013-03-06 北大方正集团有限公司 Method and system for online editing of documents
CN106844395A (en) * 2015-12-03 2017-06-13 山大鲁能信息科技有限公司 Many people's synchronization online document edit methods and device
CN106503581A (en) * 2016-10-21 2017-03-15 珠海市魅族科技有限公司 A kind of documents editing processing method and processing device
CN108269063A (en) * 2018-01-25 2018-07-10 中国地质大学(武汉) The online synergic editing method of word document and system
CN110196971A (en) * 2019-04-23 2019-09-03 平安科技(深圳)有限公司 Online document edit methods, device, terminal device and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112965946A (en) * 2021-03-31 2021-06-15 建信金融科技有限责任公司 Method, device, equipment and computer readable medium for processing document
CN114417392A (en) * 2022-04-02 2022-04-29 湖南宸瀚信息科技有限责任公司 Multiple auditing system for block chain editing permission
CN114417392B (en) * 2022-04-02 2022-06-10 湖南宸瀚科技有限公司 Multi-auditing system for block chain editing permission

Also Published As

Publication number Publication date
CN111241792B (en) 2023-06-09

Similar Documents

Publication Publication Date Title
US7546630B2 (en) Methods, systems, and media to authenticate a user
CN101601045B (en) Secure serial number
US8756704B2 (en) User impersonation and authentication
CN111343168B (en) Identity authentication method and device, computer equipment and readable storage medium
JP2009258820A (en) Account management system, account management device, and account management method
CN109005142B (en) Website security detection method, device, system, computer equipment and storage medium
CN110071806B (en) Data processing method and system based on interface verification
CN110071896B (en) Identity authentication method based on network communication and computer equipment
KR100991479B1 (en) Computer resource verifying method and computer readable recording medium having computer resource verifying program recorded
CN112532392B (en) Key processing method, device, equipment and storage medium
CN111241792A (en) Document online editing method and device and terminal equipment
CN106254528B (en) Resource downloading method and caching device
US20090210938A1 (en) Utilizing Previous Password to Determine Authenticity to Enable Speedier User Access
CN112560009A (en) Authentication method, terminal, client and computer storage medium
CN108092777B (en) Method and device for supervising digital certificate
CN113259429B (en) Session maintenance management and control method, device, computer equipment and medium
CN111294337A (en) Token-based authentication method and device
CN113868602A (en) Application authorization method, distributed cluster system, electronic device and storage medium
CN108090736B (en) Workflow approval bill-based approval method and device and readable storage medium
JP2010205021A (en) License management system, license management method and license management program
CN109711147B (en) Method, device and system for managing three rights separately of operating system and storage medium
CN110992186A (en) Account management method, system, device and storage medium
CN111385279A (en) Service access authority system and method
CN112597118B (en) Shared file adding method and device
US9998495B2 (en) Apparatus and method for verifying detection rule

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant