修复 GSUIDCore
This commit is contained in:
parent
72d196a7d3
commit
d4a2c945ee
|
@ -26,7 +26,7 @@ Bot.adapter.push(new class GSUIDCoreAdapter {
|
||||||
}
|
}
|
||||||
|
|
||||||
makeLog(msg) {
|
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) {
|
sendApi(ws, data) {
|
||||||
|
@ -45,10 +45,10 @@ Bot.adapter.push(new class GSUIDCoreAdapter {
|
||||||
|
|
||||||
switch (i.type) {
|
switch (i.type) {
|
||||||
case "text":
|
case "text":
|
||||||
i.data = i.text
|
i = { type: "text", data: i.text }
|
||||||
break
|
break
|
||||||
case "image":
|
case "image":
|
||||||
i.data = i.file
|
i = { type: "image", data: i.file }
|
||||||
break
|
break
|
||||||
case "record":
|
case "record":
|
||||||
i = { type: "file", data: i.file }
|
i = { type: "file", data: i.file }
|
||||||
|
@ -57,13 +57,13 @@ Bot.adapter.push(new class GSUIDCoreAdapter {
|
||||||
i = { type: "file", data: i.file }
|
i = { type: "file", data: i.file }
|
||||||
break
|
break
|
||||||
case "file":
|
case "file":
|
||||||
i.data = i.file
|
i = { type: "file", data: i.file }
|
||||||
break
|
break
|
||||||
case "at":
|
case "at":
|
||||||
i.data = i.qq
|
i = { type: "at", data: i.qq }
|
||||||
break
|
break
|
||||||
case "reply":
|
case "reply":
|
||||||
i.data = i.id
|
i = { type: "reply", data: i.id }
|
||||||
break
|
break
|
||||||
case "node": {
|
case "node": {
|
||||||
const array = []
|
const array = []
|
||||||
|
|
Loading…
Reference in New Issue