1
This commit is contained in:
parent
f9fb8816bc
commit
5a2110550c
@ -64,12 +64,12 @@ namespace asg_form.Controllers
|
|||||||
user_id = msg.invitedId,
|
user_id = msg.invitedId,
|
||||||
my_request = new List<(int, int)>()
|
my_request = new List<(int, int)>()
|
||||||
};
|
};
|
||||||
invitationRecord.my_request.Add((invitor_id: userId, match_id: msg.matchId));
|
invitationRecord.my_request.Add((invitor_id: (int)userId, match_id: msg.matchId));
|
||||||
|
|
||||||
await sb.SaveChangesAsync();
|
await sb.SaveChangesAsync();
|
||||||
var data = new
|
var data = new
|
||||||
{
|
{
|
||||||
invitedId = userId,
|
invitedId = (int)userId,
|
||||||
matchId = msg.matchId,
|
matchId = msg.matchId,
|
||||||
};
|
};
|
||||||
return Ok(new { code = 200, message = "邀请成功", data });
|
return Ok(new { code = 200, message = "邀请成功", data });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user