Antiloveg лет назад: 8
Родитель
Сommit
c9408603a6

+ 2 - 0
src/main/java/com/goafanti/common/controller/PublicController.java

@@ -203,6 +203,8 @@ public class PublicController extends BaseController {
 			}
 		} catch (IOException e) {
 			LoggerUtils.fmtError(getClass(), e, "IO错误:%s", e.getMessage());
+			res.getError().add(buildError(ErrorConstants.FILE_NON_EXISTENT, "下载文件不存在!"));
+			return res;
 		} finally {
 			try {
 				in.close();