派生自 projectDept/qhighschool

yn147
2023-10-26 3970ced88b5b456f03fe277c254ca761f05492e0
src/main/java/com/qxueyou/scc/teach/res/service/impl/FileService.java
@@ -75,13 +75,17 @@
         String destPath = getDestPath(name);
         String fullPath = config.getResRootPath() + "/" + destPath;
         //截取上传华为云的编码
         File fileRoot = new File(fullPath.substring(0, fullPath.lastIndexOf("/")));
         if (!fileRoot.exists()) {
            fileRoot.mkdirs();
         }
         //压缩
         FileUtils.copyInputStreamToFile(in, new File(fullPath));
         //华为云编码存入数据库
         ResFile file = insertFileToDB(name, fullPath, destPath, getFileType(name));
         return new Result(true, "success",