From 3b830f6df5c52eb2362e3a69f83f42adc538176d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=82=9C=E7=BF=94?= <2307953404@qq.com> Date: Sun, 16 Feb 2025 22:42:36 +0800 Subject: [PATCH] 1 --- asg_form/Controllers/InviteReferee.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asg_form/Controllers/InviteReferee.cs b/asg_form/Controllers/InviteReferee.cs index 50af14a..87d1584 100644 --- a/asg_form/Controllers/InviteReferee.cs +++ b/asg_form/Controllers/InviteReferee.cs @@ -215,8 +215,8 @@ namespace asg_form.Controllers { var invitor = await userManager.Users.FirstOrDefaultAsync(u => u.Id == record.user_id); var theGame = sub.team_Games.FirstOrDefault(i => i.id == record.match_id); - if (invitor == null) return Ok(new { code = 200, message = "被邀请者不存在了" }); - if (theGame==null || theGame.belong == null) return Ok(new { code = 500, message = "没有比赛资料" }); + if (invitor == null) continue; + if (theGame == null || theGame.belong == null) continue; var addData = new BeInviteForUsers { id = record.id,