fix: Claude Console 配额超限状态优化,支持主动自动恢复

- 新增 rateLimitCleanupService 配额超限恢复检查(每5分钟)
- 调度器预检查配额超限账户,到达重置时间自动恢复
- 前端显示"余额不足"替代默认的"手动停止调度"

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
jett.gao
2026-01-23 18:19:34 +08:00
parent 4ed5cc631a
commit d812af9159
3 changed files with 85 additions and 2 deletions

View File

@@ -4119,6 +4119,10 @@ const getSchedulableReason = (account) => {
if (account.status === 'unauthorized') {
return 'API Key无效或已过期401错误'
}
// 检查配额超限状态
if (account.status === 'quota_exceeded') {
return '余额不足'
}
if (account.overloadStatus === 'overloaded') {
return '服务过载529错误'
}