|
@@ -334,7 +334,7 @@ public class DocServiceImpl extends ServiceImpl<DocDao, Doc> implements DocServi
|
|
|
//如果目标文件所在的目录不存在,则创建父目录
|
|
|
fromFile.getParentFile().mkdirs();
|
|
|
}
|
|
|
- String pictureFilePath = docUrl.replace(domain,pictureConfig.getBasePath());
|
|
|
+ String pictureFilePath = docUrl.replace(domain+"file",pictureConfig.getBasePath());
|
|
|
if(!new File(pictureFilePath).exists()){
|
|
|
throw new BusinessException("当前图片不存在"+pictureFilePath+"&"+domain+"&"+pictureConfig.getBasePath());
|
|
|
}
|