Commit fa25332f authored by yanzg's avatar yanzg

下载视频

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