|
|
@@ -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("检测到您操作异常,请联系客服");
|