diff --git a/asg_form/Controllers/InviteReferee.cs b/asg_form/Controllers/InviteReferee.cs index 98c304e..6eebb55 100644 --- a/asg_form/Controllers/InviteReferee.cs +++ b/asg_form/Controllers/InviteReferee.cs @@ -1,4 +1,5 @@ -using Masuit.Tools; +using Manganese.Array; +using Masuit.Tools; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; @@ -58,10 +59,15 @@ namespace asg_form.Controllers return Ok(new { code = 409, message = "邀请已存在" }); } } + invitationRecord = new InviteBg + { + user_id = msg.invitedId, + my_request = new List<(int, int)>() + }; + invitationRecord.my_request.Add((invitor_id: (int)userId, match_id: msg.matchId)); - - - + await sb.SaveChangesAsync(); + } catch (Exception ex) {