File Processing Method, File Processing Device, Electronic Device, and Storage Medium
Through automated file processing methods, project data is obtained and filtered, and file extraction and packaging is used using code configuration tables, which solves the problem of file processing inaccuracy caused by manual processing and improves the accuracy and efficiency of file processing.
Patent Information
- Application Number
- CN202211192998.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-28
- Publication Date
- 2025-06-17
- Estimated Expiration
- 2042-09-28
AI Technical Summary
Existing file processing methods rely on manual processing, which is prone to operational errors, affecting the accuracy of file processing.
A file processing method is proposed, by obtaining pre-created original project data, extracting target projects from the project library or local side, filtering processing folders and project lists, extracting and packaging code files using code configuration tables, and classifying and packaging files according to prefix information.
Improve the accuracy and efficiency of file processing, ensure the accuracy and classification accuracy of file packaging, and avoid mistakes in manual operations.
Smart Images

Figure CN115617755B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and particularly to a file processing method, a file processing device, an electronic device, and a storage medium. Background Art
[0002] Most of the current file processing methods rely on manual processing, that is, staff manually pack and upload files. This method often has many operation errors, affecting the accuracy of file processing. Therefore, how to improve the accuracy of file processing has become an urgent technical problem to be solved. Summary of the Invention
[0003] The main purpose of the embodiments of this application is to propose a file processing method, a file processing device, an electronic device, and a storage medium, aiming to improve the accuracy of file processing.
[0004] To achieve the above object, a first aspect of the embodiments of this application proposes a file processing method, which is applied to the development application side. The method includes:
[0005] Obtain pre-created original project data; wherein, the original project data is a software development project in a software development environment;
[0006] Extract a target project from a preset project library according to the original project data or obtain a target project from the local side of the development application; wherein, the target project includes at least two original folders, and each of the original folders is stored in an original storage path;
[0007] Perform screening processing on the at least two original folders according to the original path name of the original storage path to obtain a target folder and a target project list; wherein, the target folder stores target files, and the target project list includes at least two of the target folders;
[0008] Extract files from the original folder according to a pre-obtained code configuration table to obtain a first code file;
[0009] Perform packaging processing on the first code file to obtain a first file package and first ID data of the first code file;
[0010] Classify the target files according to preset target prefix information to obtain a second code file and a third code file, wherein the second code file includes the target prefix information, and the third code file does not include the target prefix information;
[0011] Pack the second code file according to a preset first packaging method and the first ID data to obtain a second file package, and pack the third code file according to a preset second packaging method and the first ID data to obtain a third file package;
[0012] Obtain a target file package based on the first file package, the second file package, and the third file package.
[0013] In some embodiments, the step of screening the at least two original folders according to the original path name of the original storage path to obtain a target folder and a target project list includes:
[0014] Obtain a preset reference path name;
[0015] Compare the original path name with the reference path name;
[0016] Select the original folder whose original path name is the same as the reference path name as the target folder;
[0017] Perform a screening process on the target folder to obtain the target project list.
[0018] In some embodiments, the step of packing the first code file to obtain a first file package and the first ID data of the first file package includes:
[0019] Obtain the first code data of the first code file;
[0020] Perform an encryption process on the first code data to obtain first key data;
[0021] Construct first value data according to a preset first initial parameter, where the first value data is the key value of the first key data, and the first value data is an arithmetic sequence with the first initial parameter as the first term;
[0022] Construct the first key-value pair data of the first code file according to the first key data and the first value data, and obtain the first ID data according to the first key-value pair data;
[0023] Pack the first code file according to the first ID data to obtain the first file package.
[0024] In some embodiments, the target file includes original prefix information, and the step of classifying the target file according to the preset target prefix information to obtain a second code file and a third code file includes:
[0025] Compare the original prefix information with the target prefix information;
[0026] If the original prefix information is the same as the target prefix information, then use the target file as the second code file;
[0027] If the original prefix information is different from the target prefix information, then use the target file as the third code file.
[0028] In some embodiments, the step of packaging the second code file according to the preset first packaging method and the first ID data to obtain a second file package includes:
[0029] Obtain the file path data of the second code file;
[0030] Perform encryption processing on the file path data to obtain second key data;
[0031] Construct second value data according to the preset second initial parameter, where the second value data is the key value of the second key data, and the second value data is an arithmetic sequence with the second initial parameter as the first term;
[0032] Construct the second key-value pair data of the second code file according to the second key data and the second value data, and obtain the second ID data of the second code file according to the second key-value pair data;
[0033] Perform packaging processing on all second code files whose second ID data is different from the first ID data to obtain the second file package.
[0034] In some embodiments, the step of packaging the third code file according to the preset second packaging method and the first ID data to obtain a third file package includes:
[0035] Obtain the second code data of the third code file;
[0036] Perform encryption processing on the second code data to obtain third key data;
[0037] Construct third value data according to the preset third initial parameter, where the third value data is the key value of the third key data, and the third value data is an arithmetic sequence with the third initial parameter as the first term;
[0038] Construct the third key-value pair data of the third code file according to the third key data and the third value data, and obtain the third ID data of the third code file according to the third key-value pair data;
[0039] Packaging is performed on all third code files in which the third ID data is inconsistent with the first ID data to obtain the third file package.
[0040] In some embodiments, after the step of obtaining the target file package according to the first file package, the second file package, and the third file package, the method further includes:
[0041] Obtaining a trigger request for indicating a release operation;
[0042] Generating a file approval reminder message according to the trigger request and sending the file approval reminder message to an audit end;
[0043] Obtaining approval feedback data fed back by the audit end according to the file approval reminder message, where the approval feedback data includes an approval to release message for indicating approval of the release operation;
[0044] Performing the release operation according to the approval to release message to send the target file package to a client.
[0045] To achieve the above object, a second aspect of the embodiments of the present application provides a file processing device, which is applied to a development application end, and the device includes:
[0046] A project data acquisition module, configured to acquire pre-created original project data; where the original project data is a software development project in a software development environment;
[0047] A project file extraction module, configured to extract a target project from a preset project library according to the original project data or obtain the target project from a local end of the development application end; where the target project includes at least two original folders, and each of the original folders is stored in an original storage path;
[0048] A screening module, configured to perform screening processing on the at least two original folders according to an original path name of the original storage path to obtain a target folder and a target project list; where the target folder stores target files, and the target project list includes at least two of the target folders;
[0049] A code file extraction module, configured to perform file extraction on the original folder according to a pre-acquired code configuration table to obtain a first code file;
[0050] A first file packaging module, configured to perform packaging processing on the first code file to obtain a first file package and first ID data of the first code file;
[0051] A file classification module, configured to classify the target file according to preset target prefix information to obtain a second code file and a third code file, where the second code file includes the target prefix information, and the third code file does not include the target prefix information;
[0052] A second file packaging module, configured to package the second code file according to a preset first packaging method and the first ID data to obtain a second file package, and package the third code file according to a preset second packaging method and the first ID data to obtain a third file package;
[0053] An integration module, configured to obtain a target file package according to the first file package, the second file package, and the third file package.
[0054] To achieve the above object, a third aspect of the embodiments of the present application provides an electronic device, where the electronic device includes a memory, a processor, a program stored on the memory and executable on the processor, and a data bus for implementing connection communication between the processor and the memory. When the program is executed by the processor, the method described in the first aspect above is implemented.
[0055] To achieve the above object, a fourth aspect of the embodiments of the present application provides a storage medium, where the storage medium is a computer-readable storage medium for computer-readable storage. The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the method described in the first aspect above.
[0056] The file processing method, file processing device, electronic device, and storage medium proposed in this application obtain pre-created original project data, and extract target projects from a preset project library according to the original project data or obtain target projects from the local end of a development application. Among them, the target project includes at least two original folders, and each original folder is stored in an original storage path. This method can conveniently obtain all file information that meets the current project requirements. Further, filter at least two original folders according to the original path names of the original storage paths to obtain target folders and a target project list. Among them, the target folders store target files, extract files from the original folders according to a pre-obtained code configuration table to obtain first code files, and perform packaging processing on the first code files to obtain a first file package and first ID data of the first code files, which can conveniently determine the code files belonging to the first file package, perform packaging processing on these code files, and determine the file IDs of these code files. Further, classify the target files according to preset target prefix information to obtain second code files and third code files. Among them, the second code files include the target prefix information, and the third code files do not include the target prefix information, which can conveniently distinguish the target files according to the target prefix information. Then, perform packaging processing on the second code files according to a preset first packaging method and the first ID data to obtain a second file package, and perform packaging processing on the third code files according to a preset second packaging method and the first ID data to obtain a third file package, improving the accuracy of file packaging and packaging the code files of the same type together. Finally, obtain a target file package according to the first file package, the second file package, and the third file package, which can effectively improve the accuracy of file packaging and file classification, and overall improve the accuracy of file processing and file processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 is a flowchart of the file processing method provided by an embodiment of this application;
[0058] Figure 2 is Figure 1 a flowchart of step S103 in
[0059] Figure 3 is Figure 1 a flowchart of step S105 in
[0060] Figure 4 is Figure 1 a flowchart of step S106 in
[0061] Figure 5 is Figure 1 a flowchart of step S107 in
[0062] Figure 6 is Figure 1 Another flowchart of step S107 in
[0063] Figure 7 Another flowchart of the file processing method provided by the embodiments of the present application;
[0064] Figure 8 Schematic structural diagram of the file processing device provided by the embodiments of the present application;
[0065] Figure 9 Schematic hardware structure diagram of the electronic device provided by the embodiments of the present application. Detailed implementation manners
[0066] In order to make the objectives, technical solutions and advantages of the present application clearer and more understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0067] It should be noted that although the functional modules are divided in the device schematic diagram and the logical sequence is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order from the module division in the device or the sequence in the flowchart. Terms such as "first" and "second" in the specification, claims and the above-mentioned drawings are used to distinguish similar objects and do not necessarily need to describe a specific order or sequence.
[0068] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field to which the present application belongs. The terms used herein are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.
[0069] First, several nouns involved in the present application are analyzed:
[0070] Artificial intelligence (AI): It is a new technical science that studies, develops theories, methods, technologies and application systems for simulating, extending and expanding human intelligence; artificial intelligence is a branch of computer science. Artificial intelligence attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a way similar to human intelligence. The research in this field includes robots, speech recognition, image recognition, natural language processing and expert systems, etc. Artificial intelligence can simulate the information process of human consciousness and thinking. Artificial intelligence also uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results of theories, methods, technologies and application systems.
[0071] Natural Language Processing (NLP): NLP uses computers to process, understand, and apply human languages (such as Chinese, English, etc.). NLP is a branch of artificial intelligence and an interdisciplinary field of computer science and linguistics, often referred to as computational linguistics. Natural language processing includes syntactic analysis, semantic analysis, discourse understanding, etc. Natural language processing is commonly used in technical fields such as machine translation, handwritten and printed character recognition, speech recognition and text-to-speech conversion, information intention recognition, information extraction and filtering, text classification and clustering, public opinion analysis, and opinion mining. It involves data mining, machine learning, knowledge acquisition, knowledge engineering, artificial intelligence research related to language processing, and linguistic research related to language computing, etc.
[0072] Cross-platform Mobile Application Development Framework (React Native, RN): It is an open-source cross-platform mobile application development framework, which is a derivative of the earlier open-source JS framework React on the native mobile application platform and supports two major platforms, iOS and Android. RN uses the JavaScript language, JSX similar to HTML, and CSS to develop mobile applications.
[0073] Git: The full name is Distributed Version Control System. Git is usually used in programming, and Git supports distributed deployment, which can effectively and quickly handle version management of projects ranging from very small to very large. The biggest difference between distributed and centralized is that developers can commit locally. Each developer can copy a complete Git repository on the local machine by cloning (Git clone).
[0074] Hash table (also called hash table): It is a data structure that directly accesses data based on key values. That is to say, it accesses records by mapping key values to a position in the table to speed up the search. This mapping function is called a hash function, and the array storing records is called a hash table. Given a table M, there exists a function f(key). For any given key value key, if the address of the record containing this key can be obtained after substituting it into the function, then the table M is called a hash table, and the function f(key) is called a hash function.
[0075] Most current file processing methods rely on manual processing, that is, staff manually package and upload files. This method often has many operation errors, affecting the accuracy of file processing. Therefore, how to improve the accuracy of file processing has become a technical problem to be solved urgently.
[0076] Based on this, the embodiments of the present application provide a file processing method, a file processing device, an electronic device, and a storage medium, aiming to improve the accuracy of file processing.
[0077] The file processing method, file processing device, electronic device, and storage medium provided by the embodiments of the present application are specifically described through the following embodiments. First, the file processing method in the embodiments of the present application is described.
[0078] The embodiments of the present application can obtain and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is a theory, method, technology, and application system that uses digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use knowledge to obtain the best results.
[0079] Artificial intelligence basic technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, and mechatronics. Artificial intelligence software technologies mainly include several major directions such as computer vision technology, robotics, biometric technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0080] The file processing method provided by the embodiments of the present application relates to the field of artificial intelligence technology. The file processing method provided by the embodiments of the present application can be applied to terminals, can also be applied to the server side, or can be software running on the terminal or the server side. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the server side can be configured as an independent physical server, can also be configured as a server cluster or distributed system composed of multiple physical servers, or can be configured as a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application that implements the file processing method, etc., but is not limited to the above forms.
[0081] This application can be used in numerous general-purpose or special-purpose computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, and so on. This application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This application can also be practiced in a distributed computing environment where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0082] Figure 1 is an optional flowchart of a file processing method provided by an embodiment of this application. This file processing method is applied to a development application side. Figure 1 The method in [it] may include but is not limited to steps S101 to S108.
[0083] Step S101, obtain pre-created original project data; wherein, the original project data is a software development project in a software development environment;
[0084] Step S102, extract a target project from a preset project library according to the original project data or obtain a target project from the local side of the development application side; wherein, the target project includes at least two original folders, and each original folder is stored in an original storage path;
[0085] Step S103, perform a screening process on at least two original folders according to the original path names of the original storage paths to obtain a target folder and a target project list; wherein, the target folder stores target files, and the target project list includes at least two target folders;
[0086] Step S104, extract files from the original folders according to a pre-obtained code configuration table to obtain first code files;
[0087] Step S105, perform a packaging process on the first code files to obtain a first file package and first ID data of the first code files;
[0088] Step S106, classify the target files according to preset target prefix information to obtain second code files and third code files, wherein, the second code files include the target prefix information, and the third code files do not include the target prefix information;
[0089] Step S107: Package the second code file according to a preset first packaging method and first ID data to obtain a second file package, and package the third code file according to a preset second packaging method and first ID data to obtain a third file package;
[0090] Step S108: Obtain a target file package based on the first file package, the second file package, and the third file package.
[0091] Steps S101 to S108 illustrated in the embodiments of the present application obtain pre-created original project data, and extract a target project from a preset project library according to the original project data or obtain the target project from the local end of the development application. Among them, the target project includes at least two original folders, and each original folder is stored in an original storage path. This method can conveniently obtain all file information that meets the current project requirements. Further, screen at least two original folders according to the original path names of the original storage paths to obtain a target folder and a target project list. Among them, the target folder stores target files. Extract files from the original folders according to a pre-obtained code configuration table to obtain a first code file. Package the first code file to obtain a first file package and first ID data of the first code file, which can conveniently determine the code files belonging to the first file package, package these code files, and determine the file IDs of these code files. Further, classify the target files according to a preset target prefix information to obtain a second code file and a third code file. Among them, the second code file includes the target prefix information, and the third code file does not include the target prefix information, which can conveniently distinguish the target files according to the target prefix information. Thus, package the second code file according to the preset first packaging method and first ID data to obtain a second file package, and package the third code file according to the preset second packaging method and first ID data to obtain a third file package, improving the accuracy of file packaging and packaging code files of the same type together. Finally, obtain a target file package based on the first file package, the second file package, and the third file package, which can effectively improve the accuracy of file packaging and file classification accuracy, and overall improve the accuracy of file processing and file processing efficiency.
[0092] In step S101 of some embodiments, data can be crawled targetedly after setting a data source by writing a web crawler to obtain pre-created original project data. Video data can also be obtained by other means, which is not limited thereto. Among them, the original project data is a software development project in a software development environment, and the original project data includes the project name of the project involved in the current business scenario and the file data included in the project, etc.
[0093] In step S102 of some embodiments, the target project may be obtained from the project library or from the local end of the development application according to the association between the original project data and the preset project library. The preset project library may be a Git project library, etc. When the original project data is associated with the Git project library, the target project is directly extracted from the Git project library. When the original project data is not associated with the Git project library, the target project is obtained from the local end of the development application. The target project includes at least two original folders, each original folder is stored in the original storage path, and the original folder includes at least one original file.
[0094] Please refer to Figure 2 , in some embodiments, step S103 may include but is not limited to steps S201 to S204:
[0095] Step S201, obtain the preset reference path name;
[0096] Step S202, compare the original path name and the reference path name;
[0097] Step S203, select the original folder with the original path name consistent with the reference path name as the target folder;
[0098] Step S204, perform screening processing on the target folder to obtain the target project list.
[0099] In step S201 of some embodiments, obtain the preset reference path name, which may include src / pages / ai, etc.
[0100] In step S202 of some embodiments, in order to improve the screening efficiency of the original files, the original path names of the original files in the original folder may be directly compared, the original path name is compared with the reference path name, and it is determined whether the original file meets the current requirements according to the consistency between the original path name and the reference path name.
[0101] In step S203 of some embodiments, compare the original path name with the reference path name. If the original path name is consistent with the reference path name, it indicates that the original file meets the current project requirements. Therefore, select the original folder with the original path name consistent with the reference path name as the target folder, and use the files in the target folder as the target files.
[0102] In step S204 of some embodiments, in order to distinguish different business requirements, it is also necessary to perform screening processing on the target folder according to the pre-obtained packaging instructions to obtain the target project list, where the target project list includes at least two target folders.
[0103] Through the above steps S201 to S204, the original file can be screened according to the original path name of the original file to obtain a target folder that meets the current requirements, and a target project list is generated based on the target folder and business requirements, realizing the classification of project files, facilitating subsequent packaging to generate different business file packages, and improving the accuracy and efficiency of file packaging.
[0104] In step S104 of some embodiments, when extracting files from the original folder according to the pre-obtained code configuration table to obtain the first code file, the pre-obtained code configuration table can be obtained through a web crawler or a script program. The code configuration table includes information such as the file name and file path of the code file. According to this code configuration table, files are extracted from the original folder to obtain the original files corresponding to the content of the code configuration table, and this series of original files are packaged to obtain the first code file. The first code file includes some framework codes, third-party codes, and public codes. The first code file is a general file that can be used for different business projects and can be simply referred to as a base package file or a main package file.
[0105] Please refer to Figure 3 , in some embodiments, step S105 may include but is not limited to steps S301 to S305:
[0106] Step S301, obtain the first code data of the first code file;
[0107] Step S302, perform encryption processing on the first code data to obtain the first key data;
[0108] Step S303, construct the first value data according to the preset first initial parameter, where the first value data is the key value of the first key data, and the first value data is an arithmetic sequence with the first initial parameter as the first term;
[0109] Step S304, construct the first key-value pair data of the first code file according to the first key data and the first value data, and obtain the first ID data according to the first key-value pair data;
[0110] Step S305, perform packaging processing on the first code file according to the first ID data to obtain the first file package.
[0111] In step S301 of some embodiments, the first code data of the first code file is obtained through a preset script program, and the first code data can be used to represent the file content information of the first code file.
[0112] In step S302, the first code data is encrypted through a preset encryption algorithm to obtain a first string, and this first string is used as the first key data of the first code file. The preset encryption algorithm can be a Hash algorithm such as the MD2 algorithm, MD4 algorithm, or MD5 algorithm, or other symmetric algorithms, without limitation.
[0113] In step S303 of some embodiments, the preset first initial parameter is 1, and an arithmetic sequence with the first initial parameter as the first term and a common difference of 1 is constructed. The numerical value corresponding to each term of this arithmetic sequence is used as the key value of the first key data to obtain the first value data. For example, for multiple first code files belonging to the first file package, their first value data will increment starting from 1. The first value data of the first code file A is 2, and the first value data of the first code file B is 3.
[0114] In step S304 of some embodiments, the first key data and the first value data of each first code file are combined to obtain the first key-value pair data of this first code file. This first key-value pair data is the first ID data of this first code file, and the first ID data can be used to represent the file name of the first code file.
[0115] In step S305 of some embodiments, the first code files are packaged according to the first ID data, and all the first code files are packaged into a whole to obtain the first file package.
[0116] Through the above steps S301 to S305, it is relatively convenient to package the first code files to obtain the first file package, and it is possible to realize the automatic naming of the first code files in the first file package, improving the file processing efficiency.
[0117] Please refer to Figure 4 , in some embodiments, the target file includes original prefix information, and step S106 may include but is not limited to steps S401 to S403:
[0118] Step S401, compare the original prefix information and the target prefix information;
[0119] Step S402, if the original prefix information and the target prefix information are the same, then regard the target file as the second code file;
[0120] Step S403, if the original prefix information and the target prefix information are different, then regard the target file as the third code file.
[0121] In step S401 of some embodiments, the target prefix information can be set according to different actual requirements. For example, the target prefix information can include the ai field. Then, compare the original prefix information of the target file with the target prefix information to determine whether the original prefix information of the target file is consistent with the target prefix information, so as to identify the target file whose original prefix information includes the ai field.
[0122] In step S402 of some embodiments, if the original prefix information and the target prefix information are consistent, it indicates that the original prefix information contains the ai field, and the target file belongs to a business file. It should be noted that a business file is a file that only contains a specific business implementation code and cannot be used as a general file. Therefore, the target file with consistent original prefix information and target prefix information is used as the second code file. The second code file is a code file belonging to a business package, and this code file cannot be used as a general file and can only be used for a certain fixed business scenario.
[0123] In step S403 of some embodiments, if the original prefix information and the target prefix information are inconsistent, it indicates that the original prefix information does not contain the ai field, and the target file belongs to a general file. Therefore, the target file with inconsistent original prefix information and target prefix information is used as the third code file. The third code file is a code file belonging to a business package, and this code file can be used as a general file.
[0124] Through the above steps S401 to S403, it is relatively convenient to classify the target files, obtain the third code file that can be used generally and different second code files that are not general, which is convenient for subsequent file packaging operations, avoids confusing general code files with non-general code files, and improves the accuracy of file processing.
[0125] Please refer to Figure 5 , in some embodiments, step S107 may include but is not limited to steps S501 to S505:
[0126] Step S501, obtain the file path data of the second code file;
[0127] Step S502, perform encryption processing on the file path data to obtain the second key data;
[0128] Step S503, construct the second value data according to the preset second initial parameter, where the second value data is the key value of the second key data, and the second value data is an arithmetic sequence with the second initial parameter as the first term;
[0129] Step S504, construct the second key-value pair data of the second code file according to the second key data and the second value data, and obtain the second ID data of the second code file according to the second key-value pair data;
[0130] Step S505: Package all the second code files whose second ID data is inconsistent with the first ID data to obtain a second file package.
[0131] In step S501 of some embodiments, the file path data of the second code file is obtained through a preset script program, and the file path data includes the path name of the second code file, etc.
[0132] In step S502 of some embodiments, the file path data is encrypted through a preset encryption algorithm to obtain a second string, and the second string is used as the second key data of the second code file. The preset encryption algorithm can be a Hash algorithm such as MD2 algorithm, MD4 algorithm or MD5 algorithm, or other symmetric algorithms, without limitation.
[0133] In step S503 of some embodiments, the preset second initial parameter is 1, and an arithmetic sequence with the second initial parameter as the first term and a common difference of 1 is constructed. The numerical value corresponding to each term of the arithmetic sequence is used as the key value of the second key data to obtain the second value data. For example, for multiple first code files belonging to the second file package, their second value data will increment from 1. The second value data of the second code file P is 7, and the first value data of the second code file Q is 8.
[0134] In step S504 of some embodiments, the second key data and the second value data of each second code file are combined to obtain the second key-value pair data of the second code file. The second key-value pair data is the second ID data of the second code file, and the second ID data can be used to represent the file name of the second code file.
[0135] In step S505 of some embodiments, package all the second code files whose second ID data is inconsistent with the first ID data to obtain a second file package.
[0136] Through the above steps S501 to S505, the automatic naming of the second code file can be realized, and the second code file with the same file ID as the first code file can be effectively filtered, improving the accuracy and efficiency of file filtering. Thus, it is convenient to package all the second code files whose second ID data is inconsistent with the first ID data to obtain a second file package, which can effectively avoid duplicate file packaging.
[0137] Please refer to Figure 6 , in some other embodiments, step S107 includes but is not limited to steps S601 to S605:
[0138] Step S601, obtain the second code data of the third code file;
[0139] Step S602, perform encryption processing on the second code data to obtain the third key data;
[0140] Step S603, construct the third value data according to the preset third initial parameter, where the third value data is the key value of the third key data, and the third value data is an arithmetic sequence with the third initial parameter as the first term;
[0141] Step S604, construct the third key-value pair data of the third code file according to the third key data and the third value data, and obtain the third ID data of the third code file according to the third key-value pair data;
[0142] Step S605, perform packaging processing on all third code files whose third ID data is inconsistent with the first ID data to obtain the third file package.
[0143] In step S601 of some embodiments, the second code data of the third code file is obtained through a preset script program, and the second code data can be used to represent the file content information of the third code file.
[0144] In step S602 of some embodiments, the second code data is encrypted through a preset encryption algorithm to obtain a third string, and the third string is used as the third key data of the third code file. The preset encryption algorithm can be a Hash algorithm such as MD2 algorithm, MD4 algorithm or MD5 algorithm, or other symmetric algorithms, without limitation.
[0145] In step S603 of some embodiments, the preset third initial parameter is 1, an arithmetic sequence with the third initial parameter as the first term and a common difference of 1 is constructed, and the numerical value corresponding to each term of the arithmetic sequence is used as the key value of the third key data to obtain the third value data. For example, for multiple third code files belonging to the tenth-year file package, the first value data will increment from 1. The third value data of the third code file M is 6, and the third value data of the first code file N is 7.
[0146] In step S604 of some embodiments, the third key data and the third value data of each third code file are combined to obtain the third key-value pair data of the third code file. The third key-value pair data is the third ID data of the third code file, and the third ID data can be used to represent the file name of the third code file.
[0147] In step S605 of some embodiments, perform packaging processing on all third code files whose third ID data is inconsistent with the first ID data to obtain the third file package.
[0148] Through the above steps S601 to S605, the automated naming of the third code file can be achieved, and the third code file with the same file ID as the first code file can be effectively filtered, improving the accuracy and efficiency of file filtering. Thus, it is convenient to package all the third code files with inconsistent third ID data and first ID data to obtain a third file package, effectively avoiding duplicate file packaging.
[0149] In step S108 of some embodiments, the first file package, the second file package, and the third file package are integrated to form a complete project file package, obtaining a target file package that meets the current project requirements.
[0150] Please refer to Figure 7 , after step S108 of some embodiments, the file processing method may further include but is not limited to steps S701 to S704:
[0151] Step S701, obtaining a trigger request for indicating a release operation;
[0152] Step S702, generating a file approval reminder message according to the trigger request, and sending the file approval reminder message to the audit end;
[0153] Step S703, obtaining approval feedback data fed back by the audit end according to the file approval reminder message, where the approval feedback data includes an approval to release message for indicating an approved release operation;
[0154] Step S704, performing a release operation according to the approval to release message to send the target file package to the client.
[0155] In step S701 of some embodiments, a trigger request for indicating a release operation is obtained through a preset script program, and the trigger request includes a release operation for indicating a production requirement release file. To improve the security of file release, when the trigger request is for a production requirement release file, further release operation review is required to improve the security of file release.
[0156] In step S702 of some embodiments, when the trigger request is for a production requirement release file, a file approval reminder message is generated according to the trigger request. The file approval reminder message includes the name of the file to be audited, the user information of the release request, the release requirement information, etc., and the file approval reminder message is sent to the audit end for release audit in the form of an email or other form. The content of the file approval reminder message is verified by the audit personnel at the audit end or a preset audit program to confirm whether the trigger request meets the requirements.
[0157] In step S703 of some embodiments, after the review end reviews the above file approval reminder information, the development application end obtains the approval feedback data fed back by the review end according to the file approval reminder. The approval feedback data is used to indicate whether the review end agrees to the trigger request. The approval feedback data includes approval release information for indicating an approval release operation or disapproval release information for indicating a disapproval release operation.
[0158] In step S704 of some embodiments, when the approval feedback data is approval release information, the target file package is released to the client according to the approval release information. The client can be a user end or other third party, without limitation. When releasing the target file package to the client, all file packages in the target file package can be released to the client, or the first file package, the second file package, or the third file package can be released according to the release operation, without limitation here. In addition, when the approval feedback data is disapproval release information, it is automatically rolled back to the previous file release node, and the approval feedback data is sent to the operation object in the form of an email, etc. The operation object is the object of the trigger request indicating the release operation.
[0159] Through the above steps S701 to S704, the release operation can be reviewed according to different release requirements when the file package is released, so that the file package can be released or automatically rolled back according to the received review feedback data, effectively avoiding situations such as incorrect file package release and improving the accuracy of file processing.
[0160] The file processing method according to the embodiment of the present application obtains pre-created original project data, and extracts a target project from a preset project library according to the original project data or obtains the target project from the local end of the development application. The target project includes at least two original folders, and each original folder is stored in an original storage path. This method can conveniently obtain all file information that meets the current project requirements. Further, the at least two original folders are screened according to the original path names of the original storage paths to obtain a target folder and a target project list. The target folder stores target files. The original folders are used to extract files according to a pre-obtained code configuration table to obtain first code files. The first code files are packaged to obtain a first file package and first ID data of the first code files, which can conveniently determine the code files belonging to the first file package, package these code files, and determine the file IDs of these code files. Further, the target files are classified according to preset target prefix information to obtain second code files and third code files. The second code files include the target prefix information, and the third code files do not include the target prefix information. This can conveniently distinguish the target files according to the target prefix information. Then, the second code files are packaged according to a preset first packaging method and the first ID data to obtain a second file package, and the file IDs of these second code files are determined. The third code files are packaged according to a preset second packaging method and the first ID data to obtain a third file package, and the file IDs of these third code files are determined, improving the accuracy of file packaging. The code files of the same type can be accurately packaged together. Finally, a target file package is obtained according to the first file package, the second file package, and the third file package, which can effectively improve the accuracy of file packaging and file classification. By different file naming methods, each code file corresponds to a unique file ID, which can also effectively avoid file naming conflicts, improving the accuracy of file processing and file processing efficiency as a whole.
[0161] Please refer to Figure 8 , the embodiment of the present application further provides a file processing device, which is applied to the development application end and can implement the above file processing method. The device includes:
[0162] A project data acquisition module 801, configured to acquire pre-created original project data. The original project data is a software development project in a software development environment.
[0163] A project file extraction module 802, configured to extract a target project from a preset project library according to the original project data or obtain the target project from the local end of the development application. The target project includes at least two original folders, and each original folder is stored in an original storage path.
[0164] A screening module 803, configured to screen at least two original folders according to the original path name of the original storage path, so as to obtain a target folder and a target project list; wherein, the target folder stores target files, and the target project list includes at least two target folders;
[0165] A code file extraction module 804, configured to extract files from the original folder according to a pre-obtained code configuration table, so as to obtain a first code file;
[0166] A first file packaging module 805, configured to package the first code file, so as to obtain a first file package and first ID data of the first code file;
[0167] A file classification module 806, configured to classify the target files according to preset target prefix information, so as to obtain a second code file and a third code file, wherein the second code file includes the target prefix information, and the third code file does not include the target prefix information;
[0168] A second file packaging module 807, configured to package the second code file according to a preset first packaging method and the first ID data to obtain a second file package, and package the third code file according to a preset second packaging method and the first ID data to obtain a third file package;
[0169] An integration module 808, configured to obtain a target file package according to the first file package, the second file package, and the third file package.
[0170] In some embodiments, the screening module 803 includes:
[0171] A path name acquisition unit, configured to acquire a preset reference path name;
[0172] A path name comparison unit, configured to compare the original path name with the reference path name;
[0173] A folder selection unit, configured to select an original folder with the same original path name and reference path name as the target folder;
[0174] A folder screening unit, configured to screen the target folder to obtain a target project list.
[0175] In some embodiments, the first file packaging module 805 includes:
[0176] A first data acquisition unit, configured to acquire first code data of the first code file;
[0177] A first encryption unit, configured to encrypt the first code data to obtain first key data;
[0178] The first value data construction unit is used to construct first value data according to a preset first initial parameter, where the first value data is the key value of the first key data, and the first value data is an arithmetic sequence with the first initial parameter as the first term;
[0179] The first key-value pair construction unit is used to construct the first key-value pair data of the first code file according to the first key data and the first value data, and obtain the first ID data according to the first key-value pair data;
[0180] The first packaging unit is used to perform a packaging process on the first code file according to the first ID data to obtain a first file package.
[0181] In some embodiments, the target file includes original prefix information, and the file classification module 806 includes:
[0182] Compare the original prefix information with the target prefix information;
[0183] If the original prefix information is consistent with the target prefix information, regard the target file as the second code file;
[0184] If the original prefix information is inconsistent with the target prefix information, regard the target file as the third code file.
[0185] In some embodiments, the second file packaging module 807 includes:
[0186] The second data acquisition unit is used to acquire the file path data of the second code file;
[0187] The second encryption unit is used to encrypt the file path data to obtain the second key data of the second code file;
[0188] The second value data construction unit is used to construct second value data according to a preset second initial parameter, where the second value data is the key value of the second key data, and the second value data is an arithmetic sequence with the second initial parameter as the first term;
[0189] The second key-value pair construction unit is used to construct the second key-value pair data of the second code file according to the second key data and the second value data, and obtain the second ID data of the second code file according to the second key-value pair data;
[0190] The second packaging unit is used to perform a packaging process on all second code files whose second ID data is inconsistent with the first ID data to obtain a second file package.
[0191] In some embodiments, the second file packaging module 807 includes:
[0192] The third data acquisition unit is used to acquire the second code data of the third code file;
[0193] A third encryption unit, configured to perform encryption processing on the second code data to obtain third key data of a third code file;
[0194] A third value data construction unit, configured to construct third value data according to a preset third initial parameter, where the third value data is a key value of the third key data, and the third value data is an arithmetic progression with the third initial parameter as the first term;
[0195] A third key-value pair construction unit, configured to construct third key-value pair data of the third code file according to the third key data and the third value data, and obtain third ID data of the third code file according to the third key-value pair data;
[0196] A third packaging unit, configured to perform packaging processing on third code files where all third ID data is inconsistent with the first ID data to obtain a third file package.
[0197] In some embodiments, the file processing device further includes a file publishing module, specifically including:
[0198] A request acquisition unit, configured to acquire a trigger request for indicating a publishing operation;
[0199] An information sending unit, configured to generate a file approval reminder message according to the trigger request and send the file approval reminder message to an audit end;
[0200] A feedback data acquisition unit, configured to acquire approval feedback data fed back by the audit end according to the file approval reminder message, where the approval feedback data includes an approval to publish message for indicating an approval to publish operation;
[0201] A file publishing unit, configured to perform a publishing operation according to the approval to publish message to send a target file package to a client.
[0202] The specific implementation manner of this file processing device is basically the same as the specific embodiments of the above file processing method, and will not be elaborated here.
[0203] An embodiment of this application further provides an electronic device, including: a memory, a processor, a program stored on the memory and executable on the processor, and a data bus for implementing connection communication between the processor and the memory. When the program is executed by the processor, the above file processing method is implemented. This electronic device can be any intelligent terminal including a tablet computer, a vehicle-mounted computer, etc.
[0204] Please refer to Figure 9 , Figure 9 which illustrates the hardware structure of an electronic device in another embodiment. The electronic device includes:
[0205] The processor 901 can be implemented in the form of a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, etc., and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0206] The memory 902 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM), etc. The memory 902 can store an operating system and other application programs. When implementing the technical solutions provided in the embodiments of this specification through software or firmware, the relevant program codes are stored in the memory 902 and are called by the processor 901 to execute the file processing method of the embodiments of the present application;
[0207] The input / output interface 903 is used to implement information input and output;
[0208] The communication interface 904 is used to implement communication interaction between this device and other devices, and can implement communication through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.);
[0209] The bus 905 transmits information between various components of the device (such as the processor 901, the memory 902, the input / output interface 903, and the communication interface 904);
[0210] Among them, the processor 901, the memory 902, the input / output interface 903, and the communication interface 904 are communicatively connected to each other inside the device through the bus 905.
[0211] The embodiments of the present application also provide a storage medium, which is a computer-readable storage medium for computer-readable storage. The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above file processing method.
[0212] As a non-transitory computer-readable storage medium, the memory can be used to store non-transitory software programs and non-transitory computer-executable programs. In addition, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories can be connected to the processor through a network. Examples of the above networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0213] The file processing method, file processing apparatus, electronic device, and storage medium provided by the embodiments of the present application obtain pre-created original project data, and extract a target project from a preset project library according to the original project data or obtain a target project from the local end of the development application. The target project includes at least two original folders, and each original folder is stored in an original storage path. This way can more conveniently obtain all file information that meets the current project requirements. Further, filter at least two original folders according to the original path names of the original storage paths to obtain a target folder and a target project list. The target folder stores target files. Extract files from the original folders according to a pre-obtained code configuration table to obtain first code files. Perform a packaging process on the first code files to obtain a first file package and first ID data of the first code files, which can more conveniently determine the code files belonging to the first file package, perform a packaging process on these code files, and determine the file IDs of these code files. Further, classify the target files according to preset target prefix information to obtain second code files and third code files. The second code files include the target prefix information, and the third code files do not include the target prefix information, which can more conveniently distinguish the target files according to the target prefix information. Then, perform a packaging process on the second code files according to the preset first packaging method and the first ID data to obtain a second file package, and determine the file IDs of these second code files. Perform a packaging process on the third code files according to the preset second packaging method and the first ID data to obtain a third file package, and determine the file IDs of these third code files, improving the accuracy of file packaging, and accurately packaging code files of the same type together. Finally, obtain a target file package according to the first file package, the second file package, and the third file package, which can effectively improve the accuracy of file packaging and file classification. Through different file naming methods, each code file corresponds to a unique file ID, which can also effectively avoid file naming conflicts, and overall improve the accuracy of file processing and file processing efficiency.
[0214] The embodiments described in the embodiments of the present application are to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. As can be known to those skilled in the art, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.
[0215] Those skilled in the art can understand that Figure 1-7 the technical solutions shown in do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than those shown, or combine certain steps, or different steps.
[0216] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0217] Those of ordinary skill in the art can understand that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, and their appropriate combinations.
[0218] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not have to be used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.
[0219] It should be understood that in this application, "at least one (item)" means one or more, and "a plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that there can be three relationships. For example, "A and / or B" can mean: only A exists, only B exists, and both A and B exist at the same time. Among them, A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects before and after. "At least one (one)" or a similar expression below refers to any combination of these items, including any combination of single items (one) or plural items (ones). For example, at least one (one) of a, b, or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0220] In several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the above division of units is only a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection to each other can be through some interfaces. The indirect coupling or communication connection of devices or units can be in electrical, mechanical or other forms.
[0221] The units described above as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they can be located in one place, or they can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0222] In addition, the functional units in each embodiment of this application can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0223] When an integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods of various embodiments of this application. The aforementioned storage medium includes: various media that can store programs, such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs.
[0224] The preferred embodiments of the embodiments of this application have been described above with reference to the accompanying drawings. This does not limit the scope of the rights of the embodiments of this application. Any modifications, equivalent replacements, and improvements made by those skilled in the art without departing from the scope and essence of the embodiments of this application shall be within the scope of the rights of the embodiments of this application.
Claims
1. A file processing method, applied to the development application side, characterized in that, The method includes: Obtaining pre-created original project data; wherein, the original project data is a software development project in a software development environment; Extracting a target project from a preset project library according to the original project data or obtaining the target project from the local end of the development application; wherein, the target project includes at least two original folders, and each of the original folders is stored in an original storage path; Performing a screening process on the at least two original folders according to the original path names of the original storage paths to obtain a target folder and a target project list; wherein, the target folder stores target files, and the target project list includes at least two of the target folders; Extracting files from the original folders according to a pre-obtained code configuration table to obtain first code files; Determining first ID data of the first code files, and performing a packaging process on the first code files according to the first ID data to obtain first file packages; Classifying the target files according to preset target prefix information to obtain second code files and third code files, wherein, the second code files include the target prefix information, and the third code files do not include the target prefix information; the second code files have second ID data, and the third code files have third ID data; Performing a packaging process on the second code files according to a preset first packaging method and the first ID data to obtain second file packages, and performing a packaging process on the third code files according to a preset second packaging method and the first ID data to obtain third file packages, the second file packages are obtained by performing a packaging process on all second code files with second ID data inconsistent with the first ID data, and the third file packages are obtained by performing a packaging process on all third code files with third ID data inconsistent with the first ID data; Obtaining a target file package according to the first file package, the second file packages, and the third file packages.
2. The file processing method according to claim 1, characterized in that, The step of performing a screening process on the at least two original folders according to the original path names of the original storage paths to obtain a target folder and a target project list includes: Obtaining a preset reference path name; Comparing the original path name and the reference path name; Selecting the original folders with the original path name consistent with the reference path name as the target folder; Performing a screening process on the target folder to obtain the target project list.
3. The file processing method according to claim 1, characterized in that, The step of determining first ID data of the first code files includes: Obtaining first code data of the first code files; Performing an encryption process on the first code data to obtain first key data; Constructing first value data according to a preset first initial parameter, wherein, the first value data is the key value of the first key data, and the first value data is an arithmetic sequence with the first initial parameter as the first term; Constructing first key-value pair data of the first code files according to the first key data and the first value data, and obtaining the first ID data according to the first key-value pair data.
4. The file processing method according to claim 1, characterized in that, The target file includes original prefix information. The step of classifying the target file according to the preset target prefix information to obtain a second code file and a third code file includes: Comparing the original prefix information with the target prefix information; If the original prefix information is the same as the target prefix information, using the target file as the second code file; If the original prefix information is different from the target prefix information, using the target file as the third code file.
5. The file processing method according to claim 1, characterized in that, The step of packaging the second code file according to the preset first packaging method and the first ID data to obtain a second file package includes: Obtaining the file path data of the second code file; Performing encryption processing on the file path data to obtain second key data; Constructing second value data according to the preset second initial parameter, where the second value data is the key value of the second key data, and the second value data is an arithmetic sequence with the second initial parameter as the first term; Constructing second key-value pair data of the second code file according to the second key data and the second value data, and obtaining second ID data of the second code file according to the second key-value pair data; Performing packaging processing on all second code files whose second ID data is different from the first ID data to obtain the second file package.
6. The file processing method according to claim 1, characterized in that, The step of packaging the third code file according to the preset second packaging method and the first ID data to obtain a third file package includes: Obtaining second code data of the third code file; Performing encryption processing on the second code data to obtain third key data; Constructing third value data according to the preset third initial parameter, where the third value data is the key value of the third key data, and the third value data is an arithmetic sequence with the third initial parameter as the first term; Constructing third key-value pair data of the third code file according to the third key data and the third value data, and obtaining third ID data of the third code file according to the third key-value pair data; Performing packaging processing on all third code files whose third ID data is different from the first ID data to obtain the third file package.
7. The document processing method according to any one of claims 1 to 6, characterized in that After the step of obtaining the target file package according to the first file package, the second file package, and the third file package, the method further includes: Obtaining a trigger request for indicating a release operation; Generating a file approval reminder message according to the trigger request and sending the file approval reminder message to the review end; Obtaining approval feedback data fed back by the review end according to the file approval reminder message, where the approval feedback data includes an approval to release message for indicating approval of the release operation; Performing the release operation according to the approval to release message to send the target file package to the client.
8. A document processing device, applied to the development application side, characterized in that The device includes: A project data acquisition module, configured to acquire pre-created original project data; where the original project data is a software development project in a software development environment; A project file extraction module, configured to extract a target project from a preset project library according to the original project data or obtain a target project from the local end of the development application end; wherein, the target project includes at least two original folders, and each of the original folders is stored in an original storage path; A screening module, configured to perform screening processing on the at least two original folders according to the original path names of the original storage paths to obtain a target folder and a target project list; wherein, the target folder stores target files, and the target project list includes at least two of the target folders; A code file extraction module, configured to perform file extraction on the original folder according to a pre-obtained code configuration table to obtain a first code file; A first file packaging module, configured to determine first ID data of the first code file and perform packaging processing on the first code file according to the first ID data to obtain a first file package; A file classification module, configured to perform classification processing on the target files according to preset target prefix information to obtain a second code file and a third code file, wherein the second code file includes the target prefix information, the third code file does not include the target prefix information, the second code file has second ID data, and the third code file has third ID data; A second file packaging module, configured to perform packaging processing on the second code file according to a preset first packaging method and the first ID data to obtain a second file package, and perform packaging processing on the third code file according to a preset second packaging method and the first ID data to obtain a third file package, where the second file package is obtained by performing packaging processing on all second code files whose second ID data is inconsistent with the first ID data, and the third file package is obtained by performing packaging processing on all third code files whose third ID data is inconsistent with the first ID data; An integration module, configured to obtain a target file package according to the first file package, the second file package, and the third file package.
9. An electronic device, characterized in that The electronic device includes a memory, a processor, a program stored on the memory and executable on the processor, and a data bus for realizing connection communication between the processor and the memory. When the program is executed by the processor, the steps of the file processing method according to any one of claims 1 to 7 are implemented.
10. A storage medium, the storage medium being a computer-readable storage medium for computer-readable storage, characterized in that The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the file processing method according to any one of claims 1 to 7.
Citation Information
Patent Citations
SDK-based multi-application adaptation method and device, equipment and medium
CN114003210A
Device and method for storing file
US20110179095A1