mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 00:53:33 +00:00
fix: 修复统一客户端标识的布尔值判断
将 useUnifiedClientId 的判断从直接布尔值比较改为字符串 'true' 比较,修复配置值为字符串时的判断问题。 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -429,7 +429,7 @@ class ClaudeRelayService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 处理统一的客户端标识
|
// 处理统一的客户端标识
|
||||||
if (account && account.useUnifiedClientId && account.unifiedClientId) {
|
if (account && account.useUnifiedClientId === 'true' && account.unifiedClientId) {
|
||||||
this._replaceClientId(processedBody, account.unifiedClientId)
|
this._replaceClientId(processedBody, account.unifiedClientId)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user