|
|
@@ -49,7 +49,8 @@ public class HttpInterceptor implements HandlerInterceptor {
|
|
|
String serviceName = StrUtil.replace(applicationName, "-service", "");
|
|
|
String str = redisService.getStr(StrUtil.format("blackIps:{}", serviceName));
|
|
|
if (StrUtil.isNotEmpty(str) && Arrays.asList(str.split(",")).contains(clientIp)) {
|
|
|
- throw new CommonException(StrUtil.format("{} not allow request:{}", clientIp, requestURI));
|
|
|
+ log.warn(StrUtil.format("[{}] not allow request:{}", clientIp, requestURI));
|
|
|
+ throw new CommonException("not allow request");
|
|
|
}
|
|
|
}
|
|
|
|