fix: 修复console脏数据问题

This commit is contained in:
shaw
2025-10-16 15:29:45 +08:00
parent 86cecaa356
commit 83f7353284
2 changed files with 15 additions and 5 deletions

View File

@@ -149,6 +149,12 @@ class ClaudeConsoleAccountService {
for (const key of keys) {
const accountData = await client.hgetall(key)
if (accountData && Object.keys(accountData).length > 0) {
if (!accountData.id) {
logger.warn(`⚠️ 检测到缺少ID的Claude Console账户数据执行清理: ${key}`)
await client.del(key)
continue
}
// 获取限流状态信息
const rateLimitInfo = this._getRateLimitInfo(accountData)