Commit f7b5c412 by yuwei

2.0.0项目初始化

parent e5d49512
......@@ -59,6 +59,7 @@ public class ApiInterceptor implements HandlerInterceptor {
return false;
}
String deny = dataApiEntity.getDeny();
deny = StrUtil.isBlank(deny) ? "" : deny;
List<String> denyList = Arrays.asList(deny.split(","));
if (CollUtil.isNotEmpty(denyList)) {
for (String ip : denyList) {
......@@ -71,6 +72,7 @@ public class ApiInterceptor implements HandlerInterceptor {
}
String apiName = dataApiEntity.getApiName();
Integer rateLimit = dataApiEntity.getRateLimit();
rateLimit = rateLimit == null ? 1 : rateLimit;
// 限流
if (rateLimit == 1) {
Integer times = dataApiEntity.getTimes();
......
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