feat: 2401 for 群精华设置

This commit is contained in:
手瓜一十雪 2024-07-20 10:44:57 +08:00
parent 733052720c
commit 628c9be0c8

View File

@ -18,6 +18,7 @@ import {
Group, Group,
GroupMember, GroupMember,
IMAGE_HTTP_HOST, IMAGE_HTTP_HOST_NT, mFaceCache, IMAGE_HTTP_HOST, IMAGE_HTTP_HOST_NT, mFaceCache,
Peer,
RawMessage, RawMessage,
SelfInfo, SelfInfo,
Sex, Sex,
@ -316,6 +317,7 @@ export class OB11Constructor {
if (msg.chatType !== ChatType.group) { if (msg.chatType !== ChatType.group) {
return; return;
} }
//log("group msg", msg);
if (msg.senderUin && msg.senderUin !== '0') { if (msg.senderUin && msg.senderUin !== '0') {
const member = await getGroupMember(msg.peerUid, msg.senderUin); const member = await getGroupMember(msg.peerUid, msg.senderUin);
if (member && member.cardName !== msg.sendMemberName) { if (member && member.cardName !== msg.sendMemberName) {
@ -482,6 +484,18 @@ export class OB11Constructor {
return new OB11GroupPokeEvent(parseInt(msg.peerUid), parseInt((await NTQQUserApi.getUinByUid(pokedetail[0].uid))!), parseInt((await NTQQUserApi.getUinByUid(pokedetail[1].uid))!)); return new OB11GroupPokeEvent(parseInt(msg.peerUid), parseInt((await NTQQUserApi.getUinByUid(pokedetail[0].uid))!), parseInt((await NTQQUserApi.getUinByUid(pokedetail[1].uid))!));
} }
} }
if (grayTipElement.jsonGrayTipElement.busiId == 2401) {
let searchParams = new URL(json[0].jp).searchParams;
let msgSeq = searchParams.get('msgSeq');
let Group = searchParams.get('groupCode');
let Businessid = searchParams.get('businessid');
let Peer: Peer = {
guildId: '',
chatType: ChatType.group,
peerUid: Group!
};
// 获取MsgSeq+Peer可获取具体消息
}
//下面得改 上面也是错的grayTipElement.subElementType == GrayTipElementSubType.MEMBER_NEW_TITLE //下面得改 上面也是错的grayTipElement.subElementType == GrayTipElementSubType.MEMBER_NEW_TITLE
const memberUin = json.items[1].param[0]; const memberUin = json.items[1].param[0];
const title = json.items[3].txt; const title = json.items[3].txt;