Information processing method, device and storage medium
By intercepting online document generation requests and generating pseudo document identifiers in offline states, the problem of inability to use online documents in the prior art is solved, and the rapid creation and information storage of online documents are realized, and the efficiency of information processing is improved.
Patent Information
- Application Number
- CN202010750655.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-30
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2040-07-30
Smart Images

Figure CN111935255B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to an information processing method, device and storage medium. Background Art
[0002] With the continuous popularization and development of terminals, users are increasingly dependent on terminals. Various applications can be installed on terminals, among which online document applications are widely used. Users can realize collaborative editing of online documents through online document applications.
[0003] In the prior art, in an offline state, users cannot enable online documents and are limited to enabling local documents for editing. During the research and practice of the prior art, the inventors of the present application found that in the prior art, in an offline state, online document applications cannot use online documents, resulting in low information processing efficiency. Summary of the invention
[0004] The embodiments of the present application provide an information processing method, device and storage medium, aiming to improve the efficiency of information processing.
[0005] To solve the above technical problems, the present application provides the following technical solutions:
[0006] An information processing method, comprising:
[0007] In an offline state, intercepting a target instruction for sending a request for generating an online document to a server;
[0008] Generate a pseudo document identifier for the target instruction, and generate and display a target online document according to the pseudo document identifier;
[0009] Receiving document information input by a user based on the target online document, and storing the document information in a preset storage location;
[0010] In a non-offline state, the intercepted target instruction and the stored document information are sent to the server together for online document synchronization.
[0011] An information processing device, comprising:
[0012] An interception unit, used for intercepting a target instruction for sending a request for generating an online document to a server in an offline state;
[0013] A generating unit, configured to generate a pseudo document identifier for the target instruction, and generate and display a target online document according to the pseudo document identifier;
[0014] A storage unit, configured to receive document information input by a user based on the target online document, and store the document information in a preset storage location;
[0015] The synchronization unit is used to send the intercepted target instruction and the stored document information to the server for online document synchronization in a non-offline state.
[0016] In some embodiments, the document information includes text information and image information, and the storage unit includes:
[0017] A receiving subunit, configured to receive text information input by a user based on the target online document;
[0018] An activation subunit, used to activate the image input control, and receive image information input by the user through the image input control;
[0019] The storage subunit is used to store the text information and image information in a preset storage location.
[0020] In some embodiments, the storage subunit is used to:
[0021] Storing the text information in a preset storage location;
[0022] Acquiring an initial storage location of the image information, and copying the image information to a preset storage location based on the initial storage location;
[0023] Retrieve the image information copied to the preset storage location for display.
[0024] In some embodiments, the storage subunit is further used for:
[0025] Storing the text information in a preset storage location;
[0026] Acquiring an initial storage location of the image information, and copying the image information to a preset storage location based on the initial storage location;
[0027] intercepting a network cache request for the image information and sending it to a cache instruction of a server;
[0028] Returning the preset storage location after the image information is copied according to the cache instruction;
[0029] The image information is loaded and displayed based on the preset storage location after the image information is copied.
[0030] In some embodiments, the synchronization unit comprises:
[0031] The acquisition subunit is used to acquire text information and image information stored in a preset storage location in a non-offline state;
[0032] A sending subunit, used for sending the text information and image information and the intercepted target instruction to the server, so that the server performs online document synchronization;
[0033] The deleting subunit is used to delete the text information and image information stored in the preset storage location when receiving the passing instruction returned by the server.
[0034] In some embodiments, the deletion subunit is used to:
[0035] When receiving a pass instruction returned by the server, replace the preset storage location for storing the image information with the network cache address of the image information returned by the server;
[0036] Delete the text information and image information stored in the preset storage location.
[0037] In some embodiments, the synchronization unit further includes a reservation subunit, configured to:
[0038] When a failure instruction returned by the server is received, the text information and image information stored in the preset storage location continue to be retained, and the step of sending the text information and image information and the intercepted target instruction to the server is returned.
[0039] In some embodiments, the processing device further comprises a replacement unit, which is used to:
[0040] In a non-offline state, detecting whether the identifier of the currently displayed target online document is a pseudo-document identifier;
[0041] When it is detected that the identifier of the currently displayed target online document is a pseudo-document identifier, a replacement instruction is generated, and the replacement instruction is sent to the server, so that the server returns the target document identifier according to the replacement instruction;
[0042] The target document identifier is received, and the pseudo document identifier is replaced by the target document identifier.
[0043] In some embodiments, the processing device further includes an offline judgment unit, which is used to:
[0044] Get the current network signal status;
[0045] When the network signal state is lower than a preset threshold, it is determined to be in an offline state;
[0046] When the network signal state is not lower than a preset threshold, it is determined to be in a non-offline state.
[0047] A storage medium stores a plurality of instructions, wherein the instructions are suitable for a processor to load to execute the steps in the above-mentioned information processing method.
[0048] The embodiment of the present application intercepts the target instruction of sending the online document generation request to the server in an offline state; generates a pseudo document identifier for the target instruction, generates and displays the target online document according to the pseudo document identifier; receives the document information input by the user based on the target online document, and stores the document information in a preset storage location; in a non-offline state, sends the intercepted online document generation request and the stored document information to the server for online document synchronization. In this way, in an offline state, the target instruction of sending the online document generation request to the server is intercepted, a pseudo document identifier is generated, the target online document is quickly created and displayed according to the pseudo document identifier, the document information input by the user is stored in a preset storage location, and in a non-offline state, the stored document information is synchronized, which greatly improves the efficiency of information processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0050] Figure 1 is a schematic diagram of a scenario of an information processing system provided by an embodiment of the present application;
[0051] Figure 2 It is a flowchart of the information processing method provided in the embodiment of the present application;
[0052] Figure 3 is another flowchart of the information processing method provided by an embodiment of the present application;
[0053] Figure 4a It is a scenario schematic diagram of the information processing method provided in the embodiment of the present application;
[0054] Figure 4b is another scenario schematic diagram of the information processing method provided in an embodiment of the present application;
[0055] Figure 4c is another scenario schematic diagram of the information processing method provided in an embodiment of the present application;
[0056] Figure 5 is a schematic diagram of the structure of an information processing device provided in an embodiment of the present application;
[0057] Figure 6 It is a schematic diagram of the structure of the terminal provided in the embodiment of the present application. DETAILED DESCRIPTION
[0058] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0059] Embodiments of the present application provide an information processing method, device, and storage medium.
[0060] See also Figure 1 , Figure 1 The scenario diagram of the information processing system provided for the embodiment of the present application includes: terminal A and a server (the processing system may also include other terminals besides terminal A, and the specific number of terminals is not limited here), terminal A and the server may be connected through a communication network, and the communication network may include a wireless network and a wired network, wherein the wireless network includes a combination of one or more of a wireless wide area network, a wireless local area network, a wireless metropolitan area network, and a wireless personal network. The network includes network entities such as routers and gateways, which are not shown in the figure. Terminal A can exchange information with the server through the communication network. For example, the terminal can send target instructions and stored document information to the server, and the server synchronizes according to the target instructions and the stored document information, and returns the instructions to terminal A.
[0061] The information processing system may include an information processing device, which may be integrated in a terminal having a storage unit and a microprocessor installed therein and having computing capabilities, such as a tablet computer, a mobile phone, a laptop computer, a desktop computer, etc. Figure 1 In the example, the terminal is Figure 1 The terminal A in the embodiment may be installed with various applications required by the user, such as an online document application with information collaborative processing. In an offline state, the terminal A intercepts a target instruction that sends a request for generating an online document to a server, generates a pseudo document identifier for the target instruction, generates and displays a target online document according to the pseudo document identifier, receives document information input by a user based on the target online document, and stores the document information in a preset storage location. In a non-offline state, the intercepted target instruction and the stored document information are sent to the server together for online document synchronization.
[0062] The information processing system may also include a server, which is mainly used to receive the target instruction and stored document information sent by terminal A, create a new online document according to the target instruction, and load the document information into the online document for synchronization, and return the instruction to terminal A when the synchronization is successful. The information processing system may also include a memory for storing the information library.
[0063] It should be noted that Figure 1 The scenario diagram of the information processing system shown is merely an example. The information processing system and scenario described in the embodiments of the present application are intended to more clearly illustrate the technical solution of the embodiments of the present application, and do not constitute a limitation on the technical solution provided in the embodiments of the present application. A person of ordinary skill in the art will appreciate that with the evolution of information processing systems and the emergence of new business scenarios, the technical solution provided in the embodiments of the present application is equally applicable to similar technical problems.
[0064] It should be noted that the serial numbers of the following embodiments are not intended to limit the preferred order of the embodiments.
[0065] Embodiment 1
[0066] In this embodiment, the description will be made from the perspective of an information processing device, which can be specifically integrated into a terminal such as a tablet computer, a mobile phone, etc. that has a storage unit and is equipped with a microprocessor and has computing capabilities.
[0067] See also Figure 2 , Figure 2 : is a flow chart of an information processing method provided in an embodiment of the present application. The information processing method includes:
[0068] In step 101, in an offline state, a target instruction for sending a request for generating an online document to a server is intercepted.
[0069] It can be understood that the embodiments of the present application are applied to an online document application, which is a terminal application that can realize collaborative editing of online documents, allowing each user to create an online document and save the online document on a server. After the online document is saved on the server, the user can open the online document on the server through the online document application from any terminal for collaborative editing. The online document application can be an email application, instant communication software, or other applications that include online document functions, and no specific restrictions are made here.
[0070] In the prior art, the online document application needs to rely on the network status and needs to interact with the server through the network. For example, when a user creates a new online document through the online document application, the terminal can send the target instruction of the online document generation request to the server, so that the server generates a corresponding cloud online document on the server side according to the online document generation request, and notifies the terminal of the successful synchronization. The terminal can load and display the new online document. In this way, in the offline state, the online document application cannot interact with the server through the network, which will cause the target instruction of the online document generation request to fail to be transmitted to the server, resulting in the failure of online document editing.
[0071] Among them, the network status of the terminal can be obtained in advance, and the network status can be a network download rate, such as KB (Kilobyte, kilobyte) per second. The higher the network download rate, the better the network status, and the lower the network download rate, the worse the network status. Whether the terminal is in an offline state is determined according to the network status. In one embodiment, a preset rate can be set, and the preset rate can be 10KB per second. The preset rate is a critical value for defining whether the terminal is in an offline state. When it is detected that the network download rate of the terminal is greater than the preset rate, it means that the current download rate meets the condition, and the terminal is determined to be in a non-offline state. When it is detected that the network download rate of the terminal is not greater than the preset efficiency, it means that the current download rate does not meet the condition, and the terminal is determined to be in an offline state.
[0072] In an embodiment of the present application, when the terminal is offline, in order to solve the above-mentioned online document editing failure, the target instruction of sending the online document generation request to the server can be directly intercepted so that the target instruction does not go through the network channel, thereby avoiding loading failure.
[0073] In step 102, a pseudo document identifier is generated for the target instruction, and a target online document is generated and displayed according to the pseudo document identifier.
[0074] It should be noted that in the prior art, after the server generates a corresponding cloud online document according to the online document generation request, in order to uniformly manage the cloud online documents in the server, the cloud online document can be marked with a target document identifier and the target document identifier can be returned to the terminal, so that the terminal can subsequently download the corresponding cloud online document from the server according to the target document identifier for display.
[0075] After the embodiment of the present application intercepts the target instruction of sending the online document generation request to the server, because it is currently in an offline state, the target document identifier returned by the server cannot be obtained, and thus the corresponding online document cannot be created according to the target document identifier. In order to overcome the above problem, after the present application intercepts the target instruction of sending the online document generation request to the server, a pseudo-document identifier for the target instruction can be generated, and the pseudo-document identifier is used as a globally unique identifier to temporarily replace the target document identifier. The pseudo-document identifier can be represented as fake_doc_id. In this way, even in an offline state, the terminal can still generate and display the target online document according to the pseudo-document identifier. The identifier of the target online document is the pseudo-document identifier, so that rendering can be performed according to the pseudo-document information without waiting for network communication, thereby realizing rapid creation of documents in an offline state, greatly improving the efficiency of information processing.
[0076] In step 103, document information input by the user based on the target online document is received, and the document information is stored in a preset storage location.
[0077] It should be noted that the document information may include text information, image information and rich text information. The terminal may receive the document information input by the user through the displayed target online document. In the prior art, when the online document receives the document information, it is necessary to send the document information to the server through the network channel in real time for synchronization. However, in the offline state, the user cannot back up through the network channel. If the user closes the online document, the information of the online document may be lost, causing great losses to the user.
[0078] In order to solve the above problem, the embodiment of the present application can pre-open a preset storage location localStorage in the local storage of the terminal. Therefore, when receiving document information input by the user based on the target online document, the network channel backup can be temporarily skipped and the document information can be stored in the preset storage location localStorage, thereby preventing the loss of document information.
[0079] In one embodiment, after the document information is stored in the preset location localStorage, if the user closes the target online document, backup information of the target online document can still be generated. When the user opens the target online document again, the last cached document information can be directly read from the storage location localStorage for display.
[0080] In some implementations, the document information includes text information and image information, and the step of receiving the document information input by the user based on the target online document and storing the document information in a preset storage location may include:
[0081] (1) receiving text information input by a user based on the target online document;
[0082] (2) activating an image input control to receive image information input by a user through the image input control;
[0083] (3) The text information and image information are stored in a preset storage location.
[0084] Among them, the text information input by the user can be received through the target online document. In the prior art, in an offline state, since the image cannot be backed up to the server, the terminal cannot provide an image insertion function. In an embodiment of the present application, the image input control can be directly activated, and the image information selected by the user can be input into the target online document through the image input control.
[0085] Furthermore, the text information and image information are directly stored in a preset storage location for temporary caching.
[0086] In some implementations, the step of storing the text information and image information in a preset storage location may include:
[0087] (1.1) storing the text information to a preset storage location;
[0088] (1.2) obtaining an initial storage location of the image information, and copying the image information to a preset storage location based on the initial storage location;
[0089] (1.3) Retrieve the image information copied to the preset storage location for display.
[0090] In the prior art, when a user inputs image information based on an online document for saving, the user first needs to upload the image information to a server, save the image information through the server, and return the network cache address where the image information is saved to the terminal. The terminal loads and displays the image information according to the network cache address. It can be seen that the image information saving function needs to be synchronized from the network channel. In an offline state, the image information saving function cannot be realized.
[0091] In order to solve the above problem, the embodiment of the present application first stores the text information directly in a preset storage location, obtains the initial storage location of the image information, copies the image information to the preset storage location based on the initial storage location, and retrieves the image information copied to the preset storage location for display, thereby avoiding the network channel, so that the image information can be displayed normally in an offline state. Moreover, because the image information is copied to the preset storage location, even if the original image information is deleted, it can be loaded into the correct resource to ensure the normal display of the offline image information.
[0092] In some implementations, the step of retrieving the image information copied to the preset storage location for display may include:
[0093] (2.1) intercepting a network cache request for the image information and sending it to a cache instruction of the server;
[0094] (2.2) returning the preset storage location after the image information is copied according to the cache instruction;
[0095] (2.3) Loading and displaying the image information based on the preset storage location after the image information is copied.
[0096] Among them, in order to avoid the failure of caching image information in an offline state, the network cache request of the image information can be directly intercepted and sent to the cache instruction of the server to avoid synchronization from the network channel, and the preset storage location after the image information is copied is returned according to the cache instruction, and the image information is directly loaded and displayed based on the preset storage location after the image information is copied. Since the preset storage location is locally stored, the image information can be displayed normally in an offline state.
[0097] In one embodiment, in an offline state, when the user subsequently opens the target online document containing image information again, since the address where the image information is stored is a local address, that is, the preset storage location after the image information is copied, the offline image information can be quickly loaded and displayed directly according to the local address of the image.
[0098] In step 104, in a non-offline state, the intercepted target instruction and the stored document information are sent to the server together for online document synchronization.
[0099] Among them, assuming that the terminal detects that it has entered a non-offline state from an offline state, the intercepted target instruction for sending the online document generation request to the server and the stored document information can be sent to the server together, so that the server generates a new cloud online document according to the target instruction, and assigns a new target document identifier to the cloud online document. The target document identifier is globally unique and is used to distinguish different cloud online documents. The document information is stored in the new cloud online document for synchronization. When the synchronization is successful, the server can return the instruction to the terminal.
[0100] Furthermore, when the terminal receives the pass instruction returned by the server, the document information of the successfully synchronized online document stored in the preset storage location may be deleted to reduce the waste of storage space.
[0101] In some implementations, the step of sending the intercepted target instruction and the stored document information to the server for online document synchronization may include:
[0102] (1) Acquiring text information and image information stored in a preset storage location;
[0103] (2) sending the text information and image information and the intercepted target command to the server so that the server performs online document synchronization;
[0104] (3) When a pass instruction is received from the server, the text information and image information stored in the preset storage location are deleted.
[0105] Among them, the terminal can obtain text information and image information stored in a preset storage location, and send the text information and image information together with the intercepted target instruction to the server, so that the server can establish a new cloud online document according to the intercepted target instruction, assign a unique target document identifier, and synchronize the text information and image information in the new cloud online document. After the synchronization is completed, a pass instruction is generated and the pass instruction is returned to the terminal.
[0106] Furthermore, when a pass instruction returned by the server is received, it indicates that the online document synchronization is successful, and the text information and image information stored in the preset storage location of the terminal of the successfully synchronized online document are directly deleted to avoid wasting storage space.
[0107] In some implementations, the step of deleting the text information and image information stored in the preset storage location may include:
[0108] (1.1) replacing the preset storage location of the image information with the network cache address of the image information returned by the server;
[0109] (1.2) Delete the text information and image information stored in the preset storage location.
[0110] Among them, since the storage address of the image information in the online document is still the preset storage address, it is necessary to first upload the image information to the server for synchronization. After the server backs up the image information, it will generate a network cache address on the server. The network cache address can be in the http link format and return the network cache address to the terminal. The terminal can replace the preset storage location where the image information was previously stored with the returned network cache address to achieve network synchronization. After synchronization, the text information and image information stored in the preset storage location can be deleted.
[0111] In some implementations, since the identifier of the target online document of the terminal is a pseudo document identifier, in order to achieve synchronization with the real identifier in the server, in a non-offline state, it is detected whether the currently displayed target online document is a pseudo document identifier. When it is detected that the currently displayed target online document is a pseudo document identifier, a replacement instruction is generated and sent to the server, so that the server returns the real target document identifier according to the replacement instruction. When the terminal receives the target document identifier, it can directly replace the fake pseudo document identifier with the target document identifier to achieve synchronization. The identifier synchronization is performed asynchronously and will not affect the loading and display of the online document.
[0112] In one implementation, the server may also directly store the pseudo document identifier as a real target document identifier.
[0113] In some implementations, the step of sending the intercepted target instruction and the stored document information to the server for online document synchronization may include:
[0114] (2.1) Check whether there is a record of the pseudo-document identifier of the target online document on the server.
[0115] (2.2) When it is detected that the pseudo-document identifier of the target online document is recorded on the server, the intercepted target instruction and the stored document information are sent to the server together to merge the online document content;
[0116] (2.3) When it is detected that the pseudo-document identifier of the target online document does not exist in the server, the intercepted target instruction and the stored document information are sent to the server for online document synchronization.
[0117] Among them, it can be detected whether there is a record of the pseudo-document identifier of the target online document on the server, that is, it can be detected whether the pseudo-document identifier of the target online document has already created an online document on the server side. When it is detected that there is a record of the pseudo-document identifier of the target online document on the server, it means that the target online document has already been created on the server side. The intercepted target instruction and the stored document information can be sent to the server together, and the document information edited in the offline state can be merged into the online document that already exists on the server side.
[0118] In one embodiment, the document information edited in an offline state can be merged at the end of the online document already existing on the server side. The document information edited in an offline state can also be analyzed, and the text information portion can be merged at the end of the text information of the online document already existing on the server side, and the image information portion can be merged at the end of the image information of the online document already existing on the server side.
[0119] Furthermore, after the merge, the document information inserted into the merge on the server side can be marked, such as by adding color or bolding, etc., so that after the server synchronizes the merged online document to the terminal, the terminal user can quickly locate the disorderly inserted document information and format it in the merged online document, thereby better improving the efficiency of information processing.
[0120] When it is detected that there is no record of the target online document pseudo-document identifier on the server, it means that the target online document does not exist as an online document that has been created on the server. The intercepted target instruction and the stored document information can be sent to the server for online document synchronization. That is, the server can create a new online document on the server side according to the target instruction, and insert the document information edited in the offline state into the newly created online document according to the editing format, thereby realizing server-side synchronization.
[0121] As can be seen from the above, the embodiment of the present application intercepts the target instruction of sending the online document generation request to the server in an offline state; generates a pseudo-document identifier for the target instruction, generates and displays the target online document according to the pseudo-document identifier; receives the document information input by the user based on the target online document, and stores the document information in a preset storage location; in a non-offline state, sends the intercepted online document generation request and the stored document information to the server for online document synchronization. In this way, in an offline state, the target instruction of sending the online document generation request to the server is intercepted, a pseudo-document identifier is generated, and the target online document is quickly created and displayed according to the pseudo-document identifier, the document information input by the user is stored in a preset storage location, and in a non-offline state, the stored document information is synchronized, which greatly improves the efficiency of information processing.
[0122] Embodiment 2
[0123] The method described in the first embodiment is further described in detail below with examples.
[0124] In this embodiment, the client is an instant messaging client, and the information processing device is specifically integrated in a terminal as an example for description.
[0125] Please also read Figure 3 , Figure 4a and Figure 4b , Figure 3 Another flowchart of the information processing method provided in the embodiment of the present application is shown in FIG. Figure 4a is a schematic diagram of a scenario of an information processing method provided in an embodiment of the present application, Figure 4b is another scenario schematic diagram of the information processing method provided in an embodiment of the present application, Figure 4c : is another scenario schematic diagram of the information processing method provided by an embodiment of the present application. The method flow may include:
[0126] In step 201, the terminal, in an offline state, intercepts a target instruction to send a request for generating an online document to a server.
[0127] Among them, online document applications can be installed in the terminal, such as Figure 4a As shown, Figure 4a It is the display interface of the online document application. When the terminal is in "flight mode", that is, offline, the user can generate a request to generate an online document by clicking the document control 11. Since the terminal cannot communicate with the server over the network in the offline state, the terminal can intercept the target instruction to send the online document generation request to the server, thereby avoiding the interface of network resource loading failure.
[0128] Please continue to refer to 4c. When the terminal client creates a new long document in an offline state (step 1), a target instruction doc.qq.com / create_doc is generated to send a request for generating an online document to the server (step 2). The terminal client can intercept and return the target instruction doc.qq.com / create_doc (step 3).
[0129] In step 202, the terminal generates a pseudo document identifier for the target instruction, and generates and displays a target online document according to the pseudo document identifier.
[0130] Among them, the terminal can generate a corresponding pseudo-document identifier fake_doc_id according to the intercepted target instruction of sending the online document generation request to the server. The pseudo-document identifier is used to disguise the target document identifier returned by the server. After receiving the fake pseudo-document identifier, the terminal skips the network interaction with the server and can directly generate and display the target online document in the offline state with the pseudo-document identifier.
[0131] Please continue to refer to 4c, the terminal client can return a fake document identifier fake_doc_id (step 3).
[0132] In step 203, the terminal receives text information input by the user based on the target online document, activates the image input control, and receives image information input by the user through the image input control.
[0133] Among them, Figure 4b As shown, Figure 4b The target online document is generated and displayed according to the pseudo-document identifier, and the text information input by the user can be received through the target online document. It should be noted that in the prior art, due to being in an offline state, the image control 12 of the online document application cannot be used and will be in an invalid state. In the embodiment of the present application, the image input control 12 can be activated. After activating the image input control 12, the user can receive the locally stored image information inserted by the user through the image input control, thereby realizing the use of image information in an offline state.
[0134] Please continue to refer to 4c. The terminal client can open the online document HTML5 and enter the editing state (step 4). The user can edit text, upload pictures, write comments, etc. based on the online document HTML5, and try to synchronize with the SVR server (step 5).
[0135] In step 204, the terminal stores the text information in a preset storage location, obtains the initial storage location of the image information, and copies the image information to the preset storage location based on the initial storage location.
[0136] Among them, a preset storage location localStorage can be opened in the local storage space of the terminal in advance. The size of the preset storage location can be set by the user, such as 50MB (megabytes). In order not to affect the use of the terminal, the preset storage location cannot exceed 50% of the terminal storage space.
[0137] Furthermore, after the user enters text information and image information and clicks confirm, the terminal can directly store the text information in a preset storage location and insert the initial storage location of the image information, and copy the image information to the preset storage location based on the initial storage location to achieve local backup.
[0138] Please continue to refer to 4c. If the terminal client is offline, synchronization will fail. You can save the requested data to the preset storage location (step 6).
[0139] In step 205, the terminal intercepts the cache instruction that sends the network cache request of the image information to the server, returns the preset storage location after the image information is copied according to the cache instruction, and loads and displays the image information based on the preset storage location after the image information is copied.
[0140] Among them, in order to prevent the terminal from applying for a network cache address based on the image information, which may cause a network loading failure, the terminal can pre-intercept the cache instruction that sends the network cache request of the image information to the server. In order to realize the display of the image information, the preset storage location after the image information is copied can be returned according to the cache instruction, and the image information can be loaded and directly displayed based on the preset storage location after the image information is copied, so as to realize the offline insertion and offline display of the image.
[0141] In step 206, the terminal, in a non-offline state, obtains the text information and image information stored in a preset storage location, and sends the text information and image information and the intercepted target instruction to the server.
[0142] Among them, the terminal can re-detect the network status of the terminal at preset time intervals, such as 2 seconds. When the terminal is in a non-offline state, that is, the current network environment can back up information, obtain text information and image information stored in a preset storage location, and send the text information and image information together with the intercepted target instruction to the server, so that the server generates a new cloud online document according to the target instruction, and assigns a new target document identifier to the cloud online document. The target document identifier is globally unique and is used to distinguish different cloud online documents. Further, the document information is stored in the new cloud online document for synchronization. When the synchronization is successful, the server can return the instruction to the terminal.
[0143] Please continue to refer to 4c, the terminal client continues to detect whether the network status is normal, and tries to send the saved document data to the server for synchronization in a non-offline state (step 7).
[0144] In step 207, when the terminal receives the pass instruction returned by the server, the network cache address of the image information returned by the server replaces the preset storage location of the image information, and deletes the text information and image information stored in the preset storage location.
[0145] Among them, when the terminal receives the pass instruction returned by the server, it means that the target online document has been successfully synchronized on the server side. Since the storage address of the image information in the online document is still the local preset storage address of the terminal, the terminal can replace the preset storage location of the original image information with the network cache address http link format of the image information returned by the server to achieve complete synchronization, and delete the text information and image information stored in the preset storage location of the target online document to avoid wasting the storage space of the terminal.
[0146] In step 208, the terminal detects whether the identifier of the currently displayed target online document is a pseudo document identifier in a non-offline state. When it is detected that the identifier of the currently displayed target online document is a pseudo document identifier, a replacement instruction is generated and sent to the server.
[0147] Among them, since the identifier of the target online document of the terminal is a pseudo-document identifier, when the terminal is in a non-offline state, the terminal will automatically detect whether the identifier of the currently displayed target online document is a pseudo-document identifier. When it is detected that the identifier of the currently displayed target online document is a pseudo-document identifier, a replacement instruction can be generated, which carries the pseudo-document identifier and is sent to the server.
[0148] Furthermore, since the server records the association between the pseudo-document identifier and the target document identifier, when receiving a replacement instruction carrying the pseudo-document identifier, it can match the target document identifier corresponding to the pseudo-document identifier and return the target document identifier to the terminal.
[0149] Please continue to refer to 4c. In the non-offline state, the terminal can detect whether the target online document identifier doc_id is a fake ID (step 8). When it is detected that the doc_id is a fake ID, the exchange_doc_id operation is initiated (step 9) to replace the fake document identifier with the real document identifier doc_id of the server. In this way, the online document HTML5 long text editing and preview operations can be implemented in the offline state or the non-offline state (step 10).
[0150] In step 209, the terminal receives the target document identifier and replaces the pseudo document identifier with the target document identifier.
[0151] Among them, when the terminal receives the target document identifier, it can replace the fake pseudo-document identifier with the real target document identifier to achieve complete synchronization of the target online document. In this way, online documents can still be created and edited in an offline state without waiting for the terminal to restore the network status for use, which greatly improves the efficiency of information processing.
[0152] In some embodiments, after the step of sending the text information and image information and the intercepted target instruction to the server, it may also include: when a failure instruction returned by the server is received, continuing to retain the text information and image information stored in the preset storage location, and returning to execute the step of sending the text information and image information and the intercepted target instruction to the server.
[0153] Among them, when a failure instruction returned by the server is received, there may be temporary congestion or maintenance on the server side. In order to avoid the loss of document information of the target online document on the terminal, the text information and image information stored in the preset storage location can continue to be retained. In this way, when the user opens the target online document again, the text information and image information in the preset storage location can be continued to be edited and processed, and the terminal will continuously return to execute the step of sending the text information and image information and the intercepted target instruction to the server until the synchronization of the target online document is completed.
[0154] As can be seen from the above, the terminal can intercept the target instruction of sending the online document generation request to the server in an offline state; generate a pseudo document identifier for the target instruction, generate and display the target online document according to the pseudo document identifier; receive the document information input by the user based on the target online document, and store the document information in a preset storage location; in a non-offline state, send the intercepted online document generation request and the stored document information to the server for online document synchronization. In this way, in an offline state, the target instruction of sending the online document generation request to the server is intercepted, a pseudo document identifier is generated, and a target online document is quickly created and displayed according to the pseudo document identifier, the document information input by the user is stored in a preset storage location, and the stored document information is synchronized in a non-offline state, which greatly improves the efficiency of information processing.
[0155] Furthermore, after synchronization, the terminal may delete the text information and image information stored in the preset storage location to save storage space of the terminal.
[0156] Embodiment 3
[0157] In order to better implement the information processing method provided in the embodiment of the present application, the embodiment of the present application also provides a device based on the above information processing method. The meanings of the terms are the same as those in the above information processing method, and the specific implementation details can refer to the description in the method embodiment.
[0158] See also Figure 5 , Figure 5 A schematic diagram of the structure of an information processing device provided in an embodiment of the present application, wherein the information processing device may include an interception unit 301, a generation unit 302, a storage unit 303, a synchronization unit 304, etc.
[0159] The interception unit 301 is used to intercept the target instruction of sending the online document generation request to the server in an offline state.
[0160] Wherein, when the interception unit 301 is in an offline state, it can directly intercept the target instruction of sending the online document generation request to the server, so that the target instruction does not go through the network channel, thereby avoiding the loading failure.
[0161] The generating unit 302 is configured to generate a pseudo document identifier for the target instruction, and generate and display a target online document according to the pseudo document identifier.
[0162] Among them, after intercepting the target instruction of sending the online document generation request to the server, the interception unit 301 cannot obtain the target document identifier returned by the server because it is currently in an offline state, and thus cannot create the corresponding online document according to the target document identifier. In order to overcome the above problem, after intercepting the target instruction of sending the online document generation request to the server, the generation unit 302 can generate a pseudo-document identifier for the target instruction, and use the pseudo-document identifier as a globally unique identifier to temporarily replace the target document identifier. In this way, even in an offline state, the generation unit 302 can still generate and display the target online document according to the pseudo-document identifier. The identifier of the target online document is the pseudo-document identifier, which can achieve rendering according to the pseudo-document information without waiting for network communication, thereby realizing rapid creation of documents in an offline state, greatly improving the efficiency of information processing.
[0163] The storage unit 303 is used to receive document information input by the user based on the target online document, and store the document information in a preset storage location.
[0164] Among them, the storage unit 303 can pre-open a preset storage location localStorage in the local storage of the terminal, so that when receiving document information input by the user based on the target online document, the network channel backup can be temporarily skipped and the document information can be stored in the preset storage location localStorage, which can prevent the loss of document information.
[0165] In some implementations, the document information includes text information and image information, and the storage unit 303 includes:
[0166] A receiving subunit, used for receiving text information input by a user based on the target online document;
[0167] An activation subunit, used to activate an image input control, and receive image information input by a user through the image input control;
[0168] The storage subunit is used to store the text information and image information in a preset storage location.
[0169] In some embodiments, the storage subunit is used to: store the text information to a preset storage location; obtain the initial storage location of the image information, and copy the image information to a preset storage location based on the initial storage location; and retrieve the image information copied to the preset storage location for display.
[0170] In some embodiments, the storage subunit is further used to: store the text information to a preset storage location; obtain the initial storage location of the image information, and copy the image information to a preset storage location based on the initial storage location; intercept a cache instruction that sends a network cache request for the image information to a server; return the preset storage location after the image information is copied according to the cache instruction; load and display the image information based on the preset storage location after the image information is copied.
[0171] The synchronization unit 304 is used to send the intercepted target instruction and the stored document information to the server for online document synchronization in a non-offline state.
[0172] Among them, when the synchronization unit 304 detects that the state has entered a non-offline state from an offline state, the intercepted target instruction for sending the online document generation request to the server and the stored document information can be sent to the server together, so that the server generates a new cloud online document according to the target instruction, and assigns a new target document identifier to the cloud online document. The target document identifier is globally unique and is used to distinguish different cloud online documents. The document information is stored in the new cloud online document to achieve synchronization. When the synchronization is successful, the server can return the instruction to the terminal.
[0173] Furthermore, upon receiving the pass instruction returned by the server, the synchronization unit 304 may delete the document information of the successfully synchronized online document stored in the preset storage location, thereby reducing the waste of storage space.
[0174] In some implementations, the synchronization unit 304 includes:
[0175] The acquisition subunit is used to acquire text information and image information stored in a preset storage location in a non-offline state;
[0176] A sending subunit, used for sending the text information and the image information and the intercepted target instruction to the server, so that the server performs online document synchronization;
[0177] The deleting subunit is used to delete the text information and image information stored in the preset storage location when receiving the passing instruction returned by the server.
[0178] In some embodiments, the deletion subunit is used to: when receiving a pass instruction returned by the server, replace the preset storage location for image information storage with the network cache address of the image information returned by the server; and delete the text information and image information stored in the preset storage location.
[0179] In some embodiments, the synchronization unit also includes a retention subunit, which is used to: when a failure instruction returned by the server is received, continue to retain the text information and image information stored in a preset storage location, and return to execute the step of sending the text information and image information and the intercepted target instruction to the server.
[0180] In some embodiments, the processing device also includes a replacement unit, which is used to: in a non-offline state, detect whether the identifier of the currently displayed target online document is a pseudo-document identifier; when it is detected that the identifier of the currently displayed target online document is a pseudo-document identifier, generate a replacement instruction, and send the replacement instruction to the server, so that the server returns the target document identifier according to the replacement instruction; receive the target document identifier, and replace the pseudo-document identifier with the target document identifier.
[0181] In some embodiments, the processing device also includes an offline judgment unit, which is used to: obtain the current network signal status; when the network signal status is lower than a preset threshold, determine it to be in an offline state; when the network signal status is not lower than a preset threshold, determine it to be in a non-offline state.
[0182] The specific implementation of each of the above units can be found in the previous method embodiments, which will not be described in detail here.
[0183] As can be seen from the above, the embodiment of the present application intercepts the target instruction of sending the online document generation request to the server through the interception unit 301 in the offline state; the generation unit 302 generates a pseudo document identifier for the target instruction, generates and displays the target online document according to the pseudo document identifier; the storage unit 303 receives the document information input by the user based on the target online document, and stores the document information in a preset storage location; the synchronization unit 304 sends the intercepted online document generation request and the stored document information to the server for online document synchronization in the non-offline state. In this way, in the offline state, the target instruction of sending the online document generation request to the server is intercepted, a pseudo document identifier is generated, and the target online document is quickly created and displayed according to the pseudo document identifier, the document information input by the user is stored in the preset storage location, and the stored document information is synchronized in the non-offline state, which greatly improves the efficiency of information processing.
[0184] Embodiment 4:
[0185] The present application also provides a terminal, such as Figure 6 As shown, the terminal may include a radio frequency (RF) circuit 601, a memory 602 including one or more computer-readable storage media, an input unit 603, a display unit 604, a sensor 605, an audio circuit 606, a wireless fidelity (WiFi) module 607, a processor 608 including one or more processing cores, and a power supply 609. Those skilled in the art will appreciate that Figure 6 The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0186] The RF circuit 601 can be used for receiving and sending signals during information transmission or calls. In particular, after receiving the downlink information of the base station, it is handed over to one or more processors 608 for processing; in addition, the data related to the uplink is sent to the base station. Generally, the RF circuit 601 includes but is not limited to an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM) card, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, etc. In addition, the RF circuit 601 can also communicate with the network and other devices through wireless communication. Wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
[0187] The memory 602 can be used to store software programs and modules. The processor 608 executes various functional applications and information processing by running the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the terminal (such as audio data, a phone book, etc.), etc. In addition, the memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 602 may also include a memory controller to provide the processor 608 and the input unit 603 with access to the memory 602.
[0188] The input unit 603 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, in a specific embodiment, the input unit 603 may include a touch-sensitive surface and other input devices. The touch-sensitive surface, also known as a touch display screen or a touch pad, can collect the user's touch operations on or near it (such as the user's operation on or near the touch-sensitive surface using any suitable object or accessory such as a finger, a stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch-sensitive surface may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 608, and can receive and execute the command sent by the processor 608. In addition, the touch-sensitive surface can be implemented using multiple types such as resistive, capacitive, infrared and surface acoustic waves. In addition to the touch-sensitive surface, the input unit 603 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, and the like.
[0189] The display unit 604 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the terminal, which can be composed of graphics, text, icons, videos and any combination thereof. The display unit 604 may include a display panel. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch-sensitive surface may cover the display panel. When the touch-sensitive surface detects a touch operation on or near it, it is transmitted to the processor 608 to determine the type of touch event. The processor 608 then provides a corresponding visual output on the display panel according to the type of touch event. Although in Figure 6 In the embodiment, the touch-sensitive surface and the display panel are used as two independent components to realize input and output functions, but in some embodiments, the touch-sensitive surface and the display panel can be integrated to realize input and output functions.
[0190] The terminal may also include at least one sensor 605, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor may turn off the display panel and / or backlight when the terminal is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the terminal, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
[0191] The audio circuit 606, the speaker, and the microphone can provide an audio interface between the user and the terminal. The audio circuit 606 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 606 and converted into audio data, and then the audio data is processed by the output processor 608 and sent to, for example, another terminal through the RF circuit 601, or the audio data is output to the memory 602 for further processing. The audio circuit 606 may also include an earplug jack to provide communication between an external headset and the terminal.
[0192] WiFi is a short-range wireless transmission technology. The terminal can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 607. It provides users with wireless broadband Internet access. Figure 6 A WiFi module 607 is shown, but it is understandable that it is not an essential component of the terminal and can be omitted as required without changing the essence of the invention.
[0193] The processor 608 is the control center of the terminal. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 602 and calling data stored in the memory 602, it executes various functions of the terminal and processes data, thereby performing an overall inspection of the mobile phone. Optionally, the processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 608.
[0194] The terminal also includes a power supply 609 (such as a battery) for supplying power to each component. Preferably, the power supply can be logically connected to the processor 608 through a power management system, so that the power management system can manage charging, discharging, and power consumption management. The power supply 609 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0195] Although not shown, the terminal may also include a camera, a Bluetooth module, etc., which will not be described in detail here. Specifically in this embodiment, the processor 608 in the terminal will load the executable files corresponding to the processes of one or more applications into the memory 602 according to the following instructions, and the processor 608 will run the applications stored in the memory 602 to implement various functions:
[0196] In an offline state, intercept a target instruction that sends a request for generating an online document to a server; generate a pseudo-document identifier for the target instruction, and generate and display a target online document based on the pseudo-document identifier; receive document information input by a user based on the target online document, and store the document information in a preset storage location; in a non-offline state, send the intercepted target instruction and the stored document information to the server together for online document synchronization.
[0197] In the above embodiments, the description of each embodiment has its own focus. For the part that is not described in detail in a certain embodiment, please refer to the detailed description of the information processing method above, and will not be repeated here.
[0198] As can be seen from the above, the terminal of the embodiment of the present application can intercept the target instruction of sending the online document generation request to the server in an offline state; generate a pseudo document identifier for the target instruction, generate and display the target online document according to the pseudo document identifier; receive the document information input by the user based on the target online document, and store the document information in a preset storage location; in a non-offline state, send the intercepted online document generation request and the stored document information to the server for online document synchronization. In this way, in an offline state, the target instruction of sending the online document generation request to the server is intercepted, a pseudo document identifier is generated, and the target online document is quickly created and displayed according to the pseudo document identifier, the document information input by the user is stored in a preset storage location, and the stored document information is synchronized in a non-offline state, which greatly improves the efficiency of information processing.
[0199] Embodiment 5
[0200] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0201] To this end, an embodiment of the present application provides a storage medium in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the information processing methods provided in the embodiments of the present application. For example, the instructions can execute the following steps:
[0202] In an offline state, intercept a target instruction that sends a request for generating an online document to a server; generate a pseudo-document identifier for the target instruction, and generate and display a target online document based on the pseudo-document identifier; receive document information input by a user based on the target online document, and store the document information in a preset storage location; in a non-offline state, send the intercepted target instruction and the stored document information to the server together for online document synchronization.
[0203] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method provided in various optional implementations provided in the above embodiments.
[0204] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0205] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0206] Since the instructions stored in the storage medium can execute the steps in any information processing method provided in the embodiments of the present application, the beneficial effects that can be achieved by any information processing method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0207] The above is a detailed introduction to an information processing method, device, and storage medium provided in the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. An information processing method, characterized in that: include: In an offline state, intercepting a target instruction for sending a request for generating an online document to a server; Generate a pseudo document identifier for the target instruction, and generate and display a target online document according to the pseudo document identifier; The pseudo document identifier is a globally unique identifier, which is used to replace the target document identifier, mark the target online document in an offline state, and return the target online document to the terminal, so that the terminal can read the corresponding target online document from the terminal according to the pseudo document identifier for display. The target document identifier is used to mark the cloud online document; Receiving document information input by a user based on the target online document, and storing the document information in a preset storage location; In a non-offline state, detecting whether the identifier of the currently displayed target online document is a pseudo-document identifier; When it is detected that the identifier of the currently displayed target online document is a pseudo-document identifier, a replacement instruction is generated, and the replacement instruction is sent to the server, so that the server returns the target document identifier according to the replacement instruction; receiving the target document identifier, and replacing the pseudo document identifier with the target document identifier, or using the pseudo document identifier as the target document identifier; In a non-offline state, the intercepted target command and the stored document information are sent to the server for online document synchronization; When a passing instruction returned by the server is received, the text information and image information stored in the preset storage location are deleted.
2. The processing method according to claim 1, characterized in that: The document information includes text information and image information. The step of receiving the document information input by the user based on the target online document and storing the document information in a preset storage location includes: Receiving text information input by a user based on the target online document; activating an image input control to receive image information input by a user through the image input control; The text information and image information are stored in a preset storage location.
3. The processing method according to claim 2, characterized in that: The step of storing the text information and image information in a preset storage location includes: Storing the text information in a preset storage location; Acquiring an initial storage location of the image information, and copying the image information to a preset storage location based on the initial storage location; Retrieve the image information copied to the preset storage location for display.
4. The processing method according to claim 3, characterized in that: The step of retrieving the image information copied to the preset storage location for display includes: intercepting a network cache request for the image information and sending it to a cache instruction of a server; Returning the preset storage location after the image information is copied according to the cache instruction; The image information is loaded and displayed based on the preset storage location after the image information is copied.
5. The processing method according to any one of claims 2 to 4, characterized in that: The step of sending the intercepted target instruction and the stored document information to the server for online document synchronization includes: Acquire text information and image information stored in a preset storage location; Sending the text information and image information and the intercepted target command to a server so that the server performs online document synchronization; When a passing instruction returned by the server is received, the text information and image information stored in the preset storage location are deleted.
6. The processing method according to claim 5, characterized in that: The step of deleting the text information and image information stored in the preset storage location includes: Replacing the preset storage location for image information storage with the network cache address of the image information returned by the server; Delete the text information and image information stored in the preset storage location.
7. The processing method according to claim 5, characterized in that: After the step of sending the text information and the image information and the intercepted target instruction to the server, the method further includes: When a failure instruction returned by the server is received, the text information and image information stored in the preset storage location continue to be retained, and the step of sending the text information and image information and the intercepted target instruction to the server is returned.
8. The processing method according to any one of claims 1 to 4, characterized in that: The processing method further includes: Get the current network signal status; When the network signal state is lower than a preset threshold, it is determined to be in an offline state; When the network signal state is not lower than a preset threshold, it is determined to be in a non-offline state.
9. An information processing device, characterized in that: include: An interception unit, used for intercepting a target instruction for sending a request for generating an online document to a server in an offline state; A generating unit, configured to generate a pseudo document identifier for the target instruction, and generate and display a target online document according to the pseudo document identifier; The pseudo document identifier is a globally unique identifier, which is used to replace the target document identifier, mark the target online document in an offline state, and return the target online document to the terminal, so that the terminal can read the corresponding target online document from the terminal according to the pseudo document identifier for display. The target document identifier is used to mark the cloud online document; A storage unit, configured to receive document information input by a user based on the target online document, and store the document information in a preset storage location; In a non-offline state, detecting whether the identifier of the currently displayed target online document is a pseudo-document identifier; When it is detected that the identifier of the currently displayed target online document is a pseudo-document identifier, a replacement instruction is generated, and the replacement instruction is sent to the server, so that the server returns the target document identifier according to the replacement instruction; receiving the target document identifier, and replacing the pseudo document identifier with the target document identifier; A synchronization unit, used for sending the intercepted target instruction and the stored document information to the server for online document synchronization in a non-offline state; When a passing instruction returned by the server is received, the text information and image information stored in the preset storage location are deleted.
10. A storage medium, characterized in that: The storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the information processing method according to any one of claims 1 to 8.
11. An electronic device, characterized in that: It comprises a memory and a processor; the memory stores an application program, and the processor is used to run the application program in the memory to execute the operations in the processing method according to any one of claims 1 to 8.
12. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps in the processing method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
System and method for providing offline access in hosted document service
CN103765419A