fix: 补齐旧账号的 OpenAI 限流补偿

This commit is contained in:
神乐
2026-03-08 00:14:15 +08:00
parent 45d57018eb
commit 1307d604e7
4 changed files with 141 additions and 2 deletions

View File

@@ -1349,6 +1349,10 @@ func (s *adminServiceImpl) ListAccounts(ctx context.Context, page, pageSize int,
if err != nil {
return nil, 0, err
}
now := time.Now()
for i := range accounts {
syncOpenAICodexRateLimitFromExtra(ctx, s.accountRepo, &accounts[i], now)
}
return accounts, result.Total, nil
}