mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 00:53:33 +00:00
fix: 修复claude SSE捕获usage问题
This commit is contained in:
@@ -183,14 +183,14 @@ class CcrAccountService {
|
||||
schedulable: accountData.schedulable !== 'false', // 默认为true,只有明确设置为false才不可调度
|
||||
// 额度管理相关
|
||||
dailyQuota: parseFloat(accountData.dailyQuota || '0'),
|
||||
dailyUsage: parseFloat(accountData.dailyUsage || '0'),
|
||||
lastResetDate: accountData.lastResetDate || '',
|
||||
quotaResetTime: accountData.quotaResetTime || '00:00',
|
||||
quotaStoppedAt: accountData.quotaStoppedAt || null,
|
||||
expiresAt: accountData.expiresAt || null,
|
||||
subscriptionExpiresAt: accountData.subscriptionExpiresAt || null
|
||||
})
|
||||
}
|
||||
dailyUsage: parseFloat(accountData.dailyUsage || '0'),
|
||||
lastResetDate: accountData.lastResetDate || '',
|
||||
quotaResetTime: accountData.quotaResetTime || '00:00',
|
||||
quotaStoppedAt: accountData.quotaStoppedAt || null,
|
||||
expiresAt: accountData.expiresAt || null,
|
||||
subscriptionExpiresAt: accountData.subscriptionExpiresAt || null
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
return accounts
|
||||
|
||||
Reference in New Issue
Block a user