bugfix
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-11-22 19:48:35 +08:00
parent b427969501
commit d1f6445df0
+2 -1
View File
@@ -100,7 +100,8 @@ namespace _2021_backend.Pages.Students
foreach(var s in Context.Students)
{
if (s.RegisterTime.CompareTo(new DateTime(2021, 11, 11)) < 0) s.Status = status.不通过;
if (s.RegisterTime.CompareTo(new DateTime(2021, 11, 11)) > 0) s.Status = status.不通过;
else if (s.Status == status.不通过) s.Status = status.刚报名;
}
Context.SaveChanges();
return Construct((int)pageId, errInfo);