From 5a66aa6af8c12fcb831aadf6382f43f2247a089e 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 17:48:39 +0800 Subject: [PATCH] ` --- 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 19a1e3d..f7ba24a 100644 --- a/asg_form/Controllers/InviteReferee.cs +++ b/asg_form/Controllers/InviteReferee.cs @@ -216,7 +216,7 @@ 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) return Ok(new { code = 200, message = "没有比赛资料" }); + if (theGame.belong == null) return Ok(new { code = 200, message = "没有比赛资料" }); var addData = new BeInviteForUsers { id = record.id,