mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-03-22 16:07:20 +08:00
【修复】修复公众号下微信支付异常获取openid匹配失败的问题。
This commit is contained in:
@@ -777,6 +777,14 @@ public class CoreCmsUserServices : BaseServices<CoreCmsUser>, ICoreCmsUserServic
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
else if (!string.IsNullOrEmpty(entity.sessionAuthId) && loginType == (int)GlobalEnumVars.LoginType.Sms)
|
||||||
|
{
|
||||||
|
var wxUserInfo = await _userWeChatInfoServices.QueryByClauseAsync(p => p.openid == entity.sessionAuthId && p.type == (int)GlobalEnumVars.UserAccountTypes.微信公众号);
|
||||||
|
if (wxUserInfo != null)
|
||||||
|
{
|
||||||
|
await _userWeChatInfoServices.UpdateAsync(p => new CoreCmsUserWeChatInfo() { userId = userInfo.id }, p => p.openid == entity.sessionAuthId);
|
||||||
|
}
|
||||||
|
}
|
||||||
else if (!string.IsNullOrEmpty(entity.sessionAuthId) && loginType == (int)GlobalEnumVars.LoginType.AliPhoneNumber)
|
else if (!string.IsNullOrEmpty(entity.sessionAuthId) && loginType == (int)GlobalEnumVars.LoginType.AliPhoneNumber)
|
||||||
{
|
{
|
||||||
await _aliPayUserInfoServices.UpdateAsync(p => new CoreCmsAliPayUserInfo() { userInfoId = userInfo.id }, p => p.openId == entity.sessionAuthId || p.userId == entity.sessionAuthId);
|
await _aliPayUserInfoServices.UpdateAsync(p => new CoreCmsAliPayUserInfo() { userInfoId = userInfo.id }, p => p.openId == entity.sessionAuthId || p.userId == entity.sessionAuthId);
|
||||||
|
|||||||
Reference in New Issue
Block a user