Commit 449cacfe authored by 技术部-任文超's avatar 技术部-任文超

解决微信登录未验证用户是否注销的bug

parent 27b9b19f
...@@ -265,7 +265,8 @@ public class WeChatController implements IBaseController { ...@@ -265,7 +265,8 @@ public class WeChatController implements IBaseController {
return; return;
} }
User user = userService.findById(userInfoInDb.getUserId()); User user = userService.findById(userInfoInDb.getUserId());
if (Objects.isNull(user)) { // 用户不存在或已注销
if (Objects.isNull(user) || !user.getEnable()) {
// 用户已经微信登录了,但是关联信用钱包用户信息无效,跳转到注册页面 // 用户已经微信登录了,但是关联信用钱包用户信息无效,跳转到注册页面
redirectWechatLoginUrlWithoutLogin(response, merchant, userInfoInDb, registerFrom, domain); redirectWechatLoginUrlWithoutLogin(response, merchant, userInfoInDb, registerFrom, domain);
return; return;
......
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