From baaa23e4f950714d9bf3639f0c378343b690f1c6 Mon Sep 17 00:00:00 2001 From: liuyangyi Date: Thu, 4 Jul 2024 19:32:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=90=8C=E6=AD=A5=E6=95=B0?= =?UTF-8?q?=E6=8D=AEbug=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- New_College.Api/Controllers/Front/CustomerController.cs | 3 +++ New_College.Api/Controllers/OAuthController.cs | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/New_College.Api/Controllers/Front/CustomerController.cs b/New_College.Api/Controllers/Front/CustomerController.cs index d3fbb53..c0fbe26 100644 --- a/New_College.Api/Controllers/Front/CustomerController.cs +++ b/New_College.Api/Controllers/Front/CustomerController.cs @@ -315,6 +315,9 @@ namespace New_College.Api.Controllers.Front newId = firstinfo.Id; var endinfo = customer.FirstOrDefault(e => e.Id != firstinfo.Id); firstinfo.IsVIP = endinfo.IsVIP ? true : firstinfo.IsVIP; + firstinfo.Subject = endinfo.Subject; + firstinfo.subjectgroupName = endinfo.subjectgroupName; + firstinfo.Subjectgroup = endinfo.Subjectgroup; firstinfo.OpenId = endinfo.OpenId; //firstinfo.UserPwd = endinfo.UserPwd; //firstinfo.Salt= endinfo.Salt; diff --git a/New_College.Api/Controllers/OAuthController.cs b/New_College.Api/Controllers/OAuthController.cs index b4db518..5b93009 100644 --- a/New_College.Api/Controllers/OAuthController.cs +++ b/New_College.Api/Controllers/OAuthController.cs @@ -134,7 +134,8 @@ namespace New_College.Controllers OpenId = userinfo.aud, CreateTime = DateTime.UtcNow, IsVIP = false, - Gender = 0 + Gender = 0, + Subject = 1 }; user.Id = await _CustomerInfoServices.Add(user);