Compare commits
No commits in common. "5c7d2a5a0bc38bcc907aed1774fadb1ba470b3bc" and "05dd913c7ead51431c7fce24cbcae9927d457990" have entirely different histories.
5c7d2a5a0b
...
05dd913c7e
@ -36,15 +36,12 @@ namespace APT.SE.WebApi.Controllers.Api
|
||||
var Detail = entity.Nav_Detail;
|
||||
entity.Nav_Detail = null;
|
||||
|
||||
|
||||
if (Files != null && Files.Count() > 1)
|
||||
{
|
||||
throw new Exception("课件只能单一文件");
|
||||
}
|
||||
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("视频和附件只能有一个!");//不然到时候 考试 看视频或者附件不好处理
|
||||
}
|
||||
if (entity.SCOREPASS == 0)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user