diff --git a/asg_form/Controllers/Teamregistration/RegisterController.cs b/asg_form/Controllers/Teamregistration/RegisterController.cs index 229e22a..12d6654 100644 --- a/asg_form/Controllers/Teamregistration/RegisterController.cs +++ b/asg_form/Controllers/Teamregistration/RegisterController.cs @@ -33,7 +33,7 @@ namespace asg_form.Controllers.Teamregistration public string gameId { get; set; } public string historyRank { get; set; } public string contactNumber { get; set; } - public string id { get; set; } + public long id { get; set; } } public class RegisterController : ControllerBase { @@ -82,7 +82,7 @@ namespace asg_form.Controllers.Teamregistration return Ok(new error_mb { code = 200, message = "提亀成功" }); } - var query = sub.T_Comform.Find(long.Parse(msg.id)); + var query = sub.T_Comform.Find(msg.id); query.chinaname = msg.chinaname; query.user_id = msg.userId; query.sex = msg.sex;