CN113032042A - Target file processing method and device and terminal equipment - Google Patents

Target file processing method and device and terminal equipment Download PDF

Info

Publication number
CN113032042A
CN113032042A CN202110284753.XA CN202110284753A CN113032042A CN 113032042 A CN113032042 A CN 113032042A CN 202110284753 A CN202110284753 A CN 202110284753A CN 113032042 A CN113032042 A CN 113032042A
Authority
CN
China
Prior art keywords
file
target
calling
target file
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110284753.XA
Other languages
Chinese (zh)
Inventor
蒋科
陈磊
洪佳璟
吴琼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110284753.XA priority Critical patent/CN113032042A/en
Publication of CN113032042A publication Critical patent/CN113032042A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Abstract

The specification provides a processing method and device of a target file and terminal equipment. Based on the method, the terminal equipment provided with the preset file processing client can firstly display a preset interactive page associated with the preset file processing client to a user; through the interactive page, the identification information of the target file to be processed and the target operation type aiming at the target file are determined; triggering and calling a preset file processing client to perform corresponding interaction with the server so as to obtain a matched target script file; and then the target script file can be operated through a preset file processing client, a local software program of the terminal equipment is called in response and according to user operation, and operation processing matched with the target operation type is carried out on the target file. Therefore, diversified operation requirements of users can be better met, and various types of operation processing of the target file can be efficiently and conveniently realized by calling a local software program of the terminal equipment.

Description

Target file processing method and device and terminal equipment
Technical Field
The present specification belongs to the technical field of big data, and in particular, relates to a method and an apparatus for processing a target file, and a terminal device.
Background
In some file data processing scenarios with higher security requirements (e.g., approval scenarios of document files, etc.), based on the existing method, in order to protect data security, before specific implementation, a user often needs to download and install a specified software program such as a specified browser and a specified document editor in a terminal device; and then, based on the bottom logic of the specified operating system, the specified software program is specifically set and connected. In specific implementation, a user often needs to perform operation processing on file data according to corresponding operation rules and only can call the specified software program (for example, only can call a specified document editor to perform modification operation on a document file, etc.).
It can be seen that the above method is highly dependent on the operating environment, and often requires a user to install and use a specific software program on the terminal device. Therefore, there is a problem that it is not flexible and convenient for the user to use. Moreover, the method has high requirements on users during implementation. For example, if the user replaces some software programs on the terminal device, the user is also required to reset and connect some software programs by himself. Therefore, the problems that the user operation is complicated, the operation difficulty is high, and the user experience is relatively poor exist.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The specification provides a method and a device for processing a target file and a terminal device, so as to meet diversified operation requirements of a user, and efficiently and conveniently realize various types of operation processing on the target file by calling a local software program of the terminal device.
The processing method of the target file provided by the present specification is applied to a terminal device, wherein the terminal device is provided with a preset file processing client, and the method includes:
displaying a preset interactive page to a user; the preset interactive page comprises identification information of a plurality of service files and operation type options aiming at the service files; the preset interactive page is set to be associated with the preset file processing client;
determining identification information of a target file to be processed and a target operation type aiming at the target file through the preset interactive page, and generating a trigger request aiming at the preset file processing client;
calling a preset file processing client to interact with the server according to the trigger request so as to obtain a matched target script file; the triggering request at least carries identification information of a target file and a target operation type; the server is used for storing the service file;
and running the target script file through the preset file processing client to respond to user operation and perform operation processing matched with the target operation type on the target file.
In one embodiment, the target script file includes a preset javascript script matched with the target operation type and/or identification information of the target file.
In one embodiment, the preset file processing client at least comprises: the system comprises 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.
In one embodiment, invoking a preset file processing client to interact with a server according to the trigger request to obtain a matched target script file includes:
according to the trigger request, calling a preset web service module of the file processing client to generate and send a calling request to the server; the calling request at least carries a target operation type;
receiving address parameters fed back by the server based on the calling request;
and downloading the target script file according to the address parameter through a web service module of the preset file processing client.
In one embodiment, the target file comprises a confidential business file to be examined and approved; accordingly, the target operation type includes at least one of: draft drafting operation, draft correcting operation, draft clearing operation, draft reading operation and draft correcting operation.
In one embodiment, the running of the target script file by the preset file processing client to respond to a user operation and perform an operation process on the target file, where the operation process is matched with a target operation type, includes:
running the target script file through the web service module, interacting with a server to obtain the encrypted data of the matched target file, and storing the encrypted data of the target file in a local temporary directory of the terminal equipment;
creating a secure directory by a peripheral function program;
calling a local encryption and decryption software of the terminal equipment to decrypt the encrypted data of the target file in the security directory by the API calling program of the encryption and decryption software to obtain the target file;
and calling a local document editor of the terminal equipment to respond to user operation through the API calling program of the document editor, and carrying out operation processing matched with the target operation type on the target file.
In one embodiment, in a case that the target operation type includes a draft drawing operation, calling, by the document editor API calling program, a document editor local to a terminal device to respond to a user operation, and performing operation processing matching the target operation type on the target file, includes:
running the target script file through the web service module, calling a program by using the API of the document editor, calling a local document editor of the terminal equipment to open the target file in a traceless editable mode, and registering and starting a callback event;
calling the document editor to carry out editing operation on the target file according to user operation to obtain a draft-simulated target file;
responding to an end instruction of a user, exiting the document editor, calling encryption and decryption software to encrypt the draft-drawn target file, and obtaining encrypted data of the draft-drawn target file;
calling a web service module, and sending the encrypted data of the draft-drawn target file to a server; and delete the target file in the secure directory.
In one embodiment, in a case that the target operation type includes a reading operation, invoking, by the document editor API calling program, a document editor local to a terminal device in response to a user operation, and performing operation processing matching the target operation type on the target file, includes:
running the target script file through the web service module, calling a program by using the API of the document editor, calling a local document editor of the terminal equipment to open the target file in a read-only mode, and registering a closed callback event;
and responding to the end instruction of the user, exiting the document editor, and deleting the target file in the security directory.
In one embodiment, in a case that the target operation type includes a reform operation, invoking, by the document editor API calling program, a document editor local to a terminal device to respond to a user operation, and performing operation processing matching the target operation type on the target file, includes:
running the target script file through the web service module, calling a program by using the API of the document editor, calling a local document editor of the terminal equipment to open the target file in a trace-remaining editable mode, and registering and starting a callback event;
calling the document editor to carry out editing operation on the target file within a matched authority range according to user operation to obtain a modified target file;
responding to an end instruction of a user, exiting the document editor, and calling encryption and decryption software to encrypt the modified target file to obtain encrypted data of the modified target file;
calling a web service module, and sending the encrypted data of the reformed target file to a server; and delete the target file in the secure directory.
In one embodiment, the matching scope of authority is determined based on identity information of the user.
In one embodiment, in a case where the target operation type includes a proof operation, the target file includes: a first target file and a second target file;
correspondingly, calling a local document editor of the terminal equipment to respond to user operation through the API calling program of the document editor, and performing operation processing matched with the target operation type on the target file, wherein the operation processing comprises the following steps:
running the target script file through the web service module, calling a program by using the API of the document editor, calling a local document editor of the terminal equipment to open the first target file in a trace-keeping editable mode, and registering and starting a callback event aiming at the first target file; meanwhile, calling a local document editor of the terminal equipment to open the second target file in a read-only mode, and registering and closing a callback event aiming at the second target file; the second target file is used as a comparison file for manuscript correcting operation;
calling the document editor to carry out editing operation on the first target file within a matched authority range according to user operation to obtain a first target file after draft correction;
responding to an end instruction of a user, exiting the document editor, and calling encryption and decryption software to encrypt the first target file after the draft correction to obtain encrypted data of the first target file after the draft correction;
calling a web service module, and sending the encrypted data of the first target file after the manuscript correction to a server; and deleting the first target file and the second target file in the secure directory.
In one embodiment, in a case that the target operation type includes a draft clearing operation, invoking, by the document editor API calling program, a document editor local to a terminal device in response to a user operation, and performing operation processing matching the target operation type on the target file, includes:
running the target script file through the web service module, calling a program by using the API of the document editor, calling a local document editor of the terminal equipment to open the target file in an implicit mode, and registering and starting a callback event;
calling the document editor to eliminate editing traces in the target file according to an acceptance instruction of a user to obtain the target file after draft clearing;
responding to an end instruction of a user, exiting the document editor, and calling encryption and decryption software to encrypt the cleared target file to obtain encrypted data of the cleared target file;
calling a web service module, and sending the encrypted data of the cleared target file to a server; and delete the target file in the secure directory.
The present specification also provides a method for processing a target file, which is applied to a server and includes:
receiving a calling request sent by a preset file processing client arranged on a terminal device; the calling request at least carries a target operation type;
determining a target script file matched with the target operation type from a plurality of preset script files; acquiring address parameters of the target script file;
sending the address parameters of the target script file to a preset file processing client; and the preset file processing client also responds to the user operation by running the target script file, and performs operation processing matched with the target operation type on the target file.
The present specification also provides a target file processing apparatus, including:
the display module is used for displaying a preset interactive page to a user; the preset interactive page comprises identification information of a plurality of service files and operation type options aiming at the service files; the preset interactive page is set to be associated with the preset file processing client;
the first processing module is used for determining the identification information of a target file to be processed and the target operation type aiming at the target file through the preset interactive page and generating a trigger request aiming at the preset file processing client;
the calling module is used for calling a preset file processing client to interact with the server according to the trigger request so as to acquire a matched target script file; the triggering request at least carries identification information of a target file and a target operation type; the server is used for storing the service file;
and the second processing module is used for operating the target script file through the preset file processing client so as to respond to user operation and perform operation processing matched with the target operation type on the target file.
The specification further provides a terminal device, which comprises a display, a processor and a memory, wherein the memory is used for storing executable instructions of the processor, the terminal device is further provided with a preset file processing client, and the processor executes the instructions and realizes relevant steps of the target file processing method by using the preset file processing client.
The present specification also provides a computer readable storage medium having stored thereon computer instructions which, when executed, implement the relevant steps of the method of processing the target document.
Before specific implementation, a preset file processing client at least comprising 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 can be distributed in the terminal equipment in advance; in specific implementation, a preset interactive page associated with a preset file processing client can be displayed to a user through a terminal device; through the interactive page, the identification information of the target file to be processed and the target operation type aiming at the target file are determined; triggering and calling a preset file processing client to perform corresponding interaction with the server so as to obtain a matched target script file; and then the target script file can be operated through a preset file processing client, a local software program of the terminal equipment is called in response and according to specific operation of a user, and operation processing matched with the target operation type is carried out on the target file. Therefore, on the premise of protecting the data security of the target file, the diversified operation requirements of the user can be better met, and various types of operation processing on the target file can be efficiently and conveniently realized by flexibly and effectively calling the local related software program of the terminal equipment. Meanwhile, the dependence on the running environment in the file processing process can be effectively reduced, the user operation flow is simplified, the user operation difficulty is reduced, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present specification, the drawings needed to be used in the embodiments will be briefly described below, and the drawings in the following description are only some of the embodiments described in the present specification, and it is obvious to those skilled in the art that other drawings can be obtained according to the drawings without any creative effort.
Fig. 1 is a schematic diagram of an embodiment of a structural composition of a system to which a method for processing a target file provided by an embodiment of the present specification is applied;
fig. 2 is a schematic diagram of a first embodiment of a structural composition of a preset file processing client to which the processing method of a target file provided in the embodiment of the present specification is applied;
FIG. 3 is a flowchart illustrating a method for processing a target document according to an embodiment of the present disclosure;
FIG. 4 is a flowchart illustrating a method for processing a target document according to an embodiment of the present disclosure;
fig. 5 is a schematic structural component diagram of a terminal device provided in an embodiment of the present specification;
FIG. 6 is a schematic structural diagram of a target file processing apparatus according to an embodiment of the present disclosure;
FIG. 7 is a diagram illustrating an embodiment of a method for processing a target file according to an embodiment of the present disclosure;
fig. 8 is a schematic diagram of an embodiment of a method for processing an object file provided by an embodiment of the present specification, in an example scenario.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all of the embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step should fall within the scope of protection of the present specification.
In consideration of the existing method, users are often required to download and install specified software programs such as a specified document editor, a specified browser and the like on used terminal equipment in advance, and then the specified software programs are set and connected correspondingly by the users on the basis of the bottom logic of a specified operating system. When the file data is specifically processed, the user needs to perform specific operation processing on the file data according to the corresponding operation rule and only calls the specified software program.
This may cause the process of processing the file data by the user to have a greater dependence on the execution environment. Further, the user cannot freely use the software program originally installed in the terminal device, but must download and install a predetermined software program to perform a specific operation process on the file data. The operation of the user is more complicated, the operation difficulty is higher, and the use experience of the user is relatively poorer.
For the root cause of the above problems, before the specific implementation is considered, a preset file processing client including a web service module, a preset javascript object, a document editor API calling program, an encryption/decryption software API calling program, and a peripheral function program may be arranged in advance on a terminal device used by a user. Based on the preset file processing client, in specific implementation, the terminal device may display a preset interaction page associated with the preset file processing client to a user; through the interactive page, the identification information of the target file to be processed and the target operation type aiming at the target file are determined; triggering and calling a preset file processing client to perform corresponding interaction with the server so as to obtain a matched target script file; and then the target script file can be operated through a preset file processing client, a local software program of the terminal equipment is called in response and according to specific operation of a user, and operation processing matched with the target operation type is carried out on the target file. Therefore, on the premise of protecting the data safety of the target file, the diversified operation requirements of the user can be met, and the various types of operation processing of the target file can be efficiently and conveniently realized. Meanwhile, the dependence on the running environment in the file processing process can be effectively reduced, the user operation flow is simplified, the user operation difficulty is reduced, and the user experience is improved.
The embodiment of the specification provides a processing method of an object file, which can be particularly applied to a system comprising a server and a terminal device. Specifically, as shown in fig. 1, the server and the terminal device may be connected in a wired or wireless manner to perform specific data interaction.
In this embodiment, the server may specifically include a background server that is applied to a data processing platform side and is capable of implementing functions such as data transmission and data processing. Specifically, the server may be, for example, an electronic device having data operation, storage function and network interaction function. Alternatively, the server may be a software program running in the electronic device and providing support for data processing, storage and network interaction. In the present embodiment, the number of servers is not particularly limited. The server may specifically be one server, or may also be several servers, or a server cluster formed by several servers.
In this embodiment, the terminal device may specifically include a front-end electronic device that is applied to a user side and can implement functions such as data acquisition and data transmission. Specifically, the terminal device may be, for example, a desktop computer, a tablet computer, a notebook computer, a smart phone, and the like. Alternatively, the terminal device may be a software application capable of running in the electronic device. For example, some APP or the like may be installed and run on a smartphone.
In this embodiment, before the specific implementation, a preset file processing client may be arranged on the terminal device. As shown in fig. 2, the preset file processing client at least includes a web service module, a preset javascript object, a document editor API calling program, an encryption/decryption software API calling program, and a peripheral function program. The plurality of structural modules may be connected by internal cables.
The preset file processing client may be specifically understood as a C-side program, which is developed and designed based on an API (Application Programming Interface) of an operating system.
When the file processing method is specifically deployed, a web service module (for example, a lightweight web server) in a preset file processing client can be registered in an operating system of the terminal device, so that the preset file processing client can monitor request data or instruction data sent by a page side of the terminal device through the web service module and perform data interaction with a server on a far-end side.
When the configuration is carried out, the document editor API calling program and the encryption and decryption software API calling program in the preset file processing client are registered in the operating system of the terminal device, so that a user can quickly and conveniently bridge the document editor API calling program in the preset file processing client with a locally installed document editor (e.g., word, or WPS) of the terminal device without professional knowledge, and bridge the encryption and decryption software API calling program with locally installed encryption and decryption software (e.g., XX encryption master, or YY document guard) of the terminal device. So that the user does not need to additionally re-download and connect the designated software program. Based on the structure, the user can freely select the software program installed in the terminal equipment for bridging according to the personalized requirements and habits of the user, so that the diversified requirements of the user are met.
The preset javascript object may be specifically connected to the document editor API calling program, the encryption/decryption software API calling program, and other calling programs. When the preset file processing client runs specifically, a certain specific script file can be executed through the web service module, and when a locally preset javascript object is called according to a certain rule, the bridged local document editor, the encryption and decryption software and the like can be called by using the document editor API calling program and the encryption and decryption software API calling program to realize corresponding functions, so that specific operation processing aiming at file data is completed.
The peripheral function program (e.g., client-side program) can support a preset file processing client to implement functions such as creating a temporary directory, creating a secure directory, calling other associated interfaces, and the like, so as to cooperate with the operation processing on the file data.
In specific implementation, the terminal device may first respond to a presentation instruction initiated by the user, interact with the server, and present a preset interaction page to the user through a local page terminal (e.g., a local browser terminal, etc.). The preset interactive page may specifically include identification information of a plurality of service files and a plurality of operation type options for the service files. Further, the preset interactive page may be specifically generated based on page data provided by a server. Moreover, the link laid in the preset interactive page may be set based on a private protocol (non-http protocol), so that the link points to a preset file processing client of the terminal device instead of the server, and thus the preset interactive page may be associated with the preset file processing client. The server may be specifically configured to store and manage related service files.
The user can perform corresponding operations in the preset interactive page according to specific conditions and processing requirements to select the target file to be processed and the target operation type to be adopted.
Correspondingly, the terminal equipment can acquire the identification information of the target file selected by the user and the target operation type aiming at the target file through the preset interactive page (page end). Further, the page terminal may generate a trigger request carrying at least identification information of the target file and the target operation type, and send the trigger request to a preset file processing client.
Then, the preset file processing client may respond to the trigger request and perform data interaction with the server through the web service module to obtain a preset javascript script, such as one matching the target operation type, as the target script file.
Furthermore, the terminal device may run the target script file through a web service module in a preset file processing client, and call the bridged local software programs such as the local document editor, the encryption and decryption software and the like by using the document editor API call program and the encryption and decryption software API call program, so as to perform corresponding operation processing on the target file in cooperation with specific operations of the user. For example, various types of operations such as draft, reading, correcting, and clearing are performed on the target document.
Therefore, on the premise of protecting the data security of the target file, the diversified operation requirements of the user can be met, and various types of operation processing of the target file can be efficiently and conveniently realized.
Referring to fig. 3, an embodiment of the present disclosure provides a method for processing a target file. The method is particularly applied to the side of the terminal equipment. In particular implementations, the method may include the following.
S301: displaying a preset interactive page to a user; the preset interactive page comprises identification information of a plurality of service files and operation type options aiming at the service files; the preset interactive page is set to be associated with the preset file processing client;
s302: determining identification information of a target file to be processed and a target operation type aiming at the target file through the preset interactive page, and generating a trigger request aiming at the preset file processing client;
s303: calling a preset file processing client to interact with the server according to the trigger request so as to obtain a matched target script file; the triggering request at least carries identification information of a target file and a target operation type; the server is used for storing the service file;
s304: and running the target script file through the preset file processing client to respond to user operation and perform operation processing matched with the target operation type on the target file.
By the embodiment, diversified operation requirements of users can be better met, and various types of operation processing of the target file can be efficiently and conveniently realized by calling a local software program of the terminal equipment and matching with user operation.
In some embodiments, the service file may be a document file, an archive file, an operation file, or the like, corresponding to different application scenarios. Correspondingly, the target file may be a currently pending business file, an archive file to be archived, an operation file to be read and approved, or the like.
Further, in an application scenario with a relatively high requirement on confidentiality, data security of the service file is often required to be protected, and specific content of the service file is prevented from being leaked to the outside. Correspondingly, the target file can also be a confidential service file to be approved.
Through the embodiment, the processing method of the target file provided by the specification can be applied to various different application scenes to perform corresponding operation processing on various different target files, so that the diversified requirements of users for the target files can be met.
In some embodiments, the identification information of the service file may be specifically understood as identification information corresponding to a certain existing specific service file, or identification information corresponding to a blank template file of a certain service file.
In some embodiments, the operation types for the service files displayed in the preset interactive page for the user to select may also be various corresponding to different application scenarios.
Specifically, in a service scenario such as document approval, the target file may specifically include a confidential service file to be approved; correspondingly, the target operation type may specifically include at least one of: draft drafting operation, draft correcting operation, draft clearing operation, draft reading operation, draft correcting operation and the like.
The draft simulating operation can be specifically understood as an operation of writing a target file from scratch. The above-mentioned revision operation can be understood as an operation of modifying and editing the existing target file with an editing trace. The above-described reading operation may be specifically understood as an operation of viewing the target file without modifying the currently existing target file. The above-mentioned manuscript clearing operation may be specifically understood as an operation of accepting a previous manuscript correcting operation for a currently existing target file, and instructing to remove an editing trace in the target file. The manuscript proofreading operation may be specifically understood as an operation of modifying and editing only the target file based on the comparison file and the target file displayed at the same time, with the comparison file as a proofreading basis.
It should be understood that the above listed application scenarios, object files, and object operation types are only illustrative. In specific implementation, the target operation type may further include other related operation types according to a specific application scenario and a target file. The present specification is not limited to these.
Through the embodiment, the processing method of the target file provided by the specification can be applied to the target file in different application scenes to perform different types of operation processing, so that the diversified requirements of users for the target operation types can be met.
In some embodiments, the target script file may specifically include a preset javascript script that matches the target operation type and/or the identification information of the target file.
Specifically, the target script file may be a preset javascript script matched with the target operation type, may also be a javascript script matched with the identification information of the target file, and may also be a javascript script matched with the identification information of the target file and the target operation type at the same time.
Through the embodiment, the target script file which can better meet the requirements of the user and is used for realizing the specific operation processing aiming at the target file indicated by the user can be found out based on different dimensions.
The target script file may be a file editing function that controls a preset file processing client to cooperate with a user operation, so as to perform corresponding types of operation processing on the target file.
In some embodiments, the server may previously construct, for a plurality of different service files and/or a plurality of different operation types, a plurality of preset javascript scripts respectively corresponding to the identification information and/or the operation type of the corresponding service file. Certainly, the interaction between the user and the server through the terminal device can be supported, so that the user-defined javascript script is constructed and serves as a preset javascript script. And the interaction between the user and the server through the terminal equipment can be supported, so that the specific content in the existing preset javascript and the identification information and/or the operation type of the service file corresponding to the preset javascript can be adjusted and modified. Therefore, more diversified individual requirements of users can be met.
In some embodiments, the preset file processing client may at least include: the system comprises a web service module, a preset javascript object, a document editor API calling program, an encryption and decryption software API calling program, a peripheral function program and the like.
By the embodiment, based on the preset file processing client, user operation can be effectively simplified, operation difficulty of a user is reduced, dependence on an operating environment is reduced, the user can conveniently call a local software program of the terminal equipment, and specific operation processing can be efficiently performed on the target file.
In some embodiments, before the specific implementation, the preset file processing client may be arranged in a terminal device used by a user. When the specific layout is performed, the web service module, the preset javascript object, the document editor API calling program, the encryption and decryption software API calling program, and the peripheral function program in the preset file processing client may be registered in the local operating system of the terminal device, so as to bridge software programs that need to be used subsequently when performing specific operation processing on the target file, such as the document editor, the encryption and decryption software, installed locally in the terminal device. The preset javascript object can be used to connect a document editor API calling program, an encryption/decryption software API calling program, and a script file (for example, a matched preset javascript script) specifically run by a subsequent web service module, so that the preset file processing client can effectively call a local software program of the terminal device, and complete operation processing on the target file in cooperation with user operation.
In some embodiments, the preset interactive page may be specifically generated by the terminal device according to page data provided by the server. The relevant link in the preset interactive page may be specifically a link generated based on a private protocol and directed to a preset file processing client of the terminal device.
Specifically, when a user performs corresponding operations (for example, checking or clicking identification information of a certain service file and a certain operation type option) in a preset interactive page displayed by a terminal device through a page end (for example, a browser end) to select and confirm identification information and a target operation type of a target file; the terminal equipment can acquire the identification information and the target operation type of the target file through the preset interactive page and according to the operation of a user, and generates a trigger request carrying the identification information and the target operation type of the target file; further, the terminal device may send the trigger request to a preset file processing client through the page side according to a related link in a preset interactive page, instead of directly sending the trigger request to the server, so as to trigger the preset file processing client to interact with the server, so as to perform specific operation processing on the target file.
In some embodiments, the invoking a preset file processing client to interact with the server according to the trigger request to obtain the matched target script file may include: according to the trigger request, calling a preset web service module of the file processing client to generate and send a calling request to the server; the calling request at least carries a target operation type; receiving address parameters fed back by the server based on the calling request; and downloading the target script file according to the address parameter through a web service module of the preset file processing client.
Through the embodiment, the preset file processing client can interact with the server through the web service module to obtain the matched target script file suitable for operating and processing the target file.
In some application scenarios (e.g., approval scenarios of confidential documents) with higher requirements for confidentiality, data security in the process of operating and processing the target file is often required to be protected, and the content information of the target file is prevented from being leaked to the outside.
In some embodiments, for the application scenario with a higher security requirement, the running of the target script file by the preset file processing client to respond to the user operation and perform the operation processing on the target file, where the operation processing is matched with the target operation type, may include the following steps:
s1: running the target script file through the web service module, interacting with a server to obtain the encrypted data of the matched target file, and storing the encrypted data of the target file in a local temporary directory of the terminal equipment;
s2: creating a secure directory by a peripheral function program;
s3: calling a local encryption and decryption software of the terminal equipment to decrypt the encrypted data of the target file in the security directory by the API calling program of the encryption and decryption software to obtain the target file;
s4: and calling a local document editor of the terminal equipment to respond to user operation through the API calling program of the document editor, and carrying out operation processing matched with the target operation type on the target file.
Through the embodiment, the preset file processing client can be used for efficiently carrying out matched operation processing on the target file on the premise of protecting the data security of the target file.
In some embodiments, the temporary directory may be a storage area (e.g., a folder open to the user) that is locally disposed on the terminal device and allows external access to the query. The temporary directory is used for storing only file data which is not confidential, encrypted data of a file, and the like.
The secure directory may be a peripheral function program in a preset file processing client, which is set locally in the terminal device based on a related security protocol, and does not allow external access to the queried area (e.g., a folder hidden from the user and cannot be opened by the user). The secure directory may be used to store decrypted file data and the like.
In order to better protect the data security, the security directory may be further configured to allow only a preset file processing client to access the file processing client according to the related security protocol and holding the corresponding security credential, and to operate and process the decrypted file data in the security directory.
In some embodiments, for different operation types, the terminal device may call a program through the API of the document editor, call a local document editor of the terminal device to respond to a user operation in different modes, and perform various operation processing on the target file, so as to meet various operation requirements of the user and improve the user experience.
In some embodiments, in a case that the target operation type includes a draft drawing operation, calling, by the document editor API calling program, a document editor local to a terminal device to respond to a user operation, and performing operation processing on the target file matching the target operation type, when implemented, the method may include:
s1: running the target script file through the web service module, calling a program by using the API of the document editor, calling a local document editor of the terminal equipment to open the target file in a traceless editable mode, and registering and starting a callback event;
s2: calling the document editor to carry out editing operation on the target file according to user operation to obtain a draft-simulated target file;
s3: responding to an end instruction of a user, exiting the document editor, calling encryption and decryption software to encrypt the draft-drawn target file, and obtaining encrypted data of the draft-drawn target file;
s4: calling a web service module, and sending the encrypted data of the draft-drawn target file to a server; and delete the target file in the secure directory.
Through the embodiment, the terminal equipment can better utilize the preset structure module of the file processing client to cooperate with the user operation, and efficiently and safely finish the draft making operation aiming at the target file.
In some embodiments, in a case that the target operation type includes a draft drawing operation, the acquired identification information of the target file may specifically be identification information corresponding to a blank template file. Accordingly, the acquired target file may be a blank template file that matches the identification information.
In some embodiments, the traceless editable mode may be specifically an operation mode which allows a user to edit without leaving related editing traces. The registration opening callback event may specifically indicate that after the user operation is finished, the finally obtained target file after draft drawing needs to be sent back to the server for storage and management.
In some embodiments, after the document editor is called to perform editing operation on the target file according to user operation to obtain a draft-simulated target file, a user further performs naming operation on the draft-simulated target file through a preset file processing client, and sets a file name for the draft-simulated target file. Correspondingly, the preset file processing client can send the encrypted data of the draft-simulated target file and the file name to the server.
On the server side, the server may receive the encrypted data of the draft-fitted target file, and store the encrypted data of the draft-fitted target file using a file name set by a user as identification information corresponding to the encrypted data of the draft-fitted target file.
In some embodiments, in a case that the target operation type includes a reading operation, the invoking, by the API of the document editor, a local document editor of the terminal device to respond to a user operation and perform an operation process on the target file, where the operation process is matched with the target operation type, may include:
s1: running the target script file through the web service module, calling a program by using the API of the document editor, calling a local document editor of the terminal equipment to open the target file in a read-only mode, and registering a closed callback event;
s2: and responding to the end instruction of the user, exiting the document editor, and deleting the target file in the security directory.
Through the embodiment, the terminal equipment can better utilize the preset structure module of the file processing client to cooperate with the user operation to efficiently and safely open the target file for the user to read.
In some embodiments, in a case that the target operation type includes a reading operation, the acquired identification information of the target file may specifically be identification information corresponding to an existing non-blank file. Accordingly, the obtained target file may be an existing non-blank file stored in the server that matches the identification information.
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 and edit. The registration close callback event may specifically indicate that after the user operation is finished, the target file does not need to be sent back to the server for storage and management.
In some embodiments, in a case that the target operation type includes a reform operation, the invoking, by the API of the document editor, a local document editor of the terminal device to respond to a user operation and perform an operation process on the target file, where the operation process is matched with the target operation type, may include:
s1: running the target script file through the web service module, calling a program by using the API of the document editor, calling a local document editor of the terminal equipment to open the target file in a trace-remaining editable mode, and registering and starting a callback event;
s2: calling the document editor to carry out editing operation on the target file within a matched authority range according to user operation to obtain a modified target file;
s3: responding to an end instruction of a user, exiting the document editor, and calling encryption and decryption software to encrypt the modified target file to obtain encrypted data of the modified target file;
s4: calling a web service module, and sending the encrypted data of the reformed target file to a server; and delete the target file in the secure directory.
Through the embodiment, the terminal equipment can effectively and safely modify and edit the target file by utilizing the preset structure module of the file processing client in cooperation with the user operation so as to obtain the modified target file meeting the use requirement.
In some embodiments, the traceable editable mode may specifically be an operation mode that allows the user to modify and edit the target file within the matching authority range and retain the edited trace.
In some embodiments, the matching authority range may be specifically determined according to identity information of the user.
In some embodiments, a preset file processing client may obtain identity information of a user when the user logs in a terminal device, and query a user database of a system according to the identity information to determine an identity type of the user; determining the authority level corresponding to the user identity type according to a preset authority rule; and then the authority range matched with the authority level can be determined.
For example, in the case that it is determined that the identity type of the user corresponds to a lower privilege level, it may be determined that the scope of the privilege for the matching for the user is: the user is only allowed to modify and edit the first paragraph of text at the beginning of the target file. For another example, in a case where it is determined that the identity type of the user corresponds to a higher authority level, it may be determined that the authority range of the matching for the user is: the user is allowed to modify and edit the full text of the target file, and the like.
Through the embodiment, the terminal device can determine the authority level of the user according to the user identity information and the authority level of the user, and the terminal device is matched with the user to specifically modify and edit the target file in the authority range matched with the authority level of the user according to the preset file processing client, so that the application requirement of a more complex scene can be met.
In some embodiments, in a case where the target operation type includes a proof operation, the target file includes: a first object file and a second object file. The first object file may be a file to be collated, and the second object file may be a reference file used as a collation basis.
Correspondingly, the calling of the program through the API of the document editor calls the local document editor of the terminal device to respond to the user operation, and performs the operation processing on the target file, which is matched with the target operation type, in a specific implementation, the following may be included:
s1: running the target script file through the web service module, calling a program by using the API of the document editor, calling a local document editor of the terminal equipment to open the first target file in a trace-keeping editable mode, and registering and starting a callback event aiming at the first target file; meanwhile, calling a local document editor of the terminal equipment to open the second target file in a read-only mode, and registering and closing a callback event aiming at the second target file; the second target file is used as a comparison file for manuscript correcting operation;
s2: calling the document editor to carry out editing operation on the first target file within a matched authority range according to user operation to obtain a first target file after draft correction;
s3: responding to an end instruction of a user, exiting the document editor, and calling encryption and decryption software to encrypt the first target file after the draft correction to obtain encrypted data of the first target file after the draft correction;
s4: calling a web service module, and sending the encrypted data of the first target file after the manuscript correction to a server; and deleting the first target file and the second target file in the secure directory.
Through the embodiment, the terminal device can simultaneously open two files, namely the first target file and the second target file, for the user by using the preset structure module of the file processing client, so that the user can check the first target file based on the second target file by referring to the second target file; and the first target file can be modified and edited in a targeted manner in time in the checking process, so that the application requirements of more complex scenes can be met.
In some embodiments, when the target operation type includes a draft clearing operation, the above-mentioned calling, through the document editor API, a document editor local to a terminal device, in response to a user operation, performs an operation process on the target file, where the operation process matches the target operation type, and when implemented specifically, the following may be included:
s1: running the target script file through the web service module, calling a program by using the API of the document editor, calling a local document editor of the terminal equipment to open the target file in an implicit mode, and registering and starting a callback event;
s2: calling the document editor to eliminate editing traces in the target file according to an acceptance instruction of a user to obtain the target file after draft clearing;
s3: responding to an end instruction of a user, exiting the document editor, and calling encryption and decryption software to encrypt the cleared target file to obtain encrypted data of the cleared target file;
s4: calling a web service module, and sending the encrypted data of the cleared target file to a server; and delete the target file in the secure directory.
Through the embodiment, the terminal equipment can cooperate with a user to perform the manuscript clearing operation when needed by utilizing the preset file processing client, so that the editing trace left in the target file during the previous manuscript changing operation is eliminated, and the target file with a pure version is obtained.
As can be seen from the above, before specific implementation, the method for processing the target file provided in the embodiments of the present specification may pre-arrange a preset file processing client that at least includes a web service module, a preset javascript object, a document editor API calling program, an encryption/decryption software API calling program, and a peripheral function program on a terminal device; in specific implementation, a preset interactive page associated with a preset file processing client can be displayed to a user through a terminal device; through the interactive page, the identification information of the target file to be processed and the target operation type aiming at the target file are determined; triggering and calling a preset file processing client to perform corresponding interaction with the server so as to obtain a matched target script file; and then the target script file can be operated through a preset file processing client, a local software program of the terminal equipment is called in response and according to specific operation of a user, and operation processing matched with the target operation type is carried out on the target file. Therefore, on the premise of protecting the data security of the target file, the diversified operation requirements of the user can be better met, and various types of operation processing of the target file can be efficiently and conveniently realized by effectively calling the local related software program of the terminal equipment. Meanwhile, the dependence on the running environment in the file processing process can be effectively reduced, the user operation flow is simplified, the user operation difficulty is reduced, and the user experience is improved.
Referring to fig. 4, an embodiment of the present disclosure further provides a method for processing a target file. The method is particularly applied to the server side. In particular implementations, the method may include the following.
S401: receiving a calling request sent by a preset file processing client arranged on a terminal device; the calling request at least carries a target operation type;
s402: determining a target script file matched with the target operation type from a plurality of preset script files; acquiring address parameters of the target script file;
s403: sending the address parameters of the target script file to a preset file processing client; and the preset file processing client also responds to the user operation by running the target script file, and performs operation processing matched with the target operation type on the target file.
The server may specifically be a server in the system, which is responsible for storing and managing the service file. The preset script file may be a preset javascript, where each preset script file corresponds to the identification information and/or the target operation type of a service file.
Through the embodiment, the server can interact with the terminal equipment provided with the preset file processing client, so that the server can cooperate with a user to efficiently and conveniently perform specific operation processing on the target file.
An embodiment of the present specification further provides a terminal device, which includes a display processor and a memory for storing executable instructions of the processor, and the terminal device is further provided with a preset file processing client, and when the processor executes the instructions, the preset file processing client is used to execute the following steps according to the instructions: displaying a preset interactive page to a user; the preset interactive page comprises identification information of a plurality of service files and operation type options aiming at the service files; the preset interactive page is set to be associated with the preset file processing client; determining identification information of a target file to be processed and a target operation type aiming at the target file through the preset interactive page, and generating a trigger request aiming at the preset file processing client; calling a preset file processing client to interact with the server according to the trigger request so as to obtain a matched target script file; the triggering request at least carries identification information of a target file and a target operation type; the server is used for storing the service file; and running the target script file through the preset file processing client to respond to user operation and perform operation processing matched with the target operation type on the target file.
In order to more accurately complete the above instructions, referring to fig. 5, another specific server is provided in the embodiments of the present specification, where 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 by an internal cable, so that the structures may perform specific data interaction.
The display 501 may be specifically configured to display a preset interactive page to a user; the preset interactive page comprises identification information of a plurality of service files and operation type options aiming at the service files; and the preset interactive page is set to be associated with the preset file processing client.
The processor 502 may be specifically configured to determine, through the preset interaction 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; calling a preset file processing client 503 to interact with the server according to the trigger request so as to obtain a matched target script file; the triggering request at least carries identification information of a target file and a target operation type; the server is used for storing the service file; and running the target script file through the preset file processing client 503 to respond to the user operation, and performing operation processing matched with the target operation type on the target file.
The memory 504 may be specifically configured to store a corresponding instruction program.
In this embodiment, the processor 502 may be implemented in any suitable manner. For example, the processor may take the form of, for example, a microprocessor or processor and a computer-readable medium that stores computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, an embedded microcontroller, and so forth. The description is not intended to be limiting.
In this embodiment, the memory 504 may include multiple layers, and in a digital system, the memory may be any memory as long as it can store binary data; in an integrated circuit, a circuit without a physical form and with a storage function is also called a memory, such as a RAM, a FIFO and the like; in the system, the storage device in physical form is also called a memory, such as a memory bank, a TF card and the like.
The embodiment of the present specification further provides a computer storage medium based on the above target file processing method, where the computer storage medium stores computer program instructions, and when the computer program instructions are executed, the computer storage medium implements: displaying a preset interactive page to a user; the preset interactive page comprises identification information of a plurality of service files and operation type options aiming at the service files; the preset interactive page is set to be associated with the preset file processing client; determining identification information of a target file to be processed and a target operation type aiming at the target file through the preset interactive page, and generating a trigger request aiming at the preset file processing client; calling a preset file processing client to interact with the server according to the trigger request so as to obtain a matched target script file; the triggering request at least carries identification information of a target file and a target operation type; the server is used for storing the service file; and running the target script file through the preset file processing client to respond to user operation and perform operation processing matched with the target operation type on the target file.
In this embodiment, the storage medium includes, but is not limited to, a Random Access Memory (RAM), a Read-Only Memory (ROM), a Cache (Cache), a Hard Disk Drive (HDD), or a Memory Card (Memory Card). The memory may be used to store computer program instructions. The network communication unit may be an interface for performing network connection communication, which is set in accordance with a standard prescribed by a communication protocol.
In this embodiment, the functions and effects specifically realized by the program instructions stored in the computer storage medium can be explained by comparing with other embodiments, and are not described herein again.
Referring to fig. 6, in a software level, an embodiment of the present specification further provides an apparatus for processing an object file, where the apparatus may specifically include the following structural modules:
the display module 601 is specifically configured to display a preset interactive page to a user; the preset interactive page comprises identification information of a plurality of service files and operation type options aiming at the service files; the preset interactive page is set to be associated with the preset file processing client;
the first processing module 602 may be specifically configured to determine, through the preset interaction 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;
the calling module 603 may be specifically configured to call a preset file processing client to interact with the server according to the trigger request, so as to obtain a matched target script file; the triggering request at least carries identification information of a target file and a target operation type; the server is used for storing the service file;
the second processing module 604 may be specifically configured to run the target script file through the preset file processing client, so as to respond to a user operation and perform an operation process on the target file, where the operation process is matched with a target operation type.
It should be noted that, the units, devices, modules, etc. illustrated in the above embodiments may be implemented by a computer chip or an entity, or implemented by a product with certain functions. For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. It is to be understood that, in implementing the present specification, functions of each module may be implemented in one or more pieces of software and/or hardware, or a module that implements the same function may be implemented by a combination of a plurality of sub-modules or sub-units, or the like. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Therefore, the processing device for the target file provided by the embodiment of the specification can better meet the diversified operation requirements of users, and efficiently and conveniently realize various types of operation processing on the target file by calling the local software program of the terminal equipment.
In a specific scenario example, the processing method of the target file provided in the present specification may be applied to implement online editing of the encrypted document. For a specific implementation process, the following can be referred to.
In this scenario example, a document editing client (corresponding to a preset file processing client) is constructed based on the method provided by this specification, and the interaction from the browser end to the operating system implemented by the specified browser in the conventional architecture is changed to be uniformly completed by the document editing client. As can be seen in fig. 7.
Specifically, the document editing Client is a C-side program, and is composed of a lightweight web server (e.g., a web service module), a preset javascript object, a document editor API calling program, an encryption/decryption software API calling program, and a peripheral function Client-side program. As can be seen in fig. 8.
When the document editing client is specifically laid, the document editing client is a C-end program, development is carried out based on an API (application program interface), and the web server is embedded in the document editing client. When laying and installing the official document editing client program, the WEB server can be registered to an operating system, so that the API of the WEB server can be called to start WEB service monitoring when starting, the API is used for receiving an instruction (such as a trigger request) for calling the official document editing function from a page side (such as a browser of a terminal device), and a javascript script (such as a target script file) provided by a remote side is executed.
The document editing client can also be preset with a local javascript compiler to encapsulate the call of the document editor API and the encryption and decryption software API and realize bridging, the built-in HTTP client can realize silent uploading and downloading of files, and peripheral functions such as directory creation, moving and the like are realized through the operating system shell. When the javascript script executed by the web server calls a local object (e.g., javascript object), the local javascript compiler may take over and call the encapsulation interface to implement the corresponding function.
After receiving a call request sent by an application side (e.g., a server), the web server may parse the document editing function address parameters from the request address, then download actual document editing function scripts (e.g., matched preset javascript scripts) from the application side according to the parameters and load the scripts to the client side web server for running, and locate specific methods from the document editing function scripts to execute through the call method parameters in the request.
The document editing function script can be arranged on the application side, so that the application side can flexibly carry out secondary development on corresponding functions based on self requirements. When the official document editing function calls the javascript object and the method thereof locally preset at the official document editing client, the javascript object is transferred to different processing modules for processing, and if the javascript object corresponds to the document editor function, the specific document editor is operated through the COM interface handle of the document editor to complete the actual operation.
For example, when the corresponding encryption and decryption functions are realized, the encryption and decryption software API is called to complete the encryption and decryption operation. Meanwhile, when the peripheral function is required to be started, the specific function can be realized by calling the peripheral function module of the Client terminal. Specifically, the document editor COM interface calling program and the encryption and decryption software API interface calling program correspond to the designated document editor or encryption and decryption software, and a set of built-in interface calling program is added for each compatible software.
In particular, the silent downloading and browsing/editing functions (see download path in fig. 7) of the encrypted file can be realized.
Specifically, the application side requests the document editing client to download a file, a file downloading module of the document editing client sends a request to download a specific encrypted document to the file server to be stored in the local temporary directory, the file downloading module calls an API (application programming interface) to encryption and decryption software to decrypt the encrypted document and put the decrypted document into the secure directory, independent access authority and path of the local secure directory are obtained through the encryption and decryption software, and an API interface of the document editor is called to browse/edit limited authority.
In a specific implementation, an encrypted file end browsing uploading function (see an uploading path in fig. 7) may also be implemented.
Specifically, the document editing client registers callback to the document editor when calling the browsing/editing interface, after the document editor finishes browsing/editing, the callback function is triggered to call the encryption/decryption software API for re-encryption, and the file uploading module of the document editing client accesses the secure directory and uploads the encrypted file to the file server.
The document editing client can be used for realizing various types of operations (including draft making, viewing, editing, draft clearing, peer checking and the like) in specific business scene technologies in the following mode.
For draft simulation (e.g., draft simulation operation): the user can send a request to the document editing client through a 'draft' operation at a page end (for example, a preset interactive page) of the electronic document system, the request method is 'document downloading' and provides a document downloading link, and the document editing client downloads an empty document or a template document to the local according to request parameters and returns a downloading success mark.
After the application terminal confirms that downloading is successful, the application terminal requests the official document editing client terminal to call the encryption and decryption software API to encrypt and move the encrypted and decrypted file to a local temporary directory, then the decrypted file is placed in a safe directory, the file is explicitly opened in an editing traceless mode through the file editor API, a storage callback event is registered, a user triggers a storage callback when the user edits the file, saves and exits the file editor, calls the encryption and decryption software API to encrypt again and moves the encrypted file out of the safe directory to be covered by the temporary directory, and the official document editing client terminal calls the uploading module to upload the encrypted file to the file server.
For viewing (e.g., reading operation): the user can download the encrypted document to a local temporary directory triggered by the 'text viewing' operation at the page end of the electronic document system, request the document editing client to call the encryption and decryption software API to decrypt and put the encrypted document into the local secure directory, then explicitly open the document in a read-only mode through the document editor API and register a call-back closing event, trigger to close the call-back when the user finishes browsing and quits the document editor, delete the document in the secure directory and inform the application side of finishing browsing.
For editing (e.g., a reform operation): a user triggers and downloads the encrypted document to a local temporary directory through 'text editing' operation at a page end of an electronic document system, requests a document editing client to call an encryption and decryption software API for encryption and put into the local secure directory, then explicitly opens the document in an editing and trace-remaining mode (editing authority and revision mode) through a document editor API and registers and stores a callback event, triggers and stores the callback when the user edits the document and quits the document editor, calls the encryption and decryption software API for re-encryption and moves out the secure directory to be covered by the temporary directory, and calls an uploading module to upload the encrypted document to a file server.
For a draft (e.g., draft clearing operation): a user triggers and downloads the encrypted document to a local temporary directory through 'draft clearing' operation at a page end of an electronic document system, requests a document editing client to call an encryption and decryption software API for encryption and put into the local secure directory, then implicitly opens the document through a document editor API and registers and stores a callback event, calls an 'accept all revision' interface to clear a trace, stores and triggers a callback, calls the encryption and decryption software API for re-encryption and moves out the secure directory to be covered by the temporary directory, and calls an uploading module to upload the encrypted document to a file server.
For proofreading (e.g., proofing operation): a user triggers and downloads two versions of encrypted documents to a local temporary directory through a 'proofreading' operation at a page end of an electronic document system, requests a document editing client to call an encryption and decryption software API (application program interface) for decryption and put into a local security directory, then explicitly opens two documents in a read-only and horizontal tiling mode through a document editor API (application program interface) to display and register a turn-off callback event, triggers and turns off the callback when the user finishes browsing and exits from the document editor, deletes the documents in the security directory and notifies an application side to finish browsing.
By the scene example, the document editing client can be used as a central pivot to provide centralized service for business requirements with document editing scenes as cores, logic dispersed in a browser, various clients and an application side in a traditional scene is integrated into a client program to be realized, all C-end program interfaces are mapped to the B-end through the client, the complexity of C-end calling is hidden, and the application side can get rid of dependence of client environments and flexibly customize requirements needing to be realized. Meanwhile, the client integrates peripheral functions such as encryption and decryption, file processing and the like, provides full scene function coverage and full-process safety controllable characteristics of document editing, and ensures high efficiency, easy use, safety and flexibility of document editing scenes.
Although the present specification provides method steps as described in the examples or flowcharts, additional or fewer steps may be included based on conventional or non-inventive means. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When an apparatus or client product in practice executes, it may execute sequentially or in parallel (e.g., in a parallel processor or multithreaded processing environment, or even in a distributed data processing environment) according to the embodiments or methods shown in the figures. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the presence of additional identical or equivalent elements in a process, method, article, or apparatus that comprises the recited elements is not excluded. The terms first, second, etc. are used to denote names, but not any particular order.
Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may therefore be considered as a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
This description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, classes, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
From the above description of the embodiments, it is clear to those skilled in the art that the present specification can be implemented by software plus necessary general hardware platform. With this understanding, the technical solutions in the present specification may be essentially embodied in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a mobile terminal, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments in the present specification.
The embodiments in the present specification are described in a progressive manner, and the same or similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. The description is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
While the specification has been described with examples, those skilled in the art will appreciate that there are numerous variations and permutations of the specification that do not depart from the spirit of the specification, and it is intended that the appended claims include such variations and modifications that do not depart from the spirit of the specification.

Claims (16)

1. A processing method of a target file is applied to a terminal device, wherein a preset file processing client is arranged on the terminal device, and the method comprises the following steps:
displaying a preset interactive page to a user; the preset interactive page comprises identification information of a plurality of service files and operation type options aiming at the service files; the preset interactive page is set to be associated with the preset file processing client;
determining identification information of a target file to be processed and a target operation type aiming at the target file through the preset interactive page, and generating a trigger request aiming at the preset file processing client;
calling a preset file processing client to interact with the server according to the trigger request so as to obtain a matched target script file; the triggering request at least carries identification information of a target file and a target operation type; the server is used for storing the service file;
and running the target script file through the preset file processing client to respond to user operation and perform operation processing matched with the target operation type on the target file.
2. The method according to claim 1, wherein the target script file comprises a preset javascript script matching the target operation type and/or identification information of the target file.
3. The method according to claim 2, wherein the predetermined file processing client comprises at least: the system comprises 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.
4. The method of claim 3, wherein invoking a preset file processing client to interact with a server according to the trigger request to obtain a matching target script file comprises:
according to the trigger request, calling a preset web service module of the file processing client to generate and send a calling request to the server; the calling request at least carries a target operation type;
receiving address parameters fed back by the server based on the calling request;
and downloading the target script file according to the address parameter through a web service module of the preset file processing client.
5. The method of claim 3, wherein the target file comprises a confidential business file to be approved; accordingly, the target operation type includes at least one of: draft drafting operation, draft correcting operation, draft clearing operation, draft reading operation and draft correcting operation.
6. The method of claim 5, wherein the running of the object script file by the preset file processing client to respond to a user operation and perform an operation process on the object file matching with an object operation type comprises:
running the target script file through the web service module, interacting with a server to obtain the encrypted data of the matched target file, and storing the encrypted data of the target file in a local temporary directory of the terminal equipment;
creating a secure directory by a peripheral function program;
calling a local encryption and decryption software of the terminal equipment to decrypt the encrypted data of the target file in the security directory by the API calling program of the encryption and decryption software to obtain the target file;
and calling a local document editor of the terminal equipment to respond to user operation through the API calling program of the document editor, and carrying out operation processing matched with the target operation type on the target file.
7. The method according to claim 6, wherein in a case where the target operation type includes a draft-making operation, invoking, by the document editor API call program, a document editor local to a terminal device in response to a user operation to perform an operation process on the target file matching the target operation type, includes:
running the target script file through the web service module, calling a program by using the API of the document editor, calling a local document editor of the terminal equipment to open the target file in a traceless editable mode, and registering and starting a callback event;
calling the document editor to carry out editing operation on the target file according to user operation to obtain a draft-simulated target file;
responding to an end instruction of a user, exiting the document editor, calling encryption and decryption software to encrypt the draft-drawn target file, and obtaining encrypted data of the draft-drawn target file;
calling a web service module, and sending the encrypted data of the draft-drawn target file to a server; and delete the target file in the secure directory.
8. The method of claim 6, wherein in a case where the target operation type includes a reading operation, invoking, by the document editor API calling program, a document editor local to a terminal device in response to a user operation to perform an operation process on the target file matching the target operation type, includes:
running the target script file through the web service module, calling a program by using the API of the document editor, calling a local document editor of the terminal equipment to open the target file in a read-only mode, and registering a closed callback event;
and responding to the end instruction of the user, exiting the document editor, and deleting the target file in the security directory.
9. The method according to claim 6, wherein in a case where the target operation type includes a reform operation, invoking, by the document editor API call program, a document editor local to a terminal device to perform, in response to a user operation, an operation process on the target file matching the target operation type, including:
running the target script file through the web service module, calling a program by using the API of the document editor, calling a local document editor of the terminal equipment to open the target file in a trace-remaining editable mode, and registering and starting a callback event;
calling the document editor to carry out editing operation on the target file within a matched authority range according to user operation to obtain a modified target file;
responding to an end instruction of a user, exiting the document editor, and calling encryption and decryption software to encrypt the modified target file to obtain encrypted data of the modified target file;
calling a web service module, and sending the encrypted data of the reformed target file to a server; and delete the target file in the secure directory.
10. The method of claim 9, wherein the matching scope of authority is determined based on identity information of the user.
11. The method of claim 6, wherein in the case that the target operation type comprises a proof operation, the target file comprises: a first target file and a second target file;
correspondingly, calling a local document editor of the terminal equipment to respond to user operation through the API calling program of the document editor, and performing operation processing matched with the target operation type on the target file, wherein the operation processing comprises the following steps:
running the target script file through the web service module, calling a program by using the API of the document editor, calling a local document editor of the terminal equipment to open the first target file in a trace-keeping editable mode, and registering and starting a callback event aiming at the first target file; meanwhile, calling a local document editor of the terminal equipment to open the second target file in a read-only mode, and registering and closing a callback event aiming at the second target file; the second target file is used as a comparison file for manuscript correcting operation;
calling the document editor to carry out editing operation on the first target file within a matched authority range according to user operation to obtain a first target file after draft correction;
responding to an end instruction of a user, exiting the document editor, and calling encryption and decryption software to encrypt the first target file after the draft correction to obtain encrypted data of the first target file after the draft correction;
calling a web service module, and sending the encrypted data of the first target file after the manuscript correction to a server; and deleting the first target file and the second target file in the secure directory.
12. The method according to claim 6, wherein in a case where the target operation type includes a draft clearing operation, invoking, by the document editor API call program, a document editor local to a terminal device in response to a user operation to perform operation processing matching the target operation type on the target file, includes:
running the target script file through the web service module, calling a program by using the API of the document editor, calling a local document editor of the terminal equipment to open the target file in an implicit mode, and registering and starting a callback event;
calling the document editor to eliminate editing traces in the target file according to an acceptance instruction of a user to obtain the target file after draft clearing;
responding to an end instruction of a user, exiting the document editor, and calling encryption and decryption software to encrypt the cleared target file to obtain encrypted data of the cleared target file;
calling a web service module, and sending the encrypted data of the cleared target file to a server; and delete the target file in the secure directory.
13. A processing method of a target file is applied to a server and comprises the following steps:
receiving a calling request sent by a preset file processing client arranged on a terminal device; the calling request at least carries a target operation type;
determining a target script file matched with the target operation type from a plurality of preset script files; acquiring address parameters of the target script file;
sending the address parameters of the target script file to a preset file processing client; and the preset file processing client also responds to the user operation by running the target script file, and performs operation processing matched with the target operation type on the target file.
14. An apparatus for processing an object document, comprising:
the display module is used for displaying a preset interactive page to a user; the preset interactive page comprises identification information of a plurality of service files and operation type options aiming at the service files; the preset interactive page is set to be associated with the preset file processing client;
the first processing module is used for determining the identification information of a target file to be processed and the target operation type aiming at the target file through the preset interactive page and generating a trigger request aiming at the preset file processing client;
the calling module is used for calling a preset file processing client to interact with the server according to the trigger request so as to acquire a matched target script file; the triggering request at least carries identification information of a target file and a target operation type; the server is used for storing the service file;
and the second processing module is used for operating the target script file through the preset file processing client so as to respond to user operation and perform operation processing matched with the target operation type on the target file.
15. A terminal device, comprising a display, a processor and a memory for storing processor-executable instructions, wherein the terminal device is further provided with a preset file processing client, and the processor executes the instructions to implement the steps of the method according to any one of claims 1 to 12 by using the preset file processing client.
16. A computer-readable storage medium having stored thereon computer instructions which, when executed, implement the steps of the method of any one of claims 1 to 12.
CN202110284753.XA 2021-03-17 2021-03-17 Target file processing method and device and terminal equipment Pending CN113032042A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110284753.XA CN113032042A (en) 2021-03-17 2021-03-17 Target file processing method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110284753.XA CN113032042A (en) 2021-03-17 2021-03-17 Target file processing method and device and terminal equipment

Publications (1)

Publication Number Publication Date
CN113032042A true CN113032042A (en) 2021-06-25

Family

ID=76471001

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110284753.XA Pending CN113032042A (en) 2021-03-17 2021-03-17 Target file processing method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN113032042A (en)

Similar Documents

Publication Publication Date Title
CN109634619B (en) Trusted execution environment implementation method and device, terminal device and readable storage medium
US10547601B2 (en) System and method to allow third-party developer to debug code in customer environment
US9165139B2 (en) System and method for creating secure applications
CN103403669B (en) App is made to become safe method and the method preventing app damage equipment
US8839354B2 (en) Mobile enterprise server and client device interaction
JP6079875B2 (en) Application execution program, application execution method, and information processing terminal device for executing application
CN105843653A (en) TA (trusted application) configuration method and device
US11063922B2 (en) Virtual content repository
Tamma et al. Practical Mobile Forensics: Forensically investigate and analyze iOS, Android, and Windows 10 devices
US11882154B2 (en) Template representation of security resources
US10841342B2 (en) Data driven user interfaces for device management
CN114139135A (en) Equipment login management method, device and storage medium
US9665732B2 (en) Secure Download from internet marketplace
WO2019139855A1 (en) Data driven user interfaces for device management
CN105812370A (en) Smart card processing method, device and system
US10303343B1 (en) Data driven user interfaces for device management
CN113032042A (en) Target file processing method and device and terminal equipment
CN110008186A (en) For file management method, device, terminal and the medium of more ftp data sources
JP2011118626A (en) Information processing system, file management server, control method, and program
JP5243452B2 (en) Browser program and terminal device
KR20150030047A (en) Method and system for application authentication
Mikhaylov Mobile Forensics Cookbook: Data acquisition, extraction, recovery techniques, and investigations using modern forensic tools
US20130263278A1 (en) Method and apparatus for controlling operations performed by a mobile co
CN107567627B (en) Device with test execution environment
US9497194B2 (en) Protection of resources downloaded to portable devices from enterprise systems

Legal Events

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