mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 12:56:28 +08:00
2.0.0
This commit is contained in:
@@ -26,7 +26,7 @@ SOP封装了开放平台大部分功能包括:签名验证、统一异常处
|
||||
|
||||

|
||||
|
||||
> 开发者只需写微服务部分的业务代码
|
||||
> 如上图所示,整个系统运行后,开发者只需关注微服务中的业务代码,接口变更后重新部署微服务应用即可
|
||||
|
||||
## 已完成列表
|
||||
|
||||
|
@@ -59,7 +59,7 @@ public class PreLimitFilter extends BaseZuulFilter {
|
||||
if (configLimitDto.getLimitStatus() == ConfigLimitDto.LIMIT_STATUS_CLOSE) {
|
||||
return null;
|
||||
}
|
||||
byte limitType = configLimitDto.getLimitType().byteValue();
|
||||
byte limitType = configLimitDto.getLimitType();
|
||||
// 如果是漏桶策略
|
||||
if (limitType == LimitType.LEAKY_BUCKET.getType()) {
|
||||
boolean acquire = limitManager.acquire(configLimitDto);
|
||||
@@ -109,7 +109,7 @@ public class PreLimitFilter extends BaseZuulFilter {
|
||||
if (limitConfigList.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
Collections.sort(limitConfigList, Comparator.comparing(ConfigLimitDto::getOrderIndex));
|
||||
limitConfigList.sort(Comparator.comparing(ConfigLimitDto::getOrderIndex));
|
||||
return limitConfigList.get(0);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user