|
@@ -335,9 +335,9 @@ public class DocServiceImpl extends ServiceImpl<DocDao, Doc> implements DocServi
|
|
|
String docUrl = doc.getDocUrl();
|
|
|
String domain = pictureConfig.getServerPath();
|
|
|
String path = domain + request.getContextPath() + "/";
|
|
|
- String filePath = pictureConfig.getServerBasePath() +"/"+ pictureConfig.getUploadPath() + "/" + docId +"/"+ fileName + ".pdf";
|
|
|
- String imageFilePath = pictureConfig.getServerBasePath() +"/"+ pictureConfig.getUploadPath() + "/" + docId +"/"+ fileName + File.separator;
|
|
|
- String createPath = pictureConfig.getBasePath() + "/" + pictureConfig.getUploadPath() + "/" + docId + fileName +"/"+ ".pdf";
|
|
|
+ String filePath = pictureConfig.getServerBasePath() +"/"+ pictureConfig.getUploadPath() + "/" + "produce/" + docId +"/"+ fileName + ".pdf";
|
|
|
+ String imageFilePath = pictureConfig.getServerBasePath() +"/"+ pictureConfig.getUploadPath() + "produce/" + docId +"/"+ fileName + File.separator;
|
|
|
+ String createPath = pictureConfig.getBasePath() + "/" + pictureConfig.getUploadPath() + "produce/" + docId +"/"+ fileName +"/"+ ".pdf";
|
|
|
File fromFile = new File(createPath);
|
|
|
//判断目标文件所在的目录是否存在
|
|
|
if (!fromFile.getParentFile().exists()) {
|