|
@@ -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()) {
|