From 09c9b88c279e50f5774c6d9ceebb8f8047ff52b1 Mon Sep 17 00:00:00 2001 From: shaw Date: Fri, 26 Dec 2025 14:39:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=9D=83?= =?UTF-8?q?=E8=AE=BF=E9=97=AE=20Claude=20=E6=9C=8D=E5=8A=A1=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/api.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/routes/api.js b/src/routes/api.js index 8047a51d..5c3f8e24 100644 --- a/src/routes/api.js +++ b/src/routes/api.js @@ -122,16 +122,6 @@ async function handleMessagesRequest(req, res) { try { const startTime = Date.now() - // Claude 服务权限校验,阻止未授权的 Key - if (!apiKeyService.hasPermission(req.apiKey.permissions, 'claude')) { - return res.status(403).json({ - error: { - type: 'permission_error', - message: '此 API Key 无权访问 Claude 服务' - } - }) - } - // 🔄 并发满额重试标志:最多重试一次(使用req对象存储状态) if (req._concurrencyRetryAttempted === undefined) { req._concurrencyRetryAttempted = false