mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-22 16:43:35 +00:00
fix: APIKey查询页面数据不正确的情况
This commit is contained in:
@@ -97,7 +97,6 @@ router.post('/api/user-stats', async (req, res) => {
|
||||
|
||||
try {
|
||||
const client = redis.getClientSafe();
|
||||
const currentMonth = `${new Date().getFullYear()}-${String(new Date().getMonth() + 1).padStart(2, '0')}`;
|
||||
|
||||
// 获取所有月度模型统计(与model-stats接口相同的逻辑)
|
||||
const allModelKeys = await client.keys(`usage:${fullKeyData.id}:model:monthly:*:*`);
|
||||
|
||||
Reference in New Issue
Block a user