修复 GSUIDCore

This commit is contained in:
🌌 2023-07-25 15:34:18 +08:00
parent 72d196a7d3
commit d4a2c945ee
1 changed files with 6 additions and 6 deletions

View File

@ -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 = []