Commit d6921e0e authored by liudong1993's avatar liudong1993

1

parent 633b55ee
...@@ -303,7 +303,7 @@ namespace Mall.WebApi.Controllers.User ...@@ -303,7 +303,7 @@ namespace Mall.WebApi.Controllers.User
try try
{ {
//教育 甲小鹤跳转至甲鹤小程序 自动绑定账号信息 //教育 甲小鹤跳转至甲鹤小程序 自动绑定账号信息
var eduModel = activityModule.GetEducationSellBaseInfo(new Model.Extend.Education.RB_Education_EduSell_Extend { TenantId = demodel.TenantId, MallBaseId = demodel.MallBaseId, EduSellId = EduId }).FirstOrDefault(); var eduModel = activityModule.GetEducationSellList(new Model.Extend.Education.RB_Education_EduSell_Extend { TenantId = demodel.TenantId, MallBaseId = demodel.MallBaseId, EduSellId = EduId }).FirstOrDefault();
if (eduModel != null && eduModel.UserId != UserId) if (eduModel != null && eduModel.UserId != UserId)
{ {
LogHelper.Write("账户已绑定其他用户(甲小鹤跳甲鹤自动绑学员账号)EduId:" + EduId + ",UserId:" + UserId); LogHelper.Write("账户已绑定其他用户(甲小鹤跳甲鹤自动绑学员账号)EduId:" + EduId + ",UserId:" + UserId);
...@@ -448,12 +448,12 @@ namespace Mall.WebApi.Controllers.User ...@@ -448,12 +448,12 @@ namespace Mall.WebApi.Controllers.User
} }
UserReidsCache.AppletUserInfoSet(UserModuleCacheKeyConfig.Applet_Login_Info + umodel.Id, appletUserInfo, Config.JwtExpirTime); UserReidsCache.AppletUserInfoSet(UserModuleCacheKeyConfig.Applet_Login_Info + umodel.Id, appletUserInfo, Config.JwtExpirTime);
if (EduId > 0 && demodel.MallBaseId == 5) if (EduId > 0 && umodel.MallBaseId == 5)
{ {
try try
{ {
//教育 甲小鹤跳转至甲鹤小程序 自动绑定账号信息 //教育 甲小鹤跳转至甲鹤小程序 自动绑定账号信息
var eduModel = activityModule.GetEducationSellBaseInfo(new Model.Extend.Education.RB_Education_EduSell_Extend { TenantId = demodel.TenantId, MallBaseId = demodel.MallBaseId, EduSellId = EduId }).FirstOrDefault(); var eduModel = activityModule.GetEducationSellList(new Model.Extend.Education.RB_Education_EduSell_Extend { TenantId = umodel.TenantId, MallBaseId = umodel.MallBaseId, EduSellId = EduId }).FirstOrDefault();
if (eduModel != null && eduModel.UserId != umodel.Id) if (eduModel != null && eduModel.UserId != umodel.Id)
{ {
LogHelper.Write("账户已绑定其他用户(甲小鹤跳甲鹤自动绑学员账号)EduId:" + EduId + ",UserId:" + umodel.Id); LogHelper.Write("账户已绑定其他用户(甲小鹤跳甲鹤自动绑学员账号)EduId:" + EduId + ",UserId:" + umodel.Id);
...@@ -465,8 +465,8 @@ namespace Mall.WebApi.Controllers.User ...@@ -465,8 +465,8 @@ namespace Mall.WebApi.Controllers.User
eduModel = new Model.Extend.Education.RB_Education_EduSell_Extend eduModel = new Model.Extend.Education.RB_Education_EduSell_Extend
{ {
Id = 0, Id = 0,
TenantId = demodel.TenantId, TenantId = umodel.TenantId,
MallBaseId = demodel.MallBaseId, MallBaseId = umodel.MallBaseId,
CreateDate = DateTime.Now, CreateDate = DateTime.Now,
Status = 0, Status = 0,
UserId = umodel.Id, UserId = umodel.Id,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment