diff --git a/asg_form/Controllers/Teamregistration/RegisterController.cs b/asg_form/Controllers/Teamregistration/RegisterController.cs index f1a7f5e..ba0bb39 100644 --- a/asg_form/Controllers/Teamregistration/RegisterController.cs +++ b/asg_form/Controllers/Teamregistration/RegisterController.cs @@ -67,7 +67,7 @@ namespace asg_form.Controllers.Teamregistration { - if (msg.id == null&&sub.T_Comform.Find(msg.userId) != null) + if (msg.id == null && sub.T_Comform.Any(n => n.user_id==msg.userId)) { return Ok(new error_mb { code = 400, message = "你已经提交过表单了,请不要重复提交" }); }