diff --git a/asg_form/Controllers/InviteReferee.cs b/asg_form/Controllers/InviteReferee.cs index ac5e357..4d77afc 100644 --- a/asg_form/Controllers/InviteReferee.cs +++ b/asg_form/Controllers/InviteReferee.cs @@ -64,12 +64,12 @@ namespace asg_form.Controllers user_id = msg.invitedId, 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(); var data = new { - invitedId = userId, + invitedId = (int)userId, matchId = msg.matchId, }; return Ok(new { code = 200, message = "邀请成功", data });