Commit 806813f4 authored by xuepeng.chang's avatar xuepeng.chang

限制小程序登陆

parent 32fad388
......@@ -94,10 +94,11 @@ public class InterLoginStrategy implements LoginStrategy {
// 临时的限制泄露账户的用户不让用户的小程序登陆,在上线微信解绑功能后删除
if (StringUtils.isNotEmpty(interLoginParam.getAppId()) && StringUtils.isNotEmpty(interLoginParam.getOpenId())){
if(StringUtils.isNotEmpty(commonProperties.getWechatBlackUserIds())
&& commonProperties.getWechatBlackUserIds().contains(user.getId().toString()))
&& commonProperties.getWechatBlackUserIds().contains(user.getId().toString())){
log.info("用户,限制小程序登陆,userId:{}", user.getId());
throw new SilentBizException(BizExceptionEnum.ERROR_WECHAT_LOGIN);
}
}
//2、需要判断是否是否启用
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