`
This commit is contained in:
parent
8fba8f676c
commit
5a66aa6af8
@ -216,7 +216,7 @@ 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) 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
|
var addData = new BeInviteForUsers
|
||||||
{
|
{
|
||||||
id = record.id,
|
id = record.id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user