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",