lyhzzz 3 年之前
父節點
當前提交
c3c7fdadd1

+ 1 - 0
src/main/java/com/fdkankan/fusion/common/util/FileWriterUtil.java

@@ -16,6 +16,7 @@ public class FileWriterUtil {
             }
             FileWriter fw = new FileWriter(tagPath +File.separator +fileName);
             fw.write(msg);
+            fw.flush();
             fw.close();
         }catch (Exception e){
             e.printStackTrace();

+ 1 - 0
src/main/java/com/fdkankan/fusion/common/util/UploadToOssUtil.java

@@ -201,6 +201,7 @@ public class UploadToOssUtil {
 	public  void uploadFileOss(File file,String filePath) {
 		if(file.isFile()){
 			String ossPath = file.getPath().replace(filePath,"");
+			ossPath = ossPath.replace("/mnt","");
 			ossPath =  ossPath.replace("\\","/");
 			this.uploadOss(file.getPath(),ossPath);
 		}else {