build: 1.7.1 双消息队列
This commit is contained in:
1 parent
3dd3ad94e1
commit
1c033f51e1
1 file changed
+7
-2
@@ -69,15 +69,20 @@ export class NTQQMsgApi {
|
|||||||
try {
|
try {
|
||||||
NTQQMsgApi.sendMsgV2({ chatType: 1, peerUid: selfInfo.uid }, [SendMsgElementConstructor.text('消息队列模式测试')], true, 10000).then().catch();
|
NTQQMsgApi.sendMsgV2({ chatType: 1, peerUid: selfInfo.uid }, [SendMsgElementConstructor.text('消息队列模式测试')], true, 10000).then().catch();
|
||||||
MsgSendMode = 2;
|
MsgSendMode = 2;
|
||||||
|
logNotice('[消息队列] 消息模式确认: MsgId异步队列');
|
||||||
|
return true;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logNotice('[消息队列] 设置模式: MsgId异步队列');
|
logNotice('[消息队列] 消息模式失败: MsgId异步队列');
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
NTQQMsgApi.sendMsgV1({ chatType: 1, peerUid: selfInfo.uid }, [SendMsgElementConstructor.text('消息队列模式测试')], true, 10000).then().catch();
|
NTQQMsgApi.sendMsgV1({ chatType: 1, peerUid: selfInfo.uid }, [SendMsgElementConstructor.text('消息队列模式测试')], true, 10000).then().catch();
|
||||||
MsgSendMode = 1;
|
MsgSendMode = 1;
|
||||||
|
logNotice('[消息队列] 消息模式确认: MsgSeq异步队列');
|
||||||
|
return true;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logNotice('[消息队列] 设置模式: MsgSeq异步队列');
|
logNotice('[消息队列] 消息模式失败: MsgSeq异步队列');
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
// static napCatCore: NapCatCore | null = null;
|
// static napCatCore: NapCatCore | null = null;
|
||||||
// enum BaseEmojiType {
|
// enum BaseEmojiType {
|
||||||
|
|||||||
Reference in new issue
Block a user