Commit 54f1c197 authored by 董建华's avatar 董建华

修复手机号白名单不起效的问题

parent e699da13
...@@ -175,8 +175,8 @@ public class LoginInterceptorAspect { ...@@ -175,8 +175,8 @@ public class LoginInterceptorAspect {
Long threshold = entry.getValue(); Long threshold = entry.getValue();
if (threshold.compareTo(sum) < 0) { if (threshold.compareTo(sum) <= 0) {
if (!isWhite(deviceId, KeyType.PHONE)) { if (!isWhite(phone, KeyType.PHONE)) {
log.warn("此账户登录命中拒绝策略并且没有白名单phone:{},device", phone); log.warn("此账户登录命中拒绝策略并且没有白名单phone:{},device", phone);
return LoginRefuseResult.builder() return LoginRefuseResult.builder()
.isPass(Boolean.FALSE) .isPass(Boolean.FALSE)
......
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