修复同步数据bug问题

develop
liuyangyi 2024-07-04 19:32:40 +08:00
parent 43c0572015
commit baaa23e4f9
2 changed files with 5 additions and 1 deletions

View File

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

View File

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