Commit fa25332f authored by yanzg's avatar yanzg

下载视频

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