소스 검색

fix 人机校验

chenbiao 2 년 전
부모
커밋
f2a8a4d4a1
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      netflix-service/src/main/java/com/cyksj/service/user/impl/BadIntentionOpServiceImpl.java

+ 1 - 0
netflix-service/src/main/java/com/cyksj/service/user/impl/BadIntentionOpServiceImpl.java

@@ -74,6 +74,7 @@ public class BadIntentionOpServiceImpl implements BadIntentionOpService {
     @Override
     public void isBadOpLoginPhone(HttpServletRequest request, String phone) {
         String ip = StringUtil.getInternalAddressByIP(ServletUtil.getClientIP(request));
+        log.info("--------------校验ip 是否黑名单------- ip:{}", ip);
         String blackIpKey = RedisService.key.BALCK_USER_IP_KEY + ip;
         if (redisService.hasKey(blackIpKey)) {
             throw BusinessRuntimeException.getInstance("检测到您操作异常,请联系客服");