Commit 43aa4552 authored by xuepeng.chang's avatar xuepeng.chang

禁止 53007786 用户小程序登陆

parent c2563108
...@@ -86,7 +86,14 @@ public class InterLoginStrategy implements LoginStrategy { ...@@ -86,7 +86,14 @@ public class InterLoginStrategy implements LoginStrategy {
throw new SilentBizException(BizExceptionEnum.UN_EXIT_USER); throw new SilentBizException(BizExceptionEnum.UN_EXIT_USER);
} }
// 临时的限制泄露账户的用户不让用户的小程序登陆,在上线微信解绑功能后删除
if (StringUtils.isNotEmpty(interLoginParam.getAppId()) && StringUtils.isNotEmpty(interLoginParam.getOpenId())){
Long id = user.getId();
if(user.getId().equals(53007786L)){
log.info("用户,限制小程序登陆,userId:{}", id);
throw new SilentBizException(BizExceptionEnum.ERROR_WECHAT_LOGIN);
}
}
//2、需要判断是否是否启用 //2、需要判断是否是否启用
if (!user.getEnable()) { if (!user.getEnable()) {
......
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