leo.xie 3 rokov pred
rodič
commit
94a9910181

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

@@ -325,8 +325,8 @@ public class DocServiceImpl extends ServiceImpl<DocDao, Doc> implements DocServi
         String docUrl = doc.getDocUrl();
         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;
+        String filePath = pictureConfig.getServerBasePath() +"/"+ pictureConfig.getUploadPath() + "/" + userNo + "/" + docId + fileName + ".pdf";
+        String imageFilePath = pictureConfig.getServerBasePath() +"/"+ pictureConfig.getUploadPath() + "/" + userNo + "/" + docId + fileName + File.separator;
         String createPath = pictureConfig.getBasePath() + "/" + pictureConfig.getUploadPath() + "/" + userNo + "/" + docId + fileName + ".pdf";
         File fromFile = new File(createPath);
         //判断目标文件所在的目录是否存在