fix: 修复强制会话绑定首次会话的bug

This commit is contained in:
shaw
2025-12-08 21:04:53 +08:00
parent 698f3d7daa
commit aa71c58400
4 changed files with 118 additions and 28 deletions

View File

@@ -283,12 +283,13 @@ class ClaudeRelayConfigService {
const account = await accountService.getAccount(accountId)
if (!account || !account.success || !account.data) {
// getAccount() 直接返回账户数据对象或 null不是 { success, data } 格式
if (!account) {
logger.warn(`Session binding account not found: ${accountId} (${accountType})`)
return false
}
const accountData = account.data
const accountData = account
// 检查账户是否激活
if (accountData.isActive === false || accountData.isActive === 'false') {