This commit is contained in:
王炜翔 2025-02-16 22:42:36 +08:00
parent 6be74d6921
commit 3b830f6df5

View File

@ -215,8 +215,8 @@ namespace asg_form.Controllers
{ {
var invitor = await userManager.Users.FirstOrDefaultAsync(u => u.Id == record.user_id); var invitor = await userManager.Users.FirstOrDefaultAsync(u => u.Id == record.user_id);
var theGame = sub.team_Games.FirstOrDefault(i => i.id == record.match_id); var theGame = sub.team_Games.FirstOrDefault(i => i.id == record.match_id);
if (invitor == null) return Ok(new { code = 200, message = "被邀请者不存在了" }); if (invitor == null) continue;
if (theGame==null || theGame.belong == null) return Ok(new { code = 500, message = "没有比赛资料" }); if (theGame == null || theGame.belong == null) continue;
var addData = new BeInviteForUsers var addData = new BeInviteForUsers
{ {
id = record.id, id = record.id,