leo.xie 3 年之前
父節點
當前提交
e8d0f65f27
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/java/com/ads/business/service/impl/DocServiceImpl.java

+ 2 - 2
src/main/java/com/ads/business/service/impl/DocServiceImpl.java

@@ -323,7 +323,7 @@ public class DocServiceImpl extends ServiceImpl<DocDao, Doc> implements DocServi
 
 
         String fileName = doc.getName();
         String fileName = doc.getName();
         String docUrl = doc.getDocUrl();
         String docUrl = doc.getDocUrl();
-        String domain = pictureConfig.getServerBasePath();
+        String domain = pictureConfig.getServerPath();
         String path = domain + request.getContextPath() + "/";
         String path = domain + request.getContextPath() + "/";
         String filePath = domain + pictureConfig.getUploadPath() + "/" + userNo + "/" + docId + fileName + ".pdf";
         String filePath = domain + pictureConfig.getUploadPath() + "/" + userNo + "/" + docId + fileName + ".pdf";
         String imageFilePath = domain + pictureConfig.getUploadPath() + "/" + userNo + "/" + docId + fileName + File.separator;
         String imageFilePath = domain + pictureConfig.getUploadPath() + "/" + userNo + "/" + docId + fileName + File.separator;
@@ -336,7 +336,7 @@ public class DocServiceImpl extends ServiceImpl<DocDao, Doc> implements DocServi
         }
         }
         String pictureFilePath = docUrl.replace(domain,pictureConfig.getBasePath());
         String pictureFilePath = docUrl.replace(domain,pictureConfig.getBasePath());
         if(!new File(pictureFilePath).exists()){
         if(!new File(pictureFilePath).exists()){
-            throw new BusinessException("当前图片不存在"+pictureFilePath+"|"+domain+"|"+pictureConfig.getBasePath());
+            throw new BusinessException("当前图片不存在"+pictureFilePath+"&"+domain+"&"+pictureConfig.getBasePath());
         }
         }
 
 
         if (!fromFile.exists()) {
         if (!fromFile.exists()) {