From a907e26710e0565a1e6bdaaac8fd041e6464759f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=82=9C=E7=BF=94?= <2307953404@qq.com> Date: Mon, 16 Sep 2024 20:39:28 +0800 Subject: [PATCH] 23 --- asg_form/Controllers/Teamregistration/RegisterController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;