|
|
@@ -468,6 +468,9 @@ public class ClaudeCodeController {
|
|
|
@GetMapping("/timeRate/configs")
|
|
|
public Result<TimeRateConfigsResp> getAllConfigs() {
|
|
|
TimeRateConfigsResp resp = claudeCodeService.getAllConfigs();
|
|
|
+ if (resp != null && CollUtil.isNotEmpty(resp.getConfigs())) {
|
|
|
+ resp.setConfigs(resp.getConfigs().stream().filter(time -> time.getIsActive()).collect(Collectors.toList()));
|
|
|
+ }
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(resp);
|
|
|
}
|
|
|
|