Commit b628d4b5 authored by yanzg's avatar yanzg

参数处理

parent f6562d2b
...@@ -132,7 +132,7 @@ public class YzgFileServiceImpl implements YzgFileService { ...@@ -132,7 +132,7 @@ public class YzgFileServiceImpl implements YzgFileService {
String fromFullUrl = fileConfig.getServerFullPath(fromUrl); String fromFullUrl = fileConfig.getServerFullPath(fromUrl);
// 父文件夹不存在子文件时则删除 // 父文件夹不存在子文件时则删除
File file = new File(fromFullUrl); File file = new File(fromFullUrl);
if (file.exists()) { if (!file.exists()) {
throw new CodeException("文件不存在"); throw new CodeException("文件不存在");
} }
if (file.isDirectory()) { if (file.isDirectory()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment