Target file processing method, device and terminal equipment
By presetting files on the terminal device to handle interaction between the client and the server, and using local software programs to process target files, the problems of cumbersome and poor user experience in the prior art are solved, and safe and efficient diversified file operation processing are achieved.
Patent Information
- Application Number
- CN202110284753.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-17
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2041-03-17
AI Technical Summary
In the file data processing scenario with high security requirements, users need to install designated software programs and set up and connect, resulting in inflexible use, complicated and difficult operation, poor user experience, and lack of effective solutions. .
By presetting files on the terminal device, including web service modules, javascript objects, document editor API callers, encryption and decryption software API callers and peripheral function programs, displaying interactive pages to determine the target file and operation type, and calling the client The terminal interacts with the server to obtain script files and uses local software programs to perform corresponding operations.
On the premise of protecting data security, efficient and convenient processing of users' diversified operation needs is achieved, reducing dependence on the operating environment, simplifying user operation processes, reducing operation difficulty and improving user experience.
Smart Images

Figure CN113032042B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of big data technology, and in particular to a method, device and terminal device for processing target files. Background Art
[0002] In some file data processing scenarios with high security requirements (for example, approval scenarios for official documents, etc.), based on existing methods, in order to protect data security, before specific implementation, users are often required to download and install designated software programs such as designated browsers and designated document editors on their terminal devices; then, based on the underlying logic of the designated operating system, the above-mentioned designated software programs are specifically set up and connected. During specific implementation, users often need to follow the corresponding operating rules and can only call the above-mentioned designated software programs to operate and process file data (for example, only designated document editors can be called to modify official documents, etc.).
[0003] It can be seen that the above method relies heavily on the operating environment, and often requires users to install and use specified software programs on the terminal device. Therefore, there is a problem that it is not flexible and convenient to use for users. In addition, the above method has high requirements on users when implementing it. For example, if the user replaces some software programs on the terminal device, the user needs to re-set and reconnect some software programs. Therefore, there are also problems that the user operation is relatively cumbersome, the operation is difficult, and the user experience is relatively poor.
[0004] To address the above problems, no effective solution has been proposed yet. Summary of the invention
[0005] This specification provides a method, apparatus and terminal device for processing a target file to meet the diverse operational requirements of users, and can efficiently and conveniently implement various types of operations on the target file by calling a local software program of the terminal device.
[0006] This specification provides a method for processing a target file, which is applied to a terminal device, wherein the terminal device is installed with a preset file processing client, and the method includes:
[0007] Displaying a preset interactive page to the user; wherein the preset interactive page includes identification information of multiple business files and operation type options for the business files; and the preset interactive page is configured to be associated with the preset file processing client;
[0008] Determine identification information of a target file to be processed and a target operation type for the target file through the preset interactive page, and generate a trigger request for the preset file processing client;
[0009] According to the trigger request, a preset file processing client is called to interact with the server to obtain a matching target script file; wherein the trigger request carries at least identification information of the target file and a target operation type; the server is used to store business files;
[0010] The target script file is run through the preset file processing client to respond to user operations and perform operation processing on the target file that matches the target operation type.
[0011] In one embodiment, the target script file includes a preset javascript script that matches the target operation type and / or identification information of the target file.
[0012] In one embodiment, the preset file processing client at least includes: a web service module, a preset javascript object, a document editor API calling program, an encryption and decryption software API calling program, and a peripheral function program.
[0013] In one embodiment, according to the trigger request, calling a preset file processing client to interact with the server to obtain a matching target script file includes:
[0014] According to the trigger request, calling a preset web service module of the file processing client generates and sends a call request to the server; wherein the call request carries at least a target operation type;
[0015] Receiving the address parameter fed back by the server based on the call request;
[0016] The target script file is downloaded according to the address parameter through the web service module of the preset file processing client.
[0017] In one embodiment, the target file includes a confidential business file to be approved; accordingly, the target operation type includes at least one of the following: drafting operation, revising operation, cleaning operation, reading operation, and proofreading operation.
[0018] In one embodiment, the target script file is run by the preset file processing client to respond to the user operation and perform an operation processing on the target file that matches the target operation type, including:
[0019] Running the target script file through the web service module and interacting with the server to obtain the encrypted data of the matching target file, and saving the encrypted data of the target file in a local temporary directory of the terminal device;
[0020] Create a security directory through peripheral function programs;
[0021] By calling the encryption and decryption software API program, the local encryption and decryption software of the terminal device is called to decrypt the encrypted data of the target file in the security directory to obtain the target file;
[0022] The document editor API calling program is used to call the local document editor of the terminal device to respond to the user operation and perform an operation process on the target file that matches the target operation type.
[0023] In one embodiment, when the target operation type includes a draft operation, calling the document editor local to the terminal device to respond to the user operation through the document editor API calling program, and performing an operation process on the target file that matches the target operation type, includes:
[0024] Run the target script file through the web service module, use the document editor API to call the program, call the local document editor of the terminal device to open the target file in the invisible editable mode, and register the start callback event;
[0025] Calling the document editor to edit the target file according to the user operation to obtain the drafted target file;
[0026] In response to the user's end instruction, the document editor is exited, and the encryption and decryption software is called to encrypt the drafted target file to obtain the encrypted data of the drafted target file;
[0027] The web service module is called to send the encrypted data of the drafted target file to the server; and the target file in the security directory is deleted.
[0028] In one embodiment, when the target operation type includes a review operation, calling the document editor local to the terminal device to respond to the user operation through the document editor API calling program, and performing an operation process on the target file that matches the target operation type, includes:
[0029] Run the target script file through the web service module, use the document editor API to call the program, call the local document editor of the terminal device to open the target file in read-only mode, and register a close callback event;
[0030] In response to the user's end instruction, the document editor is exited and the target file in the security directory is deleted.
[0031] In one embodiment, when the target operation type includes a manuscript revision operation, calling the document editor local to the terminal device to respond to the user operation through the document editor API calling program, and performing an operation process on the target file that matches the target operation type, includes:
[0032] Run the target script file through the web service module, use the document editor API to call the program, call the local document editor of the terminal device to open the target file in the traceable editable mode, and register the start callback event;
[0033] Calling the document editor to edit the target file within a matching authority range according to the user operation to obtain a revised target file;
[0034] In response to the end instruction of the user, the document editor is exited, and the encryption and decryption software is called to encrypt the revised target file to obtain the encrypted data of the revised target file;
[0035] The web service module is called to send the encrypted data of the revised target file to the server; and the target file in the security directory is deleted.
[0036] In one embodiment, the matching permission range is determined according to the user's identity information.
[0037] In one embodiment, when the target operation type includes a proofreading operation, the target file includes: a first target file and a second target file;
[0038] Correspondingly, the document editor API calling program is used to call the local document editor of the terminal device to respond to the user operation, and to perform an operation process on the target file that matches the target operation type, including:
[0039] The target script file is run through the web service module, and the document editor API is used to call the program, and the document editor local to the terminal device is called to open the first target file in a traceable editable mode, and a start callback event is registered for the first target file; at the same time, the document editor local to the terminal device is called to open the second target file in a read-only mode, and a close callback event is registered for the second target file; the second target file is used as a reference file for proofreading operations;
[0040] Calling the document editor to edit the first target file within a matching authority range according to the user operation, to obtain a proofread first target file;
[0041] In response to the end instruction of the user, the document editor is exited, and the encryption and decryption software is called to encrypt the proofread first target file to obtain the encrypted data of the proofread first target file;
[0042] The web service module is called to send the encrypted data of the proofread first target file to the server; and the first target file and the second target file in the security directory are deleted.
[0043] In one embodiment, when the target operation type includes a cleanup operation, calling the document editor local to the terminal device to respond to the user operation through the document editor API calling program, and performing an operation process on the target file that matches the target operation type includes:
[0044] Run the target script file through the web service module, use the document editor API to call the program, call the local document editor of the terminal device to open the target file in implicit mode, and register an opening callback event;
[0045] Calling the document editor to eliminate the editing traces in the target file according to the user's acceptance instruction, and obtaining a cleaned target file;
[0046] In response to the end instruction of the user, the document editor is exited, and the encryption and decryption software is called to encrypt the cleaned target file to obtain the encrypted data of the cleaned target file;
[0047] The web service module is called to send the encrypted data of the cleaned target file to the server; and the target file in the security directory is deleted.
[0048] This manual also provides a method for processing target files, which is applied to the server, including:
[0049] Receiving a call request sent by a preset file processing client deployed on a terminal device; wherein the call request carries at least a target operation type;
[0050] Determine a target script file matching the target operation type from a plurality of preset script files; and obtain an address parameter of the target script file;
[0051] The address parameters of the target script file are sent to a preset file processing client; wherein the preset file processing client downloads the target script file according to the address parameters, and the preset file processing client also responds to user operations by running the target script file to perform operations matching the target operation type on the target file.
[0052] This specification also provides a target file processing device, including:
[0053] A display module, used to display a preset interactive page to the user; wherein the preset interactive page includes identification information of multiple business files and operation type options for the business files; and the preset interactive page is configured to be associated with the preset file processing client;
[0054] A first processing module, configured to determine, through the preset interactive page, identification information of a target file to be processed and a target operation type for the target file, and generate a trigger request for the preset file processing client;
[0055] A calling module, used to call a preset file processing client to interact with a server according to the trigger request to obtain a matching target script file; wherein the trigger request carries at least identification information of the target file and a target operation type; the server is used to store business files;
[0056] The second processing module is used to run the target script file through the preset file processing client to respond to the user operation and perform an operation processing on the target file that matches the target operation type.
[0057] This specification also provides a terminal device, including a display, a processor and a memory for storing processor executable instructions, and the terminal device is also equipped with a preset file processing client. When the processor executes the instructions, it uses the preset file processing client to implement the relevant steps of the target file processing method.
[0058] This specification also provides a computer-readable storage medium on which computer instructions are stored, and when the instructions are executed, the relevant steps of the target file processing method are implemented.
[0059] The present specification provides a method, device and terminal device for processing a target file. Before implementation, a preset file processing client including at least a web service module, a preset javascript object, a document editor API call program, an encryption and decryption software API call program, and a peripheral function program can be pre-deployed in the terminal device; during implementation, a preset interactive page associated with the preset file processing client can be displayed to the user through the terminal device; and through the interactive page, the identification information of the target file to be processed and the target operation type for the target file can be determined; then the preset file processing client is triggered to interact with the server accordingly to obtain a matching target script file; and then the target script file can be run through the preset file processing client to respond and call the local software program of the terminal device according to the specific operation of the user, and the target file can be processed with the target operation type. Therefore, under the premise of protecting the data security of the target file, the diversified operation needs of the user can be better met, and the various types of operation processing of the target file can be efficiently and conveniently realized by flexibly and effectively calling the local related software programs of the terminal device. At the same time, it can also effectively reduce the dependence on the operating environment in the file processing process, simplify the user operation process, reduce the user operation difficulty, and improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the embodiments of this specification, the drawings required for use in the embodiments will be briefly introduced below. The drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0061] Figure 1 It is a schematic diagram of an embodiment of the structure of a system using the target file processing method provided in the embodiment of this specification;
[0062] Figure 2 It is a schematic diagram of a first embodiment of the structure of a preset file processing client using the target file processing method provided in the embodiments of this specification;
[0063] Figure 3 is a flowchart of a method for processing a target file provided by an embodiment of this specification;
[0064] Figure 4 is a flowchart of a method for processing a target file provided by an embodiment of this specification;
[0065] Figure 5 is a schematic diagram of the structure of a terminal device provided by an embodiment of this specification;
[0066] Figure 6 is a schematic diagram of the structure of a target file processing device provided by an embodiment of this specification;
[0067] Figure 7 It is a schematic diagram of an embodiment of a method for processing a target file provided by an embodiment of this specification, in a scenario example;
[0068] Figure 8 It is a schematic diagram of an embodiment of a method for processing a target file provided by an embodiment of this specification, in a scenario example. DETAILED DESCRIPTION
[0069] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.
[0070] Considering that the existing methods often require users to download and install specified software programs such as specified document editors and specified browsers on the terminal devices used in advance, and then based on the underlying logic of the specified operating system, the users themselves perform corresponding settings and connections on the specified software programs. When processing file data, users need to follow the corresponding operation rules and can only call the specified software programs to perform specific operations on the file data.
[0071] This will make the user's file data processing process highly dependent on the operating environment. In addition, users cannot freely use the software programs originally installed on the terminal device, but must download and install specified software programs to perform specific operations on file data. This results in cumbersome and difficult user operations, and a relatively poor user experience.
[0072] In view of the root cause of the above problems, this specification considers that before the specific implementation, a preset file processing client including a web service module, a preset javascript object, a document editor API call program, an encryption and decryption software API call program, and a peripheral function program can be pre-arranged on the terminal device used by the user. Based on the above preset file processing client, when it is specifically implemented, the terminal device can first show the user a preset interactive page associated with the preset file processing client; and through the interactive page, determine the identification information of the target file to be processed, and the target operation type for the target file; then trigger the call of the preset file processing client to interact with the server accordingly to obtain a matching target script file; and then the preset file processing client can run the above target script file to respond and call the local software program of the terminal device according to the specific operation of the user, and perform an operation matching the target operation type on the target file. Therefore, the diversified operation needs of the user can be met under the premise of protecting the data security of the target file, and various types of operation processing of the target file can be realized efficiently and conveniently. At the same time, it can also effectively reduce the dependence on the operating environment during the file processing process, simplify the user operation process, reduce the difficulty of user operation, and improve the user's experience.
[0073] The present specification provides a method for processing a target file, which can be applied to a system including a server and a terminal device. Figure 1 As shown, the server and the terminal device can be connected via wired or wireless means to perform specific data interaction.
[0074] In this embodiment, the server may specifically include a background server applied to a data processing platform side that can realize functions such as data transmission and data processing. Specifically, the server may be, for example, an electronic device with data calculation, storage and network interaction functions. Alternatively, the server may also be a software program running in the electronic device to provide support for data processing, storage and network interaction. In this embodiment, the number of the servers is not specifically limited. The server may specifically be one server, or several servers, or a server cluster formed by several servers.
[0075] In this embodiment, the terminal device may specifically include a front-end electronic device applied to the user side and capable of realizing functions such as data collection and data transmission. Specifically, the terminal device may be, for example, a desktop computer, a tablet computer, a laptop computer, a smart phone, etc. Alternatively, the terminal device may also be a software application that can be run in the above electronic devices. For example, it may be an APP installed and run on a smart phone.
[0076] In this embodiment, before implementation, a preset file processing client may be deployed on the terminal device. Figure 2 As shown, the preset file processing client at least includes structural modules such as a web service module, a preset javascript object, a document editor API calling program, an encryption and decryption software API calling program, and a peripheral function program. The above-mentioned multiple structural modules can be connected through internal cables.
[0077] The above-mentioned preset file processing client can be specifically understood as a C-end program, which is developed and designed based on the API (Application Programming Interface) of the operating system.
[0078] During specific deployment, the web service module (for example, a lightweight web server) in the preset file processing client can be registered with the operating system of the terminal device, so that the preset file processing client can monitor the request data or instruction data sent by the page end on the terminal device side through the web service module, and interact with the server on the remote side.
[0079] During the specific deployment, the document editor API call program and the encryption and decryption software API call program in the preset file processing client can be registered to the operating system of the terminal device, so that the user can quickly and conveniently bridge the document editor API call program in the preset file processing client with the document editor (for example, word, or WPS, etc.) installed locally on the terminal device, and bridge the encryption and decryption software API call program with the encryption and decryption software (for example, XX Encryption Master, or YY Document Guard, etc.) installed locally on the terminal device without professional knowledge. In this way, the user does not need to download and connect the specified software program again. Based on the above structure, it can also support users to freely choose the software program installed in the terminal device for bridging according to their personalized needs and habits to meet the diverse needs of users.
[0080] The above-mentioned preset javascript object can be specifically connected with the above-mentioned document editor API call program, encryption and decryption software API call program and other call programs. In this way, when the preset file processing client is specifically running, it can execute a specific script file through the web service module to call the local preset javascript object according to certain rules, and can use the document editor API call program and the encryption and decryption software API call program to call the bridged local document editor, encryption and decryption software, etc. to implement corresponding functions, so as to complete the specific operation processing for the file data.
[0081] The above peripheral function program (eg, client program) can support the preset file processing client to implement functions such as creating a temporary directory, creating a secure directory, calling other related interfaces, etc., to cooperate with the operation and processing of file data.
[0082] During specific implementation, the terminal device may first respond to the display instruction initiated by the user, interact with the server, and display the preset interactive page to the user through the local page end (for example, the local browser end, etc.). Among them, the above-mentioned preset interactive page may specifically include identification information of multiple business files, as well as multiple operation type options for business files. Further, the above-mentioned preset interactive page may be specifically generated based on the page data provided by the server. In addition, the link arranged in the above-mentioned preset interactive page may be set based on a private protocol (non-http protocol), so that the link points to the preset file processing client of the terminal device, rather than the server, so that the above-mentioned preset interactive page can be associated with the preset file processing client. Among them, the above-mentioned server can be specifically used to store and manage related business files.
[0083] The user can perform corresponding operations in the above preset interactive page according to specific circumstances and processing requirements to select the target file to be processed and the target operation type to be adopted.
[0084] Accordingly, the terminal device can obtain the identification information of the target file selected by the user and the target operation type for the target file through the above preset interactive page (page end). Further, the page end can generate a trigger request carrying at least the identification information of the target file and the target operation type, and send the trigger request to the preset file processing client.
[0085] Then, the preset file processing client can respond to the trigger request and perform data interaction with the server through the web service module to obtain a preset javascript script that matches the target operation type as a target script file.
[0086] Furthermore, the terminal device can run the target script file through the web service module in the preset file processing client, and call the local document editor, encryption and decryption software and other local software programs that are bridged by using the document editor API call program and the encryption and decryption software API call program to perform corresponding operations on the target file in coordination with the user's specific operations. For example, various types of operations such as drafting, reviewing, revising, proofreading, and cleaning the target file can be performed.
[0087] Therefore, it is possible to meet the diverse operational needs of users while protecting the data security of the target files, and to efficiently and conveniently implement various types of operations on the target files.
[0088] See also Figure 3 As shown, the embodiment of this specification provides a method for processing a target file. The method is specifically applied to a terminal device. When implemented specifically, the method may include the following contents.
[0089] S301: Displaying a preset interactive page to a user; wherein the preset interactive page includes identification information of a plurality of business files and operation type options for the business files; and the preset interactive page is configured to be associated with the preset file processing client;
[0090] S302: determining identification information of a target file to be processed and a target operation type for the target file through the preset interactive page, and generating a trigger request for the preset file processing client;
[0091] S303: According to the trigger request, calling a preset file processing client to interact with the server to obtain a matching target script file; wherein the trigger request carries at least identification information of the target file and a target operation type; the server is used to store business files;
[0092] S304: The target script file is run through the preset file processing client to respond to the user operation and perform an operation processing on the target file that matches the target operation type.
[0093] Through the above embodiments, the diverse operational requirements of users can be better met, and various types of operational processing of target files can be efficiently and conveniently implemented in cooperation with user operations by effectively calling local software programs of the terminal device.
[0094] In some embodiments, corresponding to different application scenarios, the business file may be an official document, an archive file, a work file, etc. Correspondingly, the target file may be a business file currently awaiting approval, an archive file to be archived, a work file to be reviewed, etc.
[0095] Furthermore, in application scenarios with relatively high confidentiality requirements, it is often required to protect the data security of business files and avoid leaking the specific content of business files. Accordingly, the target file may also be a confidential business file to be approved.
[0096] Through the above embodiments, the target file processing method provided in this specification can be expanded and applied to various application scenarios to perform corresponding operations on various target files to meet users' diverse needs for target files.
[0097] In some embodiments, the identification information of the business file may be specifically understood as identification information corresponding to a certain existing specific business file, or identification information corresponding to a blank template file of a certain type of business file.
[0098] In some embodiments, corresponding to different application scenarios, the types of operations on business files displayed in the above preset interactive page for users to choose from may also be diverse.
[0099] Specifically, in business scenarios such as official document approval, the target file may specifically include confidential business files to be approved; accordingly, the target operation type may specifically include at least one of the following: drafting operation, revision operation, cleaning operation, reviewing operation, proofreading operation, etc.
[0100] Among them, the above-mentioned drafting operation can be specifically understood as an operation of writing a target file from scratch. The above-mentioned manuscript revision operation can be specifically understood as an operation of modifying and editing with editing traces on the basis of the currently existing target file. The above-mentioned manuscript reading operation can be specifically understood as an operation of reading the target file without modifying the currently existing target file. The above-mentioned manuscript cleaning operation can be specifically understood as an operation of accepting the previous manuscript revision operation for the currently existing target file, and instructing to eliminate the editing traces in the target file. The above-mentioned manuscript proofreading operation can be specifically understood as an operation of modifying and editing only the target file based on the simultaneously displayed reference file and target file, using the reference file as the proofreading basis.
[0101] Of course, it should be noted that the application scenarios, target files, and target operation types listed above are only schematic illustrations. In specific implementation, according to the specific application scenarios and target files, the target operation types may also include other related operation types. This specification does not limit this.
[0102] Through the above embodiments, the target file processing method provided in this specification can be expanded and applied to target files in various application scenarios to perform various types of operations to meet users' diverse needs for target operation types.
[0103] In some embodiments, the target script file may specifically include a preset javascript script that matches the target operation type and / or identification information of the target file.
[0104] Specifically, the target script file may be a preset JavaScript script that matches the target operation type, or a JavaScript script that matches the identification information of the target file, or a JavaScript script that matches both the identification information of the target file and the target operation type, etc.
[0105] Through the above embodiments, a target script file that can better meet user needs and is used to implement the specific operation processing on the target file indicated by the user can be found based on different dimensions.
[0106] The target script file may specifically be a file editing function that controls a preset file processing client to cooperate with user operations to perform corresponding types of operations on the target file.
[0107] In some embodiments, the server can pre-build multiple preset javascript scripts corresponding to the identification information and / or operation types of the corresponding business files for multiple different business files and / or multiple different operation types. Of course, it can support users to interact with the server through terminal devices to build user-defined javascript scripts as a preset javascript script. It can also support users to interact with the server through terminal devices to adjust and modify the specific content in the existing preset javascript scripts, as well as the identification information and / or operation types of the business files corresponding to the preset javascript scripts. Thereby, more diverse individual needs of users can be met.
[0108] In some embodiments, the above-mentioned preset file processing client may at least include: a web service module, a preset javascript object, a document editor API calling program, an encryption and decryption software API calling program, and peripheral function programs and other structures.
[0109] Through the above embodiments, based on the above preset file processing client, user operations can be effectively simplified, the user's operating difficulty can be reduced, and the dependence on the operating environment can be reduced, so that users can easily call the local software programs of the terminal device and efficiently perform specific operations on the target files.
[0110] In some embodiments, before specific implementation, the above-mentioned preset file processing client can be deployed in the terminal device used by the user. When specifically deployed, the web service module, preset javascript object, document editor API call program, encryption and decryption software API call program, and peripheral function program in the above-mentioned preset file processing client can be registered in the local operating system of the terminal device to bridge the document editor, encryption and decryption software installed locally on the terminal device and other software programs that need to be used when performing specific operations on the target file. Among them, the above-mentioned preset javascript object can be used to connect the document editor API call program, the encryption and decryption software API call program, and the script file specifically run by the subsequent web service module (for example, a matching preset javascript script), so that the above-mentioned preset file processing client can effectively call the local software program of the terminal device, cooperate with the user operation, and complete the operation and processing of the target file.
[0111] In some embodiments, the preset interactive page may be generated by the terminal device according to the page data provided by the server, wherein the relevant link in the preset interactive page may be generated based on a private protocol and point to a preset file processing client of the terminal device.
[0112] Specifically, when the user performs a corresponding operation (for example, checking or clicking the identification information of a business file and a certain operation type option) in the preset interactive page displayed by the terminal device through the page end (for example, the browser end) to select and confirm the identification information and the target operation type of the target file; the terminal device can collect the identification information and the target operation type of the target file through the above-mentioned preset interactive page and obtain the identification information and the target operation type according to the user's operation, and generate a trigger request carrying the identification information and the target operation type of the target file; further, the terminal device can send the above-mentioned trigger request to the preset file processing client through the page end according to the relevant link in the preset interactive page, instead of sending it directly to the server, so as to trigger the preset file processing client to interact with the server to perform specific operation processing on the target file.
[0113] In some embodiments, the above-mentioned calling, according to the trigger request, of a preset file processing client to interact with a server to obtain a matching target script file, may specifically include: calling, according to the trigger request, a web service module of a preset file processing client to generate and send a call request to the server; wherein the call request carries at least a target operation type; receiving an address parameter fed back by the server based on the call request; and downloading the target script file according to the address parameter through the web service module of the preset file processing client.
[0114] Through the above embodiment, the preset file processing client can interact with the server through the web service module to obtain a matching target script file suitable for operating and processing the target file.
[0115] In some more complex application scenarios with higher confidentiality requirements (for example, approval scenarios for confidential documents, etc.), it is often required to protect the data security during the target file operation process to avoid external leakage of the target file content information.
[0116] In some embodiments, for the above application scenarios with high confidentiality requirements, the above-mentioned operation of running the target script file through the preset file processing client to respond to user operations and perform operation processing on the target file that matches the target operation type may include the following contents during specific implementation:
[0117] S1: running the target script file through the web service module and interacting with the server to obtain the encrypted data of the matching target file, and saving the encrypted data of the target file in a local temporary directory of the terminal device;
[0118] S2: Create a security directory through peripheral function programs;
[0119] S3: calling the encryption and decryption software API calling program to call the local encryption and decryption software of the terminal device to decrypt the encrypted data of the target file in the security directory to obtain the target file;
[0120] S4: calling the document editor API program to call the local document editor of the terminal device to respond to the user operation and perform an operation process on the target file that matches the target operation type.
[0121] Through the above embodiments, the preset file processing client can be used to efficiently perform matching operation processing on the target file while protecting the data security of the target file.
[0122] In some embodiments, the temporary directory may be a storage area locally set on the terminal device that allows external access to query (e.g., a folder open to users). The temporary directory is only used to store non-confidential file data or encrypted data of files.
[0123] The above-mentioned security directory can specifically be a peripheral function program in a preset file processing client, which is set locally on the terminal device based on relevant security protocols and does not allow outside access to query areas (for example, a folder hidden from the user and cannot be opened by the user). The above-mentioned security directory can be used to store decrypted file data, etc.
[0124] In order to better protect data security, the above-mentioned security directory can be further configured to allow only preset file processing clients to access and operate the decrypted file data in the security directory according to relevant security protocols and with corresponding security credentials.
[0125] In some embodiments, for different operation types, the terminal device can call the program through the document editor API to call the local document editor of the terminal device to adopt different modes to respond to user operations, so as to perform various operations on the target file, meet the user's diverse operation needs, and improve the user's experience.
[0126] In some embodiments, when the target operation type includes a draft operation, the document editor API calling program is used to call a local document editor of the terminal device to respond to the user operation, and an operation matching the target operation type is performed on the target file. When implemented specifically, the following may be included:
[0127] S1: running the target script file through the web service module, using the document editor API to call the program, calling the local document editor of the terminal device to open the target file in a traceless editable mode, and registering an opening callback event;
[0128] S2: calling the document editor to edit the target file according to the user operation to obtain the drafted target file;
[0129] S3: responding to the end instruction of the user, exiting the document editor, and calling the encryption and decryption software to encrypt the drafted target file to obtain the encrypted data of the drafted target file;
[0130] S4: calling the web service module to send the encrypted data of the drafted target file to the server; and deleting the target file in the security directory.
[0131] Through the above embodiments, the terminal device can better utilize the preset file processing client structural module to cooperate with the user operation and efficiently and safely complete the drafting operation for the target file.
[0132] In some embodiments, when the target operation type includes a draft operation, the identification information of the acquired target file may be identification information corresponding to a blank template file. Accordingly, the acquired target file may be a blank template file matching the identification information.
[0133] In some embodiments, the invisible editable mode may be an operation mode that allows the user to edit without leaving any relevant editing traces. The registration start callback event may specifically indicate that after the user operation is completed, the final draft target file needs to be sent back to the server for storage and management.
[0134] In some embodiments, after the document editor is called to edit the target file according to the user operation to obtain the drafted target file, the user also performs a naming operation on the drafted target file through a preset file processing client to set a file name for the drafted target file. Accordingly, the preset file processing client can send the encrypted data of the drafted target file and the file name to the server.
[0135] On the server side, the server may receive the encrypted data of the drafted target file, and use the file name set by the user as identification information corresponding to the encrypted data of the drafted target file to store the encrypted data of the drafted target file.
[0136] In some embodiments, when the target operation type includes a review operation, the above-mentioned calling program through the document editor API calls the local document editor of the terminal device to respond to the user operation and performs an operation process on the target file that matches the target operation type. When specifically implemented, it may include:
[0137] S1: running the target script file through the web service module, using the document editor API to call the program, calling the local document editor of the terminal device to open the target file in read-only mode, and registering a close callback event;
[0138] S2: In response to the user's end instruction, exit the document editor and delete the target file in the security directory.
[0139] Through the above embodiments, the terminal device can better utilize the preset file processing client structure module and cooperate with the user operation to efficiently and safely open the target file for the user to read.
[0140] In some embodiments, when the target operation type includes a manuscript review operation, the identification information of the target file obtained may be identification information corresponding to an existing non-blank file. Accordingly, the target file obtained may be an existing non-blank file stored in the server that matches the identification information.
[0141] In some embodiments, the read-only mode may be an operation mode that only allows the user to browse and read, but does not allow the user to modify or edit. The registration close callback event may specifically indicate that after the user operation is completed, the target file does not need to be sent back to the server for storage and management.
[0142] In some embodiments, when the target operation type includes a manuscript revision operation, the above-mentioned calling program through the document editor API calls the local document editor of the terminal device to respond to the user operation and performs an operation process on the target file that matches the target operation type. When specifically implemented, it may include:
[0143] S1: running the target script file through the web service module, using the document editor API to call the program, calling the local document editor of the terminal device to open the target file in a traceable editable mode, and registering an opening callback event;
[0144] S2: calling the document editor to edit the target file within the matching authority range according to the user operation, and obtaining a revised target file;
[0145] S3: responding to the end instruction of the user, exiting the document editor, and calling the encryption and decryption software to encrypt the revised target file to obtain the encrypted data of the revised target file;
[0146] S4: calling the web service module to send the encrypted data of the revised target file to the server; and deleting the target file in the security directory.
[0147] Through the above embodiments, the terminal device can better utilize the preset file processing client structure module and cooperate with the user operation to efficiently and safely modify and edit the target file to obtain a revised target file that meets the user requirements.
[0148] In some embodiments, the above-mentioned traceable editable mode can specifically be an operation mode that allows the user to modify and edit the target file within a matching permission range and retain the editing traces.
[0149] In some embodiments, the matching permission range can be specifically determined based on the user's identity information.
[0150] In some embodiments, a preset file processing client can obtain the identity information of a user when logging into a terminal device, and query the system's user database based on the identity information to determine the user's identity type; then, based on preset permission rules, determine the permission level corresponding to the user's identity type; and then determine the permission range that matches the permission level.
[0151] For example, if it is determined that the user's identity type corresponds to a lower permission level, the permission range for the user can be determined to be: the user is only allowed to modify and edit the text of the first paragraph at the beginning of the target file. For another example, if it is determined that the user's identity type corresponds to a higher permission level, the permission range for the user can be determined to be: the user is allowed to modify and edit the entire text of the target file.
[0152] Through the above embodiment, the terminal device can use the preset file processing client to determine the user's authority level based on the user's identity information and cooperate with the user to perform specific modifications and edits on the target file within the authority scope that matches the user's authority level, thereby meeting more complex scenario application requirements.
[0153] In some embodiments, when the target operation type includes a proofreading operation, the target file includes: a first target file and a second target file. The first target file may be a file to be proofread, and the second target file may be a reference file used as a proofreading basis.
[0154] Correspondingly, the above-mentioned calling program through the document editor API calls the local document editor of the terminal device to respond to the user operation, and performs an operation process on the target file that matches the target operation type. When specifically implemented, it may include the following contents:
[0155] S1: Run the target script file through the web service module, use the document editor API to call the program, call the local document editor of the terminal device to open the first target file in the traceable editable mode, and register an open callback event for the first target file; at the same time, call the local document editor of the terminal device to open the second target file in the read-only mode, and register a close callback event for the second target file; the second target file is used as a reference file for proofreading operations;
[0156] S2: calling the document editor to edit the first target file within a matching authority range according to the user operation, to obtain a proofread first target file;
[0157] S3: responding to the end instruction of the user, exiting the document editor, and calling the encryption and decryption software to encrypt the proofread first target file to obtain the encrypted data of the proofread first target file;
[0158] S4: calling the web service module to send the encrypted data of the proofread first target file to the server; and deleting the first target file and the second target file in the security directory.
[0159] Through the above embodiment, the terminal device uses the preset file processing client structure module to open both the first target file and the second target file for the user at the same time, so that the user can refer to the second target file and proofread the first target file based on the second target file; and during the proofreading process, the first target file can be modified and edited in a timely manner, thereby meeting more complex scenario application requirements.
[0160] In some embodiments, when the target operation type includes a cleanup operation, the above-mentioned calling program through the document editor API calls the local document editor of the terminal device to respond to the user operation and performs an operation process on the target file that matches the target operation type. When implemented specifically, the following contents may be included:
[0161] S1: running the target script file through the web service module, using the document editor API to call the program, calling the local document editor of the terminal device to open the target file in implicit mode, and registering an opening callback event;
[0162] S2: calling the document editor to eliminate the editing traces in the target file according to the user's acceptance instruction, and obtaining a cleaned target file;
[0163] S3: responding to the end instruction of the user, exiting the document editor, and calling the encryption and decryption software to encrypt the cleaned target file to obtain the encrypted data of the cleaned target file;
[0164] S4: calling the web service module to send the encrypted data of the cleaned target file to the server; and deleting the target file in the security directory.
[0165] Through the above embodiment, the terminal device can use the preset file processing client to cooperate with the user to perform a cleanup operation when necessary to eliminate the editing traces left in the target file during the previous revision operation and obtain a pure version of the target file.
[0166] As can be seen from the above, the target file processing method provided by the embodiment of this specification can be pre-deployed in the terminal device before specific implementation, which includes at least a web service module, a preset javascript object, a document editor API call program, an encryption and decryption software API call program, and a preset file processing client of a peripheral function program; during specific implementation, the preset interactive page associated with the preset file processing client can be displayed to the user through the terminal device first; and through the interactive page, the identification information of the target file to be processed and the target operation type for the target file can be determined; then the preset file processing client is triggered to interact with the server accordingly to obtain a matching target script file; and then the above target script file can be run through the preset file processing client to respond and call the local software program of the terminal device according to the specific operation of the user, and the target file can be processed with the target operation type. Therefore, under the premise of protecting the data security of the target file, the user's diversified operation needs can be better met, and the various types of operation processing of the target file can be efficiently and conveniently realized by effectively calling the relevant local software programs of the terminal device. At the same time, it can also effectively reduce the dependence on the operating environment during the file processing process, simplify the user operation process, reduce the difficulty of user operation, and improve the user's experience.
[0167] See also Figure 4 As shown, the embodiment of this specification also provides a method for processing a target file. The method is specifically applied to the server side. When implemented specifically, the method may include the following contents.
[0168] S401: receiving a call request sent by a preset file processing client deployed in a terminal device; wherein the call request carries at least a target operation type;
[0169] S402: Determine a target script file matching the target operation type from a plurality of preset script files; and obtain an address parameter of the target script file;
[0170] S403: Sending the address parameters of the target script file to a preset file processing client; wherein the preset file processing client downloads the target script file according to the address parameters, and the preset file processing client also responds to user operations by running the target script file to perform operations matching the target operation type on the target file.
[0171] The server may be a server in the system responsible for storing and managing business files. The preset script file may be a preset javascript script, wherein each preset script file corresponds to the identification information and / or target operation type of a business file.
[0172] Through the above-mentioned embodiments, the server can interact with the terminal device equipped with a preset file processing client to cooperate with the user to perform specific operations on the target file efficiently and conveniently.
[0173] The embodiment of the present specification also provides a terminal device, including a display processor and a memory for storing processor executable instructions, and the terminal device is also equipped with a preset file processing client. When the processor executes the instructions, the preset file processing client is used to perform the following steps according to the instructions: displaying a preset interactive page to the user; wherein the preset interactive page contains identification information of multiple business files and operation type options for the business files; and the preset interactive page is configured to be associated with the preset file processing client; through the preset interactive page, determining the identification information of the target file to be processed and the target operation type for the target file, and generating a trigger request for the preset file processing client; according to the trigger request, calling the preset file processing client to interact with the server to obtain a matching target script file; wherein the trigger request carries at least the identification information of the target file and the target operation type; the server is used to store business files; running the target script file through the preset file processing client to respond to user operations and perform operation processing on the target file that matches the target operation type.
[0174] In order to complete the above instructions more accurately, refer to Figure 5 As shown, the embodiment of this specification also provides another specific server, wherein the server includes a display 501, a processor 502, a preset file processing client 503, and a memory 504, and the above structures are connected through internal cables so that each structure can perform specific data interaction.
[0175] Among them, the display 501 can be specifically used to display a preset interactive page to the user; wherein the preset interactive page contains identification information of multiple business files and operation type options for business files; and the preset interactive page is set to be associated with the preset file processing client.
[0176] The processor 502 can be specifically used to determine the identification information of the target file to be processed and the target operation type for the target file through the preset interactive page, and generate a trigger request for the preset file processing client; according to the trigger request, call the preset file processing client 503 to interact with the server to obtain a matching target script file; wherein the trigger request carries at least the identification information of the target file and the target operation type; the server is used to store business files; and run the target script file through the preset file processing client 503 to respond to user operations and perform operations on the target file that match the target operation type.
[0177] The memory 504 may be specifically used to store corresponding instruction programs.
[0178] In this embodiment, the processor 502 may be implemented in any appropriate manner. For example, the processor may take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) executable by the (micro)processor, a logic gate, a switch, an application specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, etc. This specification does not limit this.
[0179] In this embodiment, the memory 504 may include multiple levels. In a digital system, anything that can store binary data can be a memory; in an integrated circuit, a circuit with a storage function but no physical form is also called a memory, such as RAM, FIFO, etc.; in a system, a storage device with a physical form is also called a memory, such as a memory stick, TF card, etc.
[0180] The embodiment of the present specification also provides a computer storage medium based on the above-mentioned target file processing method, wherein the computer storage medium stores computer program instructions, and when the computer program instructions are executed, the following are achieved: displaying a preset interactive page to the user; wherein the preset interactive page contains identification information of multiple business files, and operation type options for the business files; and the preset interactive page is configured to be associated with the preset file processing client; through the preset interactive page, determining the identification information of the target file to be processed and the target operation type for the target file, and generating a trigger request for the preset file processing client; according to the trigger request, calling the preset file processing client to interact with the server to obtain a matching target script file; wherein the trigger request carries at least the identification information of the target file and the target operation type; the server is used to store business files; running the target script file through the preset file processing client to respond to user operations and perform operation processing on the target file that matches the target operation type.
[0181] In this embodiment, the storage medium includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), a cache, a hard disk (HDD), or a memory card. The memory may be used to store computer program instructions. The network communication unit may be an interface for network connection communication set in accordance with the standard specified by the communication protocol.
[0182] In this embodiment, the functions and effects specifically implemented by the program instructions stored in the computer storage medium can be explained in comparison with other implementations and will not be described in detail here.
[0183] See also Figure 6 As shown, at the software level, the embodiment of this specification also provides a device for processing a target file, which may specifically include the following structural modules:
[0184] The display module 601 may be specifically used to display a preset interactive page to the user; wherein the preset interactive page includes identification information of multiple business files and operation type options for the business files; and the preset interactive page is configured to be associated with the preset file processing client;
[0185] The first processing module 602 may be specifically configured to determine identification information of a target file to be processed and a target operation type for the target file through the preset interactive page, and generate a trigger request for the preset file processing client;
[0186] The calling module 603 may be specifically used to call a preset file processing client to interact with a server according to the trigger request to obtain a matching target script file; wherein the trigger request carries at least identification information of the target file and a target operation type; and the server is used to store business files;
[0187] The second processing module 604 may be specifically configured to run the target script file through the preset file processing client to respond to a user operation and perform an operation processing on the target file that matches a target operation type.
[0188] It should be noted that the units, devices or modules described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. For the convenience of description, the above devices are described separately by functions divided into various modules. Of course, when implementing this specification, the functions of each module can be implemented in the same or more software and / or hardware, or the modules that implement the same function can be implemented by a combination of multiple sub-modules or sub-units. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0189] It can be seen from the above that the target file processing device provided in the embodiments of this specification can better meet the diverse operation requirements of users, and can efficiently and conveniently implement various types of operation processing on the target file by calling the local software program of the terminal device.
[0190] In a specific scenario example, the target file processing method provided in this specification can be applied to realize online editing of encrypted official documents. For the specific implementation process, please refer to the following content.
[0191] In this scenario example, a document editing client (corresponding to the preset file processing client) is constructed based on the method provided in this specification, by converting the interaction from the browser to the operating system implemented by the designated browser in the traditional architecture to be completed uniformly by the document editing client. Figure 7 shown.
[0192] Specifically, the above-mentioned official document editing client is a C-end program, which is composed of a lightweight web server (for example, a web service module), a preset javascript object, a document editor API calling program, an encryption and decryption software API calling program, and a peripheral function Client-end program. Figure 8 shown.
[0193] In specific deployment, the above-mentioned official document editing client is a C-end program, developed based on the operating system API, and the web server is embedded in the official document editing client. When deploying and installing the official document editing client program, the web server can be registered with the operating system so that the web server API can be called at startup to start the WEB service listening, which is used to receive the instructions for calling the official document editing function (for example, triggering request) issued by the page end (for example, the browser of the terminal device), and run the javascript script (for example, the target script file) provided by the remote end.
[0194] The above-mentioned official document editing client can also be pre-installed with a local javascript compiler to encapsulate the call to the document editor API and the encryption and decryption software API and realize bridging. The built-in HTTP client can realize silent file upload and download, and realize peripheral functions such as directory creation and movement through the operating system shell. When the javascript script executed by the web server calls a local object (for example, a javascript object), the local javascript compiler can take over and call the encapsulation interface to realize the corresponding function.
[0195] After the web server receives the call request sent by the application side (for example, the server), it can parse the official document editing function address parameters from the request address, and then download the actual official document editing function script (for example, a matching preset javascript script) from the application side according to the parameters and load it to the client web server for execution, and locate the specific method execution from the official document editing function script through the calling method parameters in the request.
[0196] Since the above-mentioned official document editing function script can be deployed on the application side, the application side can flexibly carry out secondary development of the corresponding functions based on its own needs. When the official document editing function calls the javascript object and its method preset locally in the official document editing client, it is transferred to different processing modules for processing. For example, if the javascript object corresponds to the document editor function, the specific document editor is operated through the document editor COM interface handle to complete the actual operation.
[0197] For example, when implementing the corresponding encryption and decryption functions, the encryption and decryption software API is called to complete the encryption and decryption operations. At the same time, when the peripheral functions need to be enabled, the specific functions can be implemented by calling the client-side peripheral function module. Specifically, the document editor COM interface caller and the encryption and decryption software API interface caller correspond to the specified document editor or encryption and decryption software, and a new set of interface callers is built-in for each compatible software.
[0198] In specific implementations, it is possible to achieve silent downloading and browsing / editing of encrypted files (see Figure 7 in the download path).
[0199] Specifically, the application side requests the document editing client to download the file, the file download module of the document editing client sends a request to the file server to download a specific encrypted document and save it to a local temporary directory, the file download module calls the API of the encryption and decryption software to decrypt the ciphertext file and put it into the security directory, obtains the independent access rights and path of the local security directory through the encryption and decryption software, and calls the document editor API interface for limited permission browsing / editing.
[0200] In the specific implementation, the encrypted file browsing and uploading function can also be realized (see Figure 7 upload path in the directory).
[0201] Specifically, when the official document editing client calls the browsing / editing interface, it registers a callback with the document editor. When the document editor completes browsing / editing, the callback function is triggered to call the encryption and decryption software API for re-encryption. The file upload module of the official document editing client accesses the secure directory and uploads the encrypted file to the file server.
[0202] For various types of operations existing in specific business scenario technologies (including: drafting, viewing, editing, cleaning, proofreading, etc.), the above-mentioned official document editing client can be used to implement them in the following ways.
[0203] For drafting (e.g., drafting operation): users can send a request to the document editing client through the "Draft" operation on the electronic document system page (e.g., the preset interactive page), the request method is "File Download" and a file download link is provided, the document editing client downloads an empty document or template document to the local according to the request parameters and returns a download success mark.
[0204] After the application confirms that the download is successful, it requests the document editing client to call the encryption and decryption software API to encrypt and move it to a local temporary directory, then decrypt and put the plain text into a secure directory. The document is explicitly opened through the document editor API in a non-traceable editing mode and a save callback event is registered. When the user edits the document, saves it and exits the document editor, the save callback is triggered, and the encryption and decryption software API is called to re-encrypt and move it out of the secure directory to the temporary directory to overwrite it. The document editing client calls the upload module to upload the encrypted document to the file server.
[0205] For viewing (for example, reading manuscripts): users can trigger the download of encrypted documents to a local temporary directory through the "View Text" operation on the electronic document system page, request the document editing client to call the encryption and decryption software API to decrypt the document and put it into the local security directory, then explicitly open the document in read-only mode through the document editor API and register a close callback event. When the user finishes browsing and exits the document editor, the close callback is triggered, the document in the security directory is deleted, and the application side is notified to end browsing.
[0206] For editing (for example, manuscript revision): the user triggers the download of the encrypted document to a local temporary directory through the "Edit Text" operation on the electronic document system page, requests the document editing client to call the encryption and decryption software API to encrypt and put it into the local security directory, and then uses the document editor API to explicitly open the document in an editable and traceable manner (editing permissions, revision mode) and register a save callback event. After the user edits the document, saves it and exits the document editor, triggers the save callback, calls the encryption and decryption software API to re-encrypt and move it out of the security directory to the temporary directory to overwrite it, and the document editing client calls the upload module to upload the encrypted document to the file server.
[0207] For clearing drafts (for example, clearing draft operations): the user triggers the download of the encrypted document to a local temporary directory through the "clearing draft" operation on the electronic document system page, requests the document editing client to call the encryption and decryption software API to encrypt and put it into the local secure directory, then implicitly opens the document through the document editor API and registers a save callback event, calls the "Accept All Revisions" interface to clear the traces, saves and triggers the callback, calls the encryption and decryption software API to re-encrypt and move out of the secure directory to the temporary directory to overwrite, and the document editing client calls the upload module to upload the encrypted document to the file server.
[0208] For proofreading (for example, proofreading operation): the user triggers the download of two versions of the encrypted document to the local temporary directory through the "proofreading" operation on the electronic document system page, requests the document editing client to call the encryption and decryption software API to decrypt and put it into the local security directory, and then uses the document editor API to explicitly open the two documents in read-only and horizontally tiled mode and register a close callback event. When the user finishes browsing and exits the document editor, the close callback is triggered, the document in the security directory is deleted, and the application side is notified to end browsing.
[0209] Through the above scenario examples, the official document editing client can be used as the hub to provide centralized services for business needs centered on the official document editing scenario, and the logic scattered in the browser, various clients and application sides in the traditional scenario can be concentrated into a client program implementation, and all C-side program interfaces can be mapped to the B-side through the client, hiding the complexity of the C-side call, which helps the application side get rid of the dependence on the client environment and flexibly customize the needs it needs to achieve. At the same time, the client integrates peripheral functions such as encryption and decryption, file processing, etc., provides full-scenario function coverage of official document editing and full-process security and controllability, ensuring the efficiency, ease of use, security and flexibility of the official document editing scenario.
[0210] Although the present specification provides method operation steps as described in the embodiments or flow charts, more or less operation steps may be included based on conventional or non-creative means. The order of steps listed in the embodiments is only one way of executing the order of many steps, and does not represent a unique execution order. When the device or client product in practice is executed, it can be executed in sequence or in parallel according to the method shown in the embodiments or the drawings (for example, a parallel processor or a multi-threaded processing environment, or even a distributed data processing environment). The term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, product or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such a process, method, product or device. In the absence of more restrictions, it is not excluded that there are other identical or equivalent elements in the process, method, product or device including the elements. The first, second, etc. words are used to represent the name, and do not represent any particular order.
[0211] Those skilled in the art also know that, in addition to implementing the controller in a purely computer-readable program code, the controller can be made to implement the same function in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, such a controller can be considered as a hardware component, and the devices for implementing various functions included therein can also be considered as structures within the hardware component. Or even, the devices for implementing various functions can be considered as both software modules for implementing the method and structures within the hardware component.
[0212] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, classes, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media including storage devices.
[0213] Through the description of the above embodiments, it can be known that those skilled in the art can clearly understand that the present specification can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present specification can essentially be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a mobile terminal, a server, or a network device, etc.) to execute the methods described in each embodiment of the present specification or some parts of the embodiments.
[0214] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. This specification can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld devices or portable devices, tablet devices, multi-processor systems, microprocessor-based systems, set-top boxes, programmable electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc.
[0215] Although the present specification is described through embodiments, those skilled in the art will appreciate that there are many modifications and changes to the present specification without departing from the spirit of the present specification, and it is intended that the appended claims include these modifications and changes without departing from the spirit of the present specification.
Claims
1. A method for processing a target file, characterized in that: Applied to a terminal device, wherein the terminal device is provided with a preset file processing client, the method comprising: A preset interactive page is displayed to the user; wherein the preset interactive page includes identification information of multiple business files and operation type options for the business files; and the preset interactive page is configured to be associated with the preset file processing client; the relevant link in the preset interactive page is generated based on a private protocol and points to a link of the preset file processing client of the terminal device; Determine identification information of a target file to be processed and a target operation type for the target file through the preset interactive page, and generate a trigger request for the preset file processing client; According to the trigger request, a preset file processing client is called to interact with the server to obtain a matching target script file; wherein the trigger request carries at least identification information of the target file and a target operation type; the server is used to store business files; The target script file is run by the preset file processing client to respond to the user operation and perform an operation processing on the target file that matches the target operation type; The preset file processing client at least includes: a web service module, a preset javascript object, a document editor API calling program, an encryption and decryption software API calling program, and a peripheral function program; The web service module, the preset javascript object, the document editor API call program, the encryption and decryption software API call program, and the peripheral function program are pre-registered in the local operating system of the terminal device to bridge the document editor and the encryption and decryption software installed locally on the terminal device; the preset javascript object connects the document editor API call program and the encryption and decryption software API call program for subsequent script files running with the web service module; Correspondingly, the target script file is run through the web service module in the preset file processing client, and the bridged local document editor and encryption and decryption software are called by utilizing the document editor API calling program and the encryption and decryption software API calling program to cooperate with the user's specific operations and perform corresponding operations on the target file.
2. The method according to claim 1, characterized in that The target script file includes a preset javascript script that matches the target operation type and / or identification information of the target file.
3. The method according to claim 1, characterized in that According to the trigger request, a preset file processing client is called to interact with the server to obtain a matching target script file, including: According to the trigger request, calling a preset web service module of the file processing client generates and sends a call request to the server; wherein the call request carries at least a target operation type; Receiving the address parameter fed back by the server based on the call request; The target script file is downloaded according to the address parameter through the web service module of the preset file processing client.
4. The method according to claim 1, characterized in that: The target files include confidential business files to be approved; correspondingly, the target operation types include at least one of the following: drafting operation, revising operation, cleaning operation, reading operation, and proofreading operation.
5. The method according to claim 4, characterized in that The target script file is run by the preset file processing client to respond to the user operation and perform an operation processing on the target file that matches the target operation type, including: Running the target script file through the web service module and interacting with the server to obtain the encrypted data of the matching target file, and saving the encrypted data of the target file in a local temporary directory of the terminal device; Create a security directory through peripheral function programs; By calling the encryption and decryption software API program, the local encryption and decryption software of the terminal device is called to decrypt the encrypted data of the target file in the security directory to obtain the target file; The document editor API calling program is used to call the local document editor of the terminal device to respond to the user operation and perform an operation process on the target file that matches the target operation type.
6. The method according to claim 5, characterized in that In the case where the target operation type includes a draft operation, calling the document editor local to the terminal device to respond to the user operation through the document editor API calling program, and performing an operation process on the target file that matches the target operation type, including: Run the target script file through the web service module, use the document editor API to call the program, call the local document editor of the terminal device to open the target file in the invisible editable mode, and register the start callback event; Calling the document editor to edit the target file according to the user operation to obtain the drafted target file; In response to the user's end instruction, the document editor is exited, and the encryption and decryption software is called to encrypt the drafted target file to obtain the encrypted data of the drafted target file; The web service module is called to send the encrypted data of the drafted target file to the server; and the target file in the security directory is deleted.
7. The method according to claim 5, characterized in that In the case where the target operation type includes a review operation, calling the document editor local to the terminal device to respond to the user operation through the document editor API calling program, and performing an operation process on the target file that matches the target operation type, including: Run the target script file through the web service module, use the document editor API to call the program, call the local document editor of the terminal device to open the target file in read-only mode, and register a close callback event; In response to the user's end instruction, the document editor is exited and the target file in the security directory is deleted.
8. The method according to claim 5, characterized in that In the case where the target operation type includes a manuscript revision operation, calling the document editor local to the terminal device to respond to the user operation through the document editor API calling program, and performing an operation process on the target file that matches the target operation type, including: Run the target script file through the web service module, use the document editor API to call the program, call the local document editor of the terminal device to open the target file in the traceable editable mode, and register the start callback event; Calling the document editor to edit the target file within a matching authority range according to the user operation to obtain a revised target file; In response to the end instruction of the user, the document editor is exited, and the encryption and decryption software is called to encrypt the revised target file to obtain the encrypted data of the revised target file; The web service module is called to send the encrypted data of the revised target file to the server; and the target file in the security directory is deleted.
9. The method according to claim 8, characterized in that The matching permission range is determined according to the user's identity information.
10. The method according to claim 5, characterized in that In the case where the target operation type includes a proofreading operation, the target file includes: a first target file and a second target file; Correspondingly, the document editor API calling program is used to call the local document editor of the terminal device to respond to the user operation, and to perform an operation process on the target file that matches the target operation type, including: The target script file is run through the web service module, and the document editor API is used to call the program, and the document editor local to the terminal device is called to open the first target file in a traceable editable mode, and a start callback event is registered for the first target file; at the same time, the document editor local to the terminal device is called to open the second target file in a read-only mode, and a close callback event is registered for the second target file; the second target file is used as a reference file for proofreading operations; Calling the document editor to edit the first target file within a matching authority range according to the user operation, to obtain a proofread first target file; In response to the end instruction of the user, the document editor is exited, and the encryption and decryption software is called to encrypt the proofread first target file to obtain the encrypted data of the proofread first target file; The web service module is called to send the encrypted data of the proofread first target file to the server; and the first target file and the second target file in the security directory are deleted.
11. The method according to claim 5, characterized in that In the case where the target operation type includes a cleanup operation, calling the document editor local to the terminal device to respond to the user operation through the document editor API calling program, and performing an operation process on the target file that matches the target operation type, including: Run the target script file through the web service module, use the document editor API to call the program, call the local document editor of the terminal device to open the target file in implicit mode, and register an opening callback event; Calling the document editor to eliminate the editing traces in the target file according to the user's acceptance instruction, and obtaining a cleaned target file; In response to the end instruction of the user, the document editor is exited, and the encryption and decryption software is called to encrypt the cleaned target file to obtain the encrypted data of the cleaned target file; The web service module is called to send the encrypted data of the cleaned target file to the server; and the target file in the security directory is deleted.
12. A method for processing a target file, characterized in that: Applicable to servers, including: Receive a call request sent by a preset file processing client deployed on a terminal device; wherein the call request carries at least a target operation type; the terminal device determines the identification information of the target file to be processed and the target operation type for the target file through the preset interactive page, and generates a trigger request for the preset file processing client; the relevant link in the preset interactive page is generated based on a private protocol and points to a link of the preset file processing client of the terminal device; the preset file processing client at least includes: a web service module, a preset javascript object, a document editor API call program, an encryption and decryption software API call program, and a peripheral function program; the web service module, the preset javascript object, the document editor API call program, the encryption and decryption software API call program, and the peripheral function program are pre-registered in the local operating system of the terminal device to bridge the document editor and encryption and decryption software installed locally on the terminal device; the preset javascript object connects the document editor API call program and the encryption and decryption software API call program for subsequent script files running with the web service module; Determine a target script file matching the target operation type from a plurality of preset script files; and obtain an address parameter of the target script file; The address parameters of the target script file are sent to a preset file processing client; wherein the preset file processing client downloads the target script file according to the address parameters, and the preset file processing client also responds to user operations by running the target script file to perform operations matching the target operation type on the target file; the preset file processing client runs the target script file through a web service module, and calls the bridged local document editor and encryption and decryption software by utilizing a document editor API calling program and an encryption and decryption software API calling program to cooperate with the user's specific operations and perform corresponding operations on the target file.
13. A target file processing device, characterized in that: include: A display module, used to display a preset interactive page to the user; wherein the preset interactive page contains identification information of multiple business files and operation type options for the business files; and the preset interactive page is configured to be associated with the preset file processing client; the relevant link in the preset interactive page is generated based on a private protocol and points to a link of the preset file processing client of the terminal device; A first processing module, configured to determine, through the preset interactive page, identification information of a target file to be processed and a target operation type for the target file, and generate a trigger request for the preset file processing client; A calling module, used to call a preset file processing client to interact with a server according to the trigger request to obtain a matching target script file; wherein the trigger request carries at least identification information of the target file and a target operation type; the server is used to store business files; A second processing module is used to run the target script file through the preset file processing client to respond to the user operation and perform an operation processing on the target file that matches the target operation type; The preset file processing client at least includes: a web service module, a preset javascript object, a document editor API calling program, an encryption and decryption software API calling program, and a peripheral function program; The web service module, the preset javascript object, the document editor API call program, the encryption and decryption software API call program, and the peripheral function program are pre-registered in the local operating system of the terminal device to bridge the document editor and the encryption and decryption software installed locally on the terminal device; the preset javascript object connects the document editor API call program and the encryption and decryption software API call program for subsequent script files running with the web service module; The second processing module is specifically used to run the target script file through the web service module in the preset file processing client, and to call the bridged local document editor and encryption and decryption software by utilizing the document editor API calling program and the encryption and decryption software API calling program to cooperate with the user's specific operations and perform corresponding operations on the target file.
14. A terminal device, characterized in that: It includes a display, a processor and a memory for storing processor executable instructions, and the terminal device is also equipped with a preset file processing client. When the processor executes the instructions, it uses the preset file processing client to implement the steps of the method described in any one of claims 1 to 11.
15. A computer-readable storage medium, characterized in that: Computer instructions are stored thereon, and when the instructions are executed, the steps of the method according to any one of claims 1 to 11 are implemented.
Citation Information
Patent Citations
Method and system for managing cloud nodes and central server
CN102833092A
Automated script and apparatus for processing front-end tasks
CN104965742A
File editing method and device
CN105159875A
Game log real-time processing system and method
CN105426292A
Operation method and device for application program and server
CN106371905A