leo.xie 3 vuotta sitten
vanhempi
commit
e8d0f65f27

+ 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 docUrl = doc.getDocUrl();
-        String domain = pictureConfig.getServerBasePath();
+        String domain = pictureConfig.getServerPath();
         String path = domain + request.getContextPath() + "/";
         String filePath = domain + pictureConfig.getUploadPath() + "/" + userNo + "/" + docId + fileName + ".pdf";
         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());
         if(!new File(pictureFilePath).exists()){
-            throw new BusinessException("当前图片不存在"+pictureFilePath+"|"+domain+"|"+pictureConfig.getBasePath());
+            throw new BusinessException("当前图片不存在"+pictureFilePath+"&"+domain+"&"+pictureConfig.getBasePath());
         }
 
         if (!fromFile.exists()) {