From b3c1eff13795cd9d0b48f268168aa92ab0c7d915 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Wed, 7 Aug 2024 09:27:32 +0800 Subject: [PATCH] fix: script error --- script/BootWay05.bat | 2 +- src/onebot11/action/go-cqhttp/GetForwardMsg.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/script/BootWay05.bat b/script/BootWay05.bat index 95b4299e..06d2ee3b 100644 --- a/script/BootWay05.bat +++ b/script/BootWay05.bat @@ -86,5 +86,5 @@ where wt >nul 2>nul if %errorlevel% equ 0 ( wt "cmd" /c "%QQPath%" --enable-logging %* ) else ( - %QQPath%" --enable-logging %* + "%QQPath%" --enable-logging %* ) diff --git a/src/onebot11/action/go-cqhttp/GetForwardMsg.ts b/src/onebot11/action/go-cqhttp/GetForwardMsg.ts index 375aefd1..bbe10153 100644 --- a/src/onebot11/action/go-cqhttp/GetForwardMsg.ts +++ b/src/onebot11/action/go-cqhttp/GetForwardMsg.ts @@ -40,7 +40,7 @@ export class GoCQHTTPGetForwardMsgAction extends BaseAction { const msgList = data.msgList; const messages = await Promise.all(msgList.map(async msg => { const resMsg = await OB11Constructor.message(msg); - resMsg.message_id = await MessageUnique.createMsg({ guildId:'',chatType:msg.chatType,peerUid:msg.peerUid },msg.msgId)!; + resMsg.message_id = MessageUnique.createMsg({ guildId: '', chatType: msg.chatType, peerUid: msg.peerUid }, msg.msgId)!; return resMsg; })); messages.map(msg => {