Przeglądaj źródła

登录双因素认证后端:skip数据跳过认证

zhuang 1 rok temu
rodzic
commit
d20afe69b5

+ 5 - 1
business-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ZhcxLoginServiceImpl.java

@@ -67,7 +67,11 @@ public class ZhcxLoginServiceImpl implements ZhcxLoginService {
         }
 
         boolean exist = redisService.hasKey(loginType + account);
-        boolean contains = "skip".equals(sysUserDo.getRemark());
+        String remark = sysUserDo.getRemark();
+        boolean contains = false;
+        if(StringUtils.isNotBlank(remark)){
+            contains = "skip".equals(sysUserDo.getRemark());
+        }
         if(exist || contains){
             Object yzmObj = redisService.getRedisCatchObj(loginType + account);
             if(ObjectUtil.isEmpty(yzmObj) && !contains){