瀏覽代碼

图片暂存本地服务器路径

chao 3 年之前
父節點
當前提交
316e7de373
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/main/java/com/caimei365/tools/service/impl/UploadServiceImpl.java

+ 2 - 1
src/main/java/com/caimei365/tools/service/impl/UploadServiceImpl.java

@@ -143,7 +143,8 @@ public class UploadServiceImpl implements UploadService {
         assert originalFilename != null;
         int index = originalFilename.lastIndexOf(".");
         String name = originalFilename.substring(index);
-        String filePath = "/mnt/newdatadrive/data/runtime/cloud-instance/server-tools/";
+        // 图片暂存本地服务器路径
+        String filePath = "/mnt/newdatadrive/data/runtime/cloud-instance/server-tools/tempImage";
         if ("dev".equals(profile)){
             filePath = "D:\\";
         }