diff --git a/docs/changelogs/CHANGELOG.v1.6.7.md b/docs/changelogs/CHANGELOG.v1.6.7.md index 02d8d4f6..a03c4748 100644 --- a/docs/changelogs/CHANGELOG.v1.6.7.md +++ b/docs/changelogs/CHANGELOG.v1.6.7.md @@ -10,7 +10,7 @@ QQ Version: Windows 9.9.12-26000 / Linux 3.2.9-26000 ## 修复与优化 1. 尝试 修复 卡顿问题 -2. 尝试 修复 精华消息被设置/一起听 接受时的报错 +2. 尝试 修复 精华消息被设置/一起听 接收时的报错 3. 优化 Uin与Uid 转换速度 4. 修复CQCode可能存在的解码问题 @@ -19,8 +19,7 @@ QQ Version: Windows 9.9.12-26000 / Linux 3.2.9-26000 2. 精华消息设置通知事件 3. 新增设置/删除群精华API 4. 新增最近联系列表API(RAW 不稳定) -5. 上报群精华设置事件 -6. 新增设置所有消息已读API(非标准) -7. 新增获取点赞信息获取API(非标准) +5. 新增设置所有消息已读API(非标准) +6. 新增获取点赞信息获取API(非标准) 新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api) diff --git a/src/onebot11/constructor.ts b/src/onebot11/constructor.ts index 166e8e4e..e3e60289 100644 --- a/src/onebot11/constructor.ts +++ b/src/onebot11/constructor.ts @@ -314,7 +314,6 @@ export class OB11Constructor { } } static async GroupEvent(msg: RawMessage): Promise { - //log("group msg", msg); if (msg.chatType !== ChatType.group) { return; } @@ -400,14 +399,6 @@ export class OB11Constructor { } if (grayTipElement) { if (grayTipElement.xmlElement?.templId === '10382') { - // 表情回应消息 - // "content": - // " - // - // - // - // - // ", const emojiLikeData = new fastXmlParser.XMLParser({ ignoreAttributes: false, attributeNamePrefix: '' @@ -451,30 +442,6 @@ export class OB11Constructor { //代码歧义 GrayTipElementSubType.MEMBER_NEW_TITLE else if (grayTipElement.subElementType == GrayTipElementSubType.MEMBER_NEW_TITLE) { const json = JSON.parse(grayTipElement.jsonGrayTipElement.jsonStr); - /* - { - align: 'center', - items: [ - { txt: '恭喜', type: 'nor' }, - { - col: '3', - jp: '5', - param: ["QQ号"], - txt: '林雨辰', - type: 'url' - }, - { txt: '获得群主授予的', type: 'nor' }, - { - col: '3', - jp: '', - txt: '好好好', - type: 'url' - }, - { txt: '头衔', type: 'nor' } - ] - } - - * */ if (grayTipElement.jsonGrayTipElement.busiId == 1061) { //判断业务类型 //Poke事件 @@ -486,7 +453,7 @@ export class OB11Constructor { } } if (grayTipElement.jsonGrayTipElement.busiId == 2401) { - let searchParams = new URL(json[0].jp).searchParams; + let searchParams = new URL(json.items[0].jp).searchParams; let msgSeq = searchParams.get('msgSeq')!; let Group = searchParams.get('groupCode'); let Businessid = searchParams.get('businessid'); @@ -495,7 +462,6 @@ export class OB11Constructor { chatType: ChatType.group, peerUid: Group! }; - let msgData = await NTQQMsgApi.getMsgsBySeqAndCount(Peer, msgSeq.toString(), 1, true, true); return new OB11GroupEssenceEvent(parseInt(msg.peerUid), await dbUtil.addMsg(msgData.msgList[0]), parseInt(msgData.msgList[0].senderUin)); // 获取MsgSeq+Peer可获取具体消息 diff --git a/src/onebot11/main.ts b/src/onebot11/main.ts index cdc9b59f..51bcc381 100644 --- a/src/onebot11/main.ts +++ b/src/onebot11/main.ts @@ -331,7 +331,6 @@ export class NapCatOnebot11 { postOB11Event(msg); // log("post msg", msg) }).catch(e => logError('constructMessage error: ', e)); - OB11Constructor.GroupEvent(message).then(groupEvent => { if (groupEvent) { // log("post group event", groupEvent);