Commit 367c3840 authored by 董建华's avatar 董建华

判断一桩情况

parent e0a099f6
......@@ -148,7 +148,7 @@ public class LoginInterceptorAspect {
.isPass(Boolean.TRUE)
.build();
}
log.warn("此设备登录命中拒绝策略deviceId:{}超过{}个拒绝登录", deviceId,deviceNum);
log.warn("此设备登录命中拒绝策略deviceId:{}超过{}个拒绝登录", deviceId, deviceNum);
return LoginRefuseResult.builder()
.isPass(Boolean.FALSE)
.rule(1)
......@@ -245,6 +245,8 @@ public class LoginInterceptorAspect {
info.setLoginFailMsg(((JsonResult) loginResult)
.getMsg());
}
} else {
log.warn("意想不到的情况按理讲不存在loginResult:{}", loginResult);
}
}
loginInfoRepository.save(info);
......
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