This commit is contained in:
王炜翔 2024-10-10 21:55:13 +08:00
parent f9fb8816bc
commit 5a2110550c

View File

@ -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 });