mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-16 04:45:46 +00:00
build: test
This commit is contained in:
parent
81a8115c56
commit
40ae0c1449
@ -496,10 +496,12 @@ export class OB11Constructor {
|
||||
const senderUin = emojiLikeData.gtip.qq.jp;
|
||||
const msgSeq = emojiLikeData.gtip.url.msgseq;
|
||||
const emojiId = emojiLikeData.gtip.face.id;
|
||||
|
||||
const replyMsgList = (await NTQQMsgApi.getMsgsBySeqAndCount({ chatType: ChatType.group, guildId: '', peerUid: msg.peerUid }, msgSeq, 1, true, true)).msgList;
|
||||
if (replyMsgList.length < 1) {
|
||||
return;
|
||||
}
|
||||
console.log('表情回应消息', msgSeq, " 结算ID", replyMsgList[0].msgId);
|
||||
const replyMsg = replyMsgList[0];
|
||||
return new OB11GroupMsgEmojiLikeEvent(parseInt(msg.peerUid), parseInt(senderUin), MessageUnique.getShortIdByMsgId(replyMsg?.msgId!)!, [{
|
||||
emoji_id: emojiId,
|
||||
|
@ -228,7 +228,6 @@ export class NapCatOnebot11 {
|
||||
// 临时会话更新 tempGroupCodeMap uid -> source/GroupCode
|
||||
};
|
||||
msgListener.onRecvMsg = async (msg) => {
|
||||
|
||||
//console.log('ob11 onRecvMsg', JSON.stringify(msg, null, 2));
|
||||
// logDebug('收到消息', msg);
|
||||
for (const m of msg) {
|
||||
@ -254,6 +253,7 @@ export class NapCatOnebot11 {
|
||||
// console.log(ret);
|
||||
new Promise((resolve) => {
|
||||
m.id = MessageUnique.createMsg({ chatType: m.chatType, peerUid: m.peerUid, guildId: '' }, m.msgId);
|
||||
console.log("消息接收 ", "MsgID", m.msgId, " ID", m.id, " Raw", m?.elements[0]?.textElement?.content);
|
||||
this.postReceiveMsg([m]).then().catch(logError);
|
||||
}).then();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user