release: 1.6.7

This commit is contained in:
手瓜一十雪 2024-07-20 19:52:39 +08:00
parent 5af866cdca
commit 9aa4cd319c
3 changed files with 4 additions and 40 deletions

View File

@ -10,7 +10,7 @@ QQ Version: Windows 9.9.12-26000 / Linux 3.2.9-26000
## 修复与优化 ## 修复与优化
1. 尝试 修复 卡顿问题 1. 尝试 修复 卡顿问题
2. 尝试 修复 精华消息被设置/一起听 接时的报错 2. 尝试 修复 精华消息被设置/一起听 接时的报错
3. 优化 Uin与Uid 转换速度 3. 优化 Uin与Uid 转换速度
4. 修复CQCode可能存在的解码问题 4. 修复CQCode可能存在的解码问题
@ -19,8 +19,7 @@ QQ Version: Windows 9.9.12-26000 / Linux 3.2.9-26000
2. 精华消息设置通知事件 2. 精华消息设置通知事件
3. 新增设置/删除群精华API 3. 新增设置/删除群精华API
4. 新增最近联系列表APIRAW 不稳定) 4. 新增最近联系列表APIRAW 不稳定)
5. 上报群精华设置事件 5. 新增设置所有消息已读API非标准
6. 新增设置所有消息已读API非标准 6. 新增获取点赞信息获取API非标准
7. 新增获取点赞信息获取API非标准
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api) 新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)

View File

@ -314,7 +314,6 @@ export class OB11Constructor {
} }
} }
static async GroupEvent(msg: RawMessage): Promise<OB11GroupNoticeEvent | undefined> { static async GroupEvent(msg: RawMessage): Promise<OB11GroupNoticeEvent | undefined> {
//log("group msg", msg);
if (msg.chatType !== ChatType.group) { if (msg.chatType !== ChatType.group) {
return; return;
} }
@ -400,14 +399,6 @@ export class OB11Constructor {
} }
if (grayTipElement) { if (grayTipElement) {
if (grayTipElement.xmlElement?.templId === '10382') { if (grayTipElement.xmlElement?.templId === '10382') {
// 表情回应消息
// "content":
// "<gtip align=\"center\">
// <qq uin=\"u_snYxnEfja-Po_\" col=\"3\" jp=\"3794\"/>
// <nor txt=\"回应了你的\"/>
// <url jp= \"\" msgseq=\"74711\" col=\"3\" txt=\"消息:\"/>
// <face type=\"1\" id=\"76\"> </face>
// </gtip>",
const emojiLikeData = new fastXmlParser.XMLParser({ const emojiLikeData = new fastXmlParser.XMLParser({
ignoreAttributes: false, ignoreAttributes: false,
attributeNamePrefix: '' attributeNamePrefix: ''
@ -451,30 +442,6 @@ export class OB11Constructor {
//代码歧义 GrayTipElementSubType.MEMBER_NEW_TITLE //代码歧义 GrayTipElementSubType.MEMBER_NEW_TITLE
else if (grayTipElement.subElementType == GrayTipElementSubType.MEMBER_NEW_TITLE) { else if (grayTipElement.subElementType == GrayTipElementSubType.MEMBER_NEW_TITLE) {
const json = JSON.parse(grayTipElement.jsonGrayTipElement.jsonStr); 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) { if (grayTipElement.jsonGrayTipElement.busiId == 1061) {
//判断业务类型 //判断业务类型
//Poke事件 //Poke事件
@ -486,7 +453,7 @@ export class OB11Constructor {
} }
} }
if (grayTipElement.jsonGrayTipElement.busiId == 2401) { 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 msgSeq = searchParams.get('msgSeq')!;
let Group = searchParams.get('groupCode'); let Group = searchParams.get('groupCode');
let Businessid = searchParams.get('businessid'); let Businessid = searchParams.get('businessid');
@ -495,7 +462,6 @@ export class OB11Constructor {
chatType: ChatType.group, chatType: ChatType.group,
peerUid: Group! peerUid: Group!
}; };
let msgData = await NTQQMsgApi.getMsgsBySeqAndCount(Peer, msgSeq.toString(), 1, true, true); 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)); return new OB11GroupEssenceEvent(parseInt(msg.peerUid), await dbUtil.addMsg(msgData.msgList[0]), parseInt(msgData.msgList[0].senderUin));
// 获取MsgSeq+Peer可获取具体消息 // 获取MsgSeq+Peer可获取具体消息

View File

@ -331,7 +331,6 @@ export class NapCatOnebot11 {
postOB11Event(msg); postOB11Event(msg);
// log("post msg", msg) // log("post msg", msg)
}).catch(e => logError('constructMessage error: ', e)); }).catch(e => logError('constructMessage error: ', e));
OB11Constructor.GroupEvent(message).then(groupEvent => { OB11Constructor.GroupEvent(message).then(groupEvent => {
if (groupEvent) { if (groupEvent) {
// log("post group event", groupEvent); // log("post group event", groupEvent);