From d4a2c945ee17cb0805bf806b789cb71f37817b86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=8C=8C?= Date: Tue, 25 Jul 2023 15:34:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20GSUIDCore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/adapter/GSUIDCore.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/adapter/GSUIDCore.js b/plugins/adapter/GSUIDCore.js index ef213f6..fe3c4f5 100644 --- a/plugins/adapter/GSUIDCore.js +++ b/plugins/adapter/GSUIDCore.js @@ -26,7 +26,7 @@ Bot.adapter.push(new class GSUIDCoreAdapter { } makeLog(msg) { - return this.toStr(msg).replace(/("type":"(image|file)","data":").*?(")/g, "$1...$3") + return this.toStr(msg).replace(/base64:\/\/.*?"/g, "base64://...\"") } sendApi(ws, data) { @@ -45,10 +45,10 @@ Bot.adapter.push(new class GSUIDCoreAdapter { switch (i.type) { case "text": - i.data = i.text + i = { type: "text", data: i.text } break case "image": - i.data = i.file + i = { type: "image", data: i.file } break case "record": i = { type: "file", data: i.file } @@ -57,13 +57,13 @@ Bot.adapter.push(new class GSUIDCoreAdapter { i = { type: "file", data: i.file } break case "file": - i.data = i.file + i = { type: "file", data: i.file } break case "at": - i.data = i.qq + i = { type: "at", data: i.qq } break case "reply": - i.data = i.id + i = { type: "reply", data: i.id } break case "node": { const array = []