From 338dedd6e09959c01b69e40c18987ba5361b63f3 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, 31 Jul 2024 10:33:38 +0800 Subject: [PATCH] =?UTF-8?q?build:=201.7.1=20=E5=8F=8C=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E9=98=9F=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/src/apis/msg.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/core/src/apis/msg.ts b/src/core/src/apis/msg.ts index d576d049..3db63d9f 100644 --- a/src/core/src/apis/msg.ts +++ b/src/core/src/apis/msg.ts @@ -69,15 +69,20 @@ export class NTQQMsgApi { try { NTQQMsgApi.sendMsgV2({ chatType: 1, peerUid: selfInfo.uid }, [SendMsgElementConstructor.text('消息队列模式测试')], true, 10000).then().catch(); MsgSendMode = 2; + logNotice('[消息队列] 消息模式确认: MsgId异步队列'); + return true; } catch (error) { - logNotice('[消息队列] 设置模式: MsgId异步队列'); + logNotice('[消息队列] 消息模式失败: MsgId异步队列'); } try { NTQQMsgApi.sendMsgV1({ chatType: 1, peerUid: selfInfo.uid }, [SendMsgElementConstructor.text('消息队列模式测试')], true, 10000).then().catch(); MsgSendMode = 1; + logNotice('[消息队列] 消息模式确认: MsgSeq异步队列'); + return true; } catch (error) { - logNotice('[消息队列] 设置模式: MsgSeq异步队列'); + logNotice('[消息队列] 消息模式失败: MsgSeq异步队列'); } + return false; } // static napCatCore: NapCatCore | null = null; // enum BaseEmojiType {