From f3895f3bcf84e5ab537a826b43a0248af533a46c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=82=9C=E7=BF=94?= <2307953404@qq.com> Date: Thu, 23 Jan 2025 22:38:39 +0800 Subject: [PATCH] 1 --- asg_form/Controllers/Teamregistration/RegisterController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = "你已经提交过表单了,请不要重复提交" }); }