mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
build: 1.7.1 双消息队列
This commit is contained in:
parent
1f893b1393
commit
338dedd6e0
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user