Commit fa25332f authored by yanzg's avatar yanzg

下载视频

parent 4a830936
...@@ -143,11 +143,14 @@ public class YzgExcelService { ...@@ -143,11 +143,14 @@ public class YzgExcelService {
if (load == null) { if (load == null) {
throw new CodeException("文件不存在或者已经删除"); throw new CodeException("文件不存在或者已经删除");
} }
// 文件生成成功后,文件是否存在,不存在时则提示
if (StringHelper.toInt(load.getFileStatus()) == YzgFileVo.FILE_STATUS_OK) {
String serverPath = getServerPath(load); String serverPath = getServerPath(load);
File file = new File(serverPath); File file = new File(serverPath);
if (!file.exists()) { if (!file.exists()) {
throw new CodeException("文件不存在或者已经删除"); throw new CodeException("文件不存在或者已经删除");
} }
}
return load; return load;
} }
......
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