瀏覽代碼

调整源文件存储路径

helongjun 3 年之前
父節點
當前提交
932f0b6774
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/main/java/com/ads/business/service/impl/FileServiceImpl.java

+ 1 - 0
src/main/java/com/ads/business/service/impl/FileServiceImpl.java

@@ -23,6 +23,7 @@ public class FileServiceImpl implements FileService {
         Path storePath = Paths.get(pictureConfig.getBasePath(), pictureConfig.getUploadPath(), pictureConfig.getSourceBasePath(), pictureName);
         // 上传文件的显示路径
         String serverPath = new StringBuilder(pictureConfig.getServerBasePath()).append("/").append(pictureConfig.getUploadPath()).append("/")
+                .append(pictureConfig.getSourceBasePath()).append("/")
                 .append(pictureName).toString();
         return new GetPicturePathOutData(serverPath, storePath);
     }