From 1b5a8c90f40959eaed747737423ca9dd3740de82 Mon Sep 17 00:00:00 2001 From: Vinlic Date: Thu, 1 Aug 2024 11:53:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=9F=E8=BF=9B=E5=8F=8D=E5=8F=8D=E9=80=86?= =?UTF-8?q?=E5=90=91=E7=AD=96=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/controllers/chat.ts | 122 +++++++++++++++++++----------------- 1 file changed, 65 insertions(+), 57 deletions(-) diff --git a/src/api/controllers/chat.ts b/src/api/controllers/chat.ts index d783fad..703cf60 100644 --- a/src/api/controllers/chat.ts +++ b/src/api/controllers/chat.ts @@ -62,19 +62,27 @@ async function acquireMetaToken(token: string, swapToken = false) { throw new APIException(EX.API_REQUEST_FAILED, "meta-token not found"); let metaToken = match[1]; if (swapToken) { - // regex = /