From 06a1a643d35adc90082454c52a348fa009aeddbd 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:08:04 +0800 Subject: [PATCH] 12 --- asg_form/Controllers/InviteReferee.cs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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) {