Compare commits

...

2 Commits

Author SHA1 Message Date
wyw
5c7d2a5a0b Merge branch 'master' of http://121.41.2.71:3000/wyw/mh_jy_safe 2026-03-23 08:55:58 +08:00
wyw
a66ab36177 已删除附件提醒修改 2026-03-23 08:55:52 +08:00

View File

@ -36,12 +36,15 @@ namespace APT.SE.WebApi.Controllers.Api
var Detail = entity.Nav_Detail; var Detail = entity.Nav_Detail;
entity.Nav_Detail = null; entity.Nav_Detail = null;
if (Files != null && Files.Count() > 1) if (Files != null && Files.Count() > 1)
{ {
throw new Exception("课件只能单一文件"); throw new Exception("课件只能单一文件");
} }
if (entity.FILE_DB_ID.HasValue && Files != null && Files.Count > 0) if (entity.FILE_DB_ID.HasValue && Files != null && Files.Count > 0)
{ {
int fileCount = Files.Where(e => !e.IS_DELETED).Count();
if (fileCount > 0)
throw new Exception("视频和附件只能有一个!");//不然到时候 考试 看视频或者附件不好处理 throw new Exception("视频和附件只能有一个!");//不然到时候 考试 看视频或者附件不好处理
} }
if (entity.SCOREPASS == 0) if (entity.SCOREPASS == 0)