This commit is contained in:
SunSeekerX
2026-01-22 14:56:09 +08:00
parent 73a241df1a
commit cb935ea0f0
8 changed files with 399 additions and 139 deletions

View File

@@ -214,12 +214,12 @@ class ClaudeCodeHeadersService {
}
/**
* 获取所有账号的 headers 信息
* 获取所有账号的 headers 信息(使用 scanKeys 替代 keys
*/
async getAllAccountHeaders() {
try {
const pattern = 'claude_code_headers:*'
const keys = await redis.getClient().keys(pattern)
const keys = await redis.scanKeys(pattern)
const results = {}
for (const key of keys) {