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);