diff --git a/asg_form/Controllers/Teamregistration/RegisterController.cs b/asg_form/Controllers/Teamregistration/RegisterController.cs index 25b7df4..229e22a 100644 --- a/asg_form/Controllers/Teamregistration/RegisterController.cs +++ b/asg_form/Controllers/Teamregistration/RegisterController.cs @@ -4,6 +4,7 @@ using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using System.Security.Claims; using Microsoft.EntityFrameworkCore; +using RestSharp.Extensions; namespace asg_form.Controllers.Teamregistration { @@ -81,7 +82,7 @@ namespace asg_form.Controllers.Teamregistration return Ok(new error_mb { code = 200, message = "提亀成功" }); } - var query = sub.T_Comform.Find(msg.id); + var query = sub.T_Comform.Find(long.Parse(msg.id)); query.chinaname = msg.chinaname; query.user_id = msg.userId; query.sex = msg.sex;