From 5a2110550c429c39fe4070d1a3c78353ddb968ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=82=9C=E7=BF=94?= <2307953404@qq.com> Date: Thu, 10 Oct 2024 21:55:13 +0800 Subject: [PATCH] 1 --- asg_form/Controllers/InviteReferee.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 });