mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 09:38:02 +00:00
fix: treat OpenAI account isActive as string
This commit is contained in:
@@ -34,7 +34,11 @@ class UnifiedOpenAIScheduler {
|
|||||||
|
|
||||||
// 普通专属账户
|
// 普通专属账户
|
||||||
const boundAccount = await openaiAccountService.getAccount(apiKeyData.openaiAccountId)
|
const boundAccount = await openaiAccountService.getAccount(apiKeyData.openaiAccountId)
|
||||||
if (boundAccount && boundAccount.isActive && boundAccount.status !== 'error') {
|
if (
|
||||||
|
boundAccount &&
|
||||||
|
(boundAccount.isActive === true || boundAccount.isActive === 'true') &&
|
||||||
|
boundAccount.status !== 'error'
|
||||||
|
) {
|
||||||
// 检查是否被限流
|
// 检查是否被限流
|
||||||
const isRateLimited = await this.isAccountRateLimited(boundAccount.id)
|
const isRateLimited = await this.isAccountRateLimited(boundAccount.id)
|
||||||
if (isRateLimited) {
|
if (isRateLimited) {
|
||||||
|
|||||||
Reference in New Issue
Block a user