12
This commit is contained in:
parent
6ce23b1857
commit
06a1a643d3
@ -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,9 +59,14 @@ 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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user