提交 39d236b8 authored 作者: renjianyu's avatar renjianyu

--no commit message

上级 36903944
...@@ -262,6 +262,7 @@ public class FileController { ...@@ -262,6 +262,7 @@ public class FileController {
} }
File f = new File(rootPath + filePath); File f = new File(rootPath + filePath);
logger.info(rootPath + fileName);
realFile = f; realFile = f;
if (!f.exists()) { if (!f.exists()) {
throw new BaseException("没有找到该文件!"); throw new BaseException("没有找到该文件!");
...@@ -335,9 +336,11 @@ public class FileController { ...@@ -335,9 +336,11 @@ public class FileController {
} }
File f = new File(filePath); File f = new File(filePath);
logger.info(filePath);
realFile = f; realFile = f;
if (!f.exists()) { if (!f.exists()) {
File ef = new File(epubFilePath); File ef = new File(epubFilePath);
logger.info("epb:"+epubFilePath);
realFile = ef; realFile = ef;
if (!ef.exists()) { if (!ef.exists()) {
throw new BaseException("没有找到该文件!"); throw new BaseException("没有找到该文件!");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论