This commit is contained in:
王炜翔 2025-02-16 17:48:39 +08:00
parent 8fba8f676c
commit 5a66aa6af8

View File

@ -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,