From 47b7d79462208607d83ec1994075626f2db40443 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=82=9C=E7=BF=94?= <2307953404@qq.com> Date: Mon, 21 Oct 2024 22:47:37 +0800 Subject: [PATCH] 2 --- asg_form/Controllers/InviteReferee.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asg_form/Controllers/InviteReferee.cs b/asg_form/Controllers/InviteReferee.cs index 132d285..92cab4d 100644 --- a/asg_form/Controllers/InviteReferee.cs +++ b/asg_form/Controllers/InviteReferee.cs @@ -150,7 +150,7 @@ namespace asg_form.Controllers var invited = await userManager.Users.FirstOrDefaultAsync(u => u.Id == record.invited_id); var theGame = sub.team_Games.FirstOrDefault(i => i.id == record.match_id); - if (theGame == null) return Ok(new { code = 200, message = "没有比赛资料" }); + if (theGame == null) continue; var addData = new InviteForUsers { id = record.id,