CN109408284B - Online document recovery method and device, equipment and storage medium thereof - Google Patents

Online document recovery method and device, equipment and storage medium thereof Download PDF

Info

Publication number
CN109408284B
CN109408284B CN201811027376.6A CN201811027376A CN109408284B CN 109408284 B CN109408284 B CN 109408284B CN 201811027376 A CN201811027376 A CN 201811027376A CN 109408284 B CN109408284 B CN 109408284B
Authority
CN
China
Prior art keywords
document
identifier
online
recovery
online document
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.)
Active
Application number
CN201811027376.6A
Other languages
Chinese (zh)
Other versions
CN109408284A (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.)
Tianjin ByteDance Technology Co Ltd
Original Assignee
Tianjin ByteDance Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianjin ByteDance Technology Co Ltd filed Critical Tianjin ByteDance Technology Co Ltd
Priority to CN201811027376.6A priority Critical patent/CN109408284B/en
Publication of CN109408284A publication Critical patent/CN109408284A/en
Application granted granted Critical
Publication of CN109408284B publication Critical patent/CN109408284B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides an online document recovery method, which comprises the following steps: receiving a recovery request instruction carrying a document identifier, and inquiring a historical record of the terminal equipment according to the document identifier; displaying new document recovery prompt information corresponding to the document identification to a user; and acquiring a recovery instruction fed back by the user according to the new document recovery prompt information, and generating a new document link corresponding to the document identifier according to the local storage information so that the user accesses the recovered online document. Therefore, the document content edited online can be recovered when the document content cannot be saved in the server. The embodiment of the invention also provides an online document recovery device, electronic equipment and a non-transient storage medium.

Description

Online document recovery method and device, equipment and storage medium thereof
Technical Field
The present invention relates to the field of technologies, and in particular, to an online document recovery method, an apparatus, a device, and a storage medium.
Background
At present, more and more enterprise employees begin to use online documents, and the online documents automatically store content on a server without user operation.
In the prior art, when an unexpected situation occurs and the document content edited online cannot be stored in the server, the document content will be lost and cannot be recovered, which affects the working efficiency and may even cause irrecoverable document content loss.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, a first object of the present invention is to provide an online document recovery method, so as to recover the document contents edited online in a situation that the document contents cannot be saved in a server.
The second purpose of the invention is to provide an online document recovery device.
A third object of the invention is to propose an electronic device.
A fourth object of the invention is to propose a non-transitory storage medium.
To achieve the above object, an online document recovery method according to an embodiment of the first aspect of the present invention includes: receiving a recovery request instruction carrying a document identifier, and inquiring a history record of the terminal device according to the document identifier, wherein the history record comprises: storing the information locally; displaying new document recovery prompt information corresponding to the document identification to a user, wherein online document content in an editing state when a preset condition is met is stored in the local storage information; and acquiring a recovery instruction fed back by the user according to the new document recovery prompt information, and generating a new document link corresponding to the document identifier according to the local storage information so that the user accesses the recovered online document.
In addition, the online document recovery method of the embodiment of the invention also has the following additional technical characteristics:
optionally, when it is monitored that the online document in the editing state on the terminal device meets the preset condition, the content of the online document is stored in the terminal device.
Optionally, when it is monitored that the online document in the editing state on the terminal device meets the preset condition, the storing the content of the online document to the terminal device includes: when the code of the page where the online document is located is monitored to be faulty, storing the content of the online document to the terminal equipment; and/or when the situation that the plug-in of the browser where the online document is located is incompatible with the document is monitored, storing the content of the online document to the terminal equipment; and/or when the network connection fault is monitored, storing the online document content to the terminal equipment.
Optionally, when it is monitored that the online document in the editing state on the terminal device meets a preset server storage condition, uploading the content of the online document to a server for storage.
Optionally, the history record further includes server storage information, and the recovery instruction further includes: identifying a fault; the method further comprises the following steps: inquiring preset fault storage information, and acquiring a storage device identifier corresponding to the fault identifier; acquiring a local storage identifier according to the storage equipment identifier, and inquiring local storage information in the history record according to the document identifier; and inquiring server storage information in the history record according to the document identifier if the storage device identifier is known as a server storage identifier.
Optionally, before the displaying, to the user, new document recovery prompting information corresponding to the document identifier, the method further includes: acquiring a local saving path corresponding to the document identification in the local storage information; the generating a new document link corresponding to the document identifier according to the local storage information includes: and generating a new document link corresponding to the document identifier according to the local saving path.
An online document recovery apparatus according to a second aspect of the present invention includes: a receiving module, configured to receive a recovery request instruction carrying a document identifier, and query a history record of the terminal device according to the document identifier, where the history record includes: storing the information locally; the recovery display module is used for displaying new document recovery prompt information corresponding to the document identification to a user, wherein the local storage information stores online document content which is in an editing state when a preset condition is met; and the generating module is used for acquiring a recovery instruction fed back by the user according to the new document recovery prompt information, and generating a new document link corresponding to the document identifier according to the local storage information so that the user accesses the recovered online document.
An electronic device according to an embodiment of the third aspect of the present invention includes: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the online document recovery method as described in the foregoing method embodiments when executing the program.
A non-transitory storage medium according to a fourth embodiment of the present invention has stored thereon a computer program that, when executed by a processor, implements an online document recovery method as described in the preceding method embodiment.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
after receiving a recovery request instruction carrying a document identifier, inquiring the history record of the terminal equipment according to the document identifier, wherein the online document content in an editing state when a preset condition is met is stored, and displaying new document recovery prompt information corresponding to the document identifier to a user. And acquiring a recovery instruction fed back by the user according to the new document recovery prompt information, and generating a new document link corresponding to the document identifier according to the local storage information so that the user accesses the recovered online document. And saving the online document content which cannot be saved to the server and is in an editing state in the history of the terminal equipment, so that a user can access the restored online document through a new document link generated by the local storage information, and the restoration of the online edited document content under the condition that the online edited document content cannot be saved to the server is realized.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flowchart illustrating an online document recovery method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating querying a history record of a terminal device according to a document identifier according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an online document recovery apparatus according to an embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating a non-transitory storage medium according to an embodiment of the present invention;
fig. 5 is a schematic diagram illustrating a hardware configuration of an electronic apparatus according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
A method, an apparatus, and a storage medium according to embodiments of the present invention are described below with reference to the accompanying drawings.
As can be known from the above description of the prior art, the existing online document has no recovery mechanism, that is, when an unexpected situation occurs and the edited content cannot be saved to the server, the document content is lost. Therefore, the prior art solution cannot realize the recovery of the document content in an unexpected situation.
In the embodiment of the invention, the recovery instruction fed back by the user according to the new document recovery prompt information is obtained, and the new document link corresponding to the document identifier is generated according to the local storage information, so that the user can access the recovered online document. And saving the online document content which cannot be saved to the server and is in an editing state in the history of the terminal equipment, so that a user can access the restored online document through a new document link generated by the local storage information, and the restoration of the online edited document content under the condition that the online edited document content cannot be saved to the server is realized.
Specifically, fig. 1 is a flowchart illustrating an online document recovery method according to an embodiment of the present invention, where the method provided by this embodiment may be executed by a browser or other application program for editing an online document. The application program for executing the method provided in this embodiment may be run on a PC (Personal Computer), and those skilled in the art will know that the PC is only one possible implementation manner, and the application program is also applicable to other electronic devices, such as: mobile phones, smart phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), navigation devices, in-vehicle electronic apparatuses, in-vehicle display electronics, in-vehicle electronic rear view mirrors, and the like, as well as stationary electronic apparatuses such as digital TVs, and the like.
As shown in fig. 1, the online document recovery method includes:
s101, receiving a recovery request instruction carrying a document identifier, and inquiring the history record of the terminal equipment according to the document identifier.
Wherein the history record comprises: the information is stored locally.
Specifically, the document identifier is unique, and may be a document name, a document number, a document hash value, a result of an operation on a document by another function, and the like.
It should be particularly noted that, in different application scenarios, the receiving of the recovery request instruction carrying the document identifier may be in various forms, which are exemplified as follows:
a first possible implementation is that a click command for a specific function key is received at a browser or other application program interface displaying the content of the online document.
A second possible implementation manner is that the voice input module of the terminal device receives a voice instruction to recover the content of the online document, such as "recover document XX", where XX is the identifier of the document.
A third possible implementation is that code instructions or specific text instructions are received in the online document content at a browser or other application interface that displays the online document content.
A fourth possible implementation manner is that a preset combination key instruction input by a keyboard is received in a browser or other application program interface displaying online document content.
A fifth possible implementation manner is that a preset track instruction of a mouse or a touch pad or a touch screen is received at a browser or other application program interface displaying online document content.
A sixth possible implementation is that a preset recovery instruction "recovery XX" is received in the system command execution program, where XX is the identification of the document.
In addition to the above expression forms, the recovery request instruction carrying the document identifier may also be a combination of the above forms, which is not limited in this embodiment.
It should be understood that there are many possible ways for the history of the terminal device to be stored, such as the storage time of the online document content, the operation user when the online document content is stored, the size of the storage space occupied by the online document content, the storage path of the online document content, and the like, and may also be a combination of the above forms, which is not limited in this embodiment. The local storage information is history records corresponding to the online document contents stored in the terminal equipment.
It is emphasized that the online document content on the terminal device may be saved to the terminal device or uploaded to the server for saving in different situations.
One possible situation is that when it is monitored that the online document in the editing state on the terminal device meets the preset server storage condition, the content of the online document is uploaded to the server for storage. The preset server storage condition may be that a time interval from last storage reaches a preset threshold, a change between the content of the online document and the last stored content reaches the preset threshold, and an instruction to store the content to the server is received.
Another possible situation is that when it is monitored that the online document in the editing state on the terminal device meets the preset condition, the content of the online document is stored in the terminal device. Wherein the preset conditions include, but are not limited to, the following conditions:
in the first situation, when the code of the page where the online document is located is monitored to be faulty, the content of the online document is stored in the terminal equipment.
And in the second situation, when the situation that the plug-in of the browser where the online document is located is incompatible with the document is monitored, the content of the online document is stored in the terminal equipment.
And in the third situation, when the network connection fault is monitored, storing the content of the online document to the terminal equipment.
And in the fourth situation, when the server is monitored to have no response, the content of the online document is stored in the terminal equipment.
In addition to the above cases, the above cases may be combined, which is not limited in this embodiment.
In another possible case, when it is monitored that the terminal device fails, but the online document in the edited state on the terminal device still meets the preset server storage condition, the content of the online document is uploaded to the server for storage. The types of the faults may be incomplete page loading, messy code appearing on the page, forced exit of the current program, and the like.
It should be understood that the history in S101 may further include server storage information, and the corresponding history is local storage information and server storage information for the online document contents saved to the terminal device and uploaded to the server for saving, respectively.
From the above description of online document content saving and history, it can be known that, when a terminal device fails, the online document content may be saved in the terminal device or uploaded to a server for saving according to the type of the failure. In order to determine whether the history record corresponding to the document identifier is the locally stored information or the server stored information, a possible implementation manner is that a failure identifier is further included in the recovery request instruction. It should be understood that the fault identifier is automatically generated when the terminal device fails, and corresponds to the online document content and the document identifier, and for the online document content without faults in the online editing process, no corresponding fault identifier exists.
Fig. 2 is a schematic flowchart of a process of querying a history record of a terminal device according to a document identifier according to an embodiment of the present invention, and as shown in fig. 2, based on the method flow shown in fig. 1, the substep of querying the history record of the terminal device according to the document identifier in S101 specifically includes:
s201, inquiring preset fault storage information, and acquiring a storage device identifier corresponding to the fault identifier.
Specifically, the preset fault storage information includes a corresponding relationship between a fault identifier and a storage device identifier, the fault identifier is automatically generated according to a fault type when it is monitored that the terminal device has a fault, and the fault identifier can be divided into two categories, namely a local storage identifier and a server storage identifier.
Further, the local storage identifier can be subdivided according to the fault type corresponding to the fault identifier, and the fault identifier is refined according to the fault types such as page code fault, plug-in incompatibility, network connection fault, no response of the server and the like.
It should be noted that the refined fault identifier may correspond to different local save paths. It should be understood that online document contents locally stored for different fault types may be stored in different local storage paths, and the fault types that frequently occur in the terminal device may be known by counting the number of the online document contents in different paths, so as to remind the user to repair the fault in time.
Similarly, the server storage identifier may also be subdivided according to the fault type corresponding to the fault identifier, which is not described herein again.
S202, according to the storage device identification, the local storage identification is obtained, and then according to the document identification, the local storage information in the history record is inquired.
S203, acquiring the server storage identifier according to the storage device identifier, and inquiring server storage information in the history record according to the document identifier.
In order to more clearly and clearly illustrate the process of querying the history of the terminal device according to the document identification, the following example is provided:
in the first case, the user edits the online document in the browser, and the browser is suddenly forced to exit, but the failure does not affect the uploading of the online document content to the server for saving. And the user opens the browser next time, inputs a recovery request instruction, determines that the online document content is uploaded to the server according to the fault identification, further inquires server storage information in the history record according to the document identification, and finds a storage path of the online document content under a forced quit fault storage path of the server.
In the second situation, the user edits the online document in the browser, a network connection fault occurs, the content of the online document cannot be uploaded to the server for storage, and the content of the online document is stored in the terminal device. And further, according to the file identification, inquiring local storage information in the history record, and finding out a storage path of the online file content from a local network connection fault storage path.
And S102, displaying the new document recovery prompt information corresponding to the document identification to the user.
The online document content in an editing state when the preset condition is met is stored in the local storage information.
It should be understood that if a case where a preset condition is satisfied has previously occurred, the content of the online document that is being edited at that time is saved to the terminal device, and in order to prompt the user to restore the content of the online document saved in the terminal device, restoration prompt information for a new document is displayed to the user.
S103, acquiring a recovery instruction fed back by the user according to the new document recovery prompt information, and generating a new document link corresponding to the document identifier according to the local storage information, so that the user accesses the recovered online document.
Wherein, the recovery instruction needs to match with the way of displaying the new document recovery prompting information corresponding to the document identification to the user in S102.
It should be noted that the new document recovery prompt information corresponding to the document identifier is displayed to the user, and the display mode may be a pop-up window, a dialog box, a voice, a picture, an animation, or a combination of the foregoing forms, which is not limited in this embodiment.
The first possible implementation manner is to pop up a popup window, provide a preview of the online document content of the local history version in the popup window, ask the user whether to restore the local history version to the new document, and then the fed back recovery instruction is a click operation of a button in the popup window to restore the new document.
A second possible implementation is to pop up a dialog box, and ask the user in the dialog box whether to restore the local history version to the new document, and the returned restoration instruction is a click operation of the confirmation button in the dialog box.
A third possible implementation is to ask the user whether to restore the local history version to the new document by voice, and the returned restoration instruction is a voice instruction agreeing to restoration.
A fourth possible implementation manner is to pop up a picture or animation, and ask the user whether to restore the local history version to the new document by displaying the picture or animation representing the return to the history version, and the returned restoration instruction is an operation instruction for the picture or animation representing the approval of restoration.
It is emphasized that there are many ways to generate a new document link corresponding to a document identification by locally storing information. One possible implementation manner is that before the new document recovery prompting information corresponding to the document identifier is displayed to the user, a local saving path corresponding to the document identifier is acquired from the local storage information, and a new document link corresponding to the document identifier is generated according to the local saving path. Another possible implementation manner is that before displaying the new document recovery prompt information corresponding to the document identifier to the user, compressed data of online document content corresponding to the document identifier is acquired from the local storage information, the compressed data is decompressed into a temporary document, and a new document link corresponding to the document identifier is generated according to the temporary document.
It should be understood that there are various ways for displaying the new document link to the user, which may be a dialog box, an email, a short message, an IM (Instant Messaging) message, or a combination of the above ways, and this is not limited in this embodiment.
It is emphasized that the restored online document may overlay the current online document in the edited state, and may also be generated as a separate document that coexists with the current online document in the edited state.
In summary, the online document recovery method provided in the embodiments of the present invention receives a recovery request instruction carrying a document identifier, queries a history record of a terminal device according to the document identifier, and displays a new document recovery prompt message corresponding to the document identifier to a user. And acquiring a recovery instruction fed back by the user according to the new document recovery prompt information, and generating a new document link corresponding to the document identifier according to the local storage information so that the user accesses the recovered online document. Therefore, the document content edited online can be recovered when the document content cannot be saved in the server.
In order to implement the foregoing embodiment, an embodiment of the present invention further provides an online document recovery apparatus, and fig. 3 is a schematic structural diagram of the online document recovery apparatus provided in the embodiment of the present invention, as shown in fig. 3, the online document recovery apparatus includes: the receiving module 110, the recovering display module 120 and the generating module 130.
A receiving module 110, configured to receive a recovery request instruction carrying a document identifier, and query a history record of a terminal device according to the document identifier, where the history record includes: the information is stored locally.
And a restoring display module 120, configured to display, to the user, new document restoring prompt information corresponding to the document identifier, where the online document content in an edited state when a preset condition is met is stored in the local storage information.
The generating module 130 is configured to obtain a recovery instruction fed back by the user according to the new document recovery prompt information, and generate a new document link corresponding to the document identifier according to the local storage information, so that the user accesses the recovered online document.
It should be noted that the foregoing explanation on the embodiment of the online document recovery method is also applicable to the online document recovery apparatus of this embodiment, and details are not repeated here.
In summary, the online document recovery apparatus provided in the embodiment of the present invention receives a recovery request instruction carrying a document identifier, queries a history record of a terminal device according to the document identifier, and displays a new document recovery prompt message corresponding to the document identifier to a user. And acquiring a recovery instruction fed back by the user according to the new document recovery prompt information, and generating a new document link corresponding to the document identifier according to the local storage information so that the user accesses the recovered online document. Therefore, the document content edited online can be recovered when the document content cannot be saved in the server.
In order to implement the above embodiments, the present invention further proposes a non-transitory storage medium, on which a computer program is stored, which when executed by a processor implements the online document recovery method according to the foregoing method embodiments.
FIG. 4 is a schematic diagram illustrating a non-transitory storage medium according to an embodiment of the present invention. As shown in fig. 4, a non-transitory storage medium 300, in accordance with an embodiment of the present invention, has non-transitory computer readable instructions 301 stored thereon. The non-transitory computer readable instructions 301, when executed by a processor, perform all or a portion of the steps of the online document retrieval method of embodiments of the invention described above.
In order to implement the foregoing embodiment, an embodiment of the present invention further provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the online document recovery method as described in the foregoing method embodiments when executing the program.
Fig. 5 is a schematic diagram illustrating a hardware configuration of an electronic apparatus according to an embodiment of the present invention. The electronic device may be implemented in various forms, and the electronic device in the present invention may include, but is not limited to, mobile electronic devices such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet), a PMP (portable multimedia player), a navigation apparatus, an in-vehicle electronic device, an in-vehicle display electronic, an in-vehicle electronic rear view mirror, and the like, and fixed electronic devices such as a digital TV, a desktop computer, and the like.
As shown in fig. 5, the electronic device 1100 may include a wireless communication unit 1110, an a/V (audio/video) input unit 1120, a user input unit 1130, a sensing unit 1140, an output unit 1150, a memory 1160, an interface unit 1170, a controller 1180, a power supply unit 1190, and the like. Fig. 5 shows an electronic device having various components, but it is understood that not all of the illustrated components are required to be implemented. More or fewer components may alternatively be implemented.
The wireless communication unit 1110 allows radio communication between the electronic apparatus 1100 and a wireless communication system or a network, among others. The a/V input unit 1120 is for receiving an audio or video signal. The user input unit 1130 may generate key input data to control various operations of the electronic apparatus according to a command input by a user. The sensing unit 1140 detects a current state of the electronic device 1100, a position of the electronic device 1100, presence or absence of a touch input by a user to the electronic device 1100, an orientation of the electronic device 1100, acceleration or deceleration movement and direction of the electronic device 1100, and the like, and generates a command or signal for controlling an operation of the electronic device 1100. The interface unit 1170 serves as an interface through which at least one external device is connected to the electronic apparatus 1100. The output unit 1150 is configured to provide output signals in a visual, audio, and/or tactile manner. The memory 1160 may store software programs and the like for processing and controlling operations performed by the controller 1180, or may temporarily store data that has been output or is to be output. Memory 1160 may include at least one type of storage media. Also, the electronic apparatus 1100 may cooperate with network storage that performs storage functions of the memory 1160 via a network connection. The controller 1180 generally controls the overall operation of the electronic device. In addition, the controller 1180 may include a multimedia module for reproducing or playing back multimedia data. The controller 1180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image. The power supply unit 1190 receives external power or internal power and provides appropriate power required to operate the various elements and components under the control of the controller 1180.
Various embodiments of the online document recovery method proposed by the present invention may be implemented using a computer-readable medium such as computer software, hardware, or any combination thereof. For a hardware implementation, various embodiments of the online document recovery method proposed by the present invention may be implemented by using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, an electronic unit designed to perform the functions described herein, and in some cases, various embodiments of the online document recovery method proposed by the present invention may be implemented in the controller 1180. For software implementation, various embodiments of the online document recovery method proposed by the present invention may be implemented with a separate software module that allows at least one function or operation to be performed. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in memory 1160 and executed by controller 1180.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding, the above technical solutions may be embodied in the form of a software product, which may be stored in a non-transitory storage medium, such as a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM), and so on, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute the method according to each embodiment or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (8)

1. An online document recovery method, applied to an application program for editing an online document, the application program running on a terminal device, the method comprising the steps of:
receiving a recovery request instruction carrying a document identifier, wherein the recovery request instruction also comprises a fault identifier;
inquiring preset fault storage information, and acquiring a storage device identifier corresponding to the fault identifier, wherein different online document contents are stored in terminal equipment or a server according to different fault types;
acquiring a local storage identifier according to the storage equipment identifier, and inquiring local storage information in a historical record according to the document identifier;
acquiring a server storage identifier according to the storage equipment identifier, and inquiring server storage information in a history record according to the document identifier;
displaying new document recovery prompt information corresponding to the document identification to a user, wherein online document content in an editing state when a preset condition is met is stored in the local storage information;
and acquiring a recovery instruction fed back by the user according to the new document recovery prompt information, and generating a new document link corresponding to the document identifier according to the local storage information or the server storage information so that the user accesses the recovered online document.
2. The method of claim 1, further comprising:
and when it is monitored that the online document in an editing state on the terminal equipment meets the preset condition, storing the content of the online document to the terminal equipment.
3. The method of claim 2, wherein when it is monitored that the online document in an editing state on a terminal device meets the preset condition, saving the content of the online document to the terminal device comprises:
when the code of the page where the online document is located is monitored to be faulty, storing the content of the online document to the terminal equipment; and/or the presence of a gas in the gas,
when the situation that the plug-in of the browser where the online document is located is incompatible with the document is monitored, storing the content of the online document to the terminal equipment; and/or the presence of a gas in the gas,
and when the network connection fault is monitored, storing the online document content to the terminal equipment.
4. The method of claim 1,
and when it is monitored that the online document in the editing state on the terminal equipment meets the preset server storage condition, uploading the content of the online document to a server for storage.
5. The method of claim 1, prior to said displaying to a user a new document recovery prompt corresponding to said document identification, further comprising:
acquiring a local saving path corresponding to the document identification in the local storage information;
the generating a new document link corresponding to the document identifier according to the local storage information includes:
and generating a new document link corresponding to the document identifier according to the local saving path.
6. An online document recovery apparatus, applied to an application program for editing an online document, the application program running on a terminal device, the apparatus comprising:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a recovery request instruction carrying a document identifier, and the recovery request instruction also comprises a fault identifier; inquiring preset fault storage information, and acquiring a storage device identifier corresponding to the fault identifier, wherein different online document contents are stored in terminal equipment or a server according to different fault types; acquiring a local storage identifier according to the storage equipment identifier, and inquiring local storage information in a historical record according to the document identifier; acquiring a server storage identifier according to the storage equipment identifier, and inquiring server storage information in a history record according to the document identifier;
the recovery display module is used for displaying new document recovery prompt information corresponding to the document identification to a user, wherein the local storage information stores online document content which is in an editing state when a preset condition is met;
and the generating module is used for acquiring a recovery instruction fed back by the user according to the new document recovery prompt information, and generating a new document link corresponding to the document identifier according to the local storage information or the server storage information so that the user accesses the recovered online document.
7. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, which when executed by the processor implements the online document recovery method as claimed in any of claims 1 to 5.
8. A non-transitory storage medium having stored thereon a computer program, wherein the program, when executed by a processor, implements the online document recovery method of any of claims 1-5.
CN201811027376.6A 2018-09-04 2018-09-04 Online document recovery method and device, equipment and storage medium thereof Active CN109408284B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811027376.6A CN109408284B (en) 2018-09-04 2018-09-04 Online document recovery method and device, equipment and storage medium thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811027376.6A CN109408284B (en) 2018-09-04 2018-09-04 Online document recovery method and device, equipment and storage medium thereof

Publications (2)

Publication Number Publication Date
CN109408284A CN109408284A (en) 2019-03-01
CN109408284B true CN109408284B (en) 2020-11-20

Family

ID=65463852

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811027376.6A Active CN109408284B (en) 2018-09-04 2018-09-04 Online document recovery method and device, equipment and storage medium thereof

Country Status (1)

Country Link
CN (1) CN109408284B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110569492A (en) * 2019-09-09 2019-12-13 中国工商银行股份有限公司 Online document generation method with attachment and server
CN110968994B (en) * 2019-10-20 2024-02-27 武汉烽火信息集成技术有限公司 Document online editing method and server
CN112835849A (en) * 2021-02-01 2021-05-25 读书郎教育科技有限公司 Method for rapidly and greatly reducing volume of design document
CN113392070B (en) * 2021-07-07 2024-05-14 百果园技术(新加坡)有限公司 Online document management method, device, system, equipment and storage medium
CN114791996B (en) * 2022-04-15 2023-06-23 北京百度网讯科技有限公司 Information processing method, device, system, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106970858A (en) * 2017-03-09 2017-07-21 浙江中诚工程管理科技有限公司 A kind of project management information backup method and system
CN107391768A (en) * 2017-09-12 2017-11-24 广州酷狗计算机科技有限公司 Web data processing method, device, equipment and computer-readable recording medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102693399B (en) * 2012-05-18 2015-05-27 朱晓阳 System and method for on-line separation and recovery of electronic documents

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106970858A (en) * 2017-03-09 2017-07-21 浙江中诚工程管理科技有限公司 A kind of project management information backup method and system
CN107391768A (en) * 2017-09-12 2017-11-24 广州酷狗计算机科技有限公司 Web data processing method, device, equipment and computer-readable recording medium

Also Published As

Publication number Publication date
CN109408284A (en) 2019-03-01

Similar Documents

Publication Publication Date Title
CN109408284B (en) Online document recovery method and device, equipment and storage medium thereof
CN109600672B (en) Video content pushing method and device
CN103853548A (en) Method and system for deep links in application contexts
CN108595919B (en) Software activation method, device, system and storage medium
CN106126397A (en) The processing method of program crashing message and system
CN112286485B (en) Method and device for controlling application through voice, electronic equipment and storage medium
CN110162353B (en) Multi-page switching method and equipment, storage medium and terminal
CN103617154A (en) Method and device for having control over content paste operation
CN105354097A (en) Data operation method and device based on clipboard and electronic equipment
CN113110829B (en) Multi-UI component library data processing method and device
CN113094143A (en) Cross-application message sending method and device, electronic equipment and readable storage medium
CN106776908B (en) Data cleaning method and device and terminal
CN113992615B (en) Method and device for displaying withdrawal message, electronic equipment and storage medium
CN112422735B (en) Information prompting method and device
CN115858049B (en) RPA flow componentization arrangement method, device, equipment and medium
CN108920241B (en) Display state adjusting method, device and equipment
CN105446835A (en) Method and device for repairing system file
US11662886B2 (en) System and method for directly sending messages with minimal user input
CN113076262B (en) Webpage automatic testing method and device
CN113779934B (en) Multi-mode information extraction method, device, equipment and computer readable storage medium
CN108647197B (en) Information processing method, device and storage medium
CN110866203B (en) Page jump method, device, equipment and computer readable storage medium
CN110471793B (en) Data backup method, data recovery method, first terminal and second terminal
CN110895592B (en) Link starting method, device, equipment and medium on mobile terminal
CN112328141A (en) Copying method and device

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