Skip to content

Commit 96c8b30

Browse files
committed
Merge branch 'dev'
2 parents 23b04a3 + 1dfb37c commit 96c8b30

9 files changed

Lines changed: 1227 additions & 37 deletions

File tree

doc/更新日志.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1+
V5.5.2
2+
更新时间 2025-7-23 14:04:33
3+
4+
* 修复 `get_stranger_info` API 无法获取部分用户等级的问题
5+
6+
=================
17
V5.5.1
28
更新时间 2025-7-21 21:19:47
39

410
* 修复 `get_group_member_info` API 偶现报错的问题
511

12+
=================
613
V5.5.0
714
更新时间 2025-7-20 17:39:39
815

package-dist.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"name":"llonebot","version":"5.5.1","type":"module","description":"","main":"llonebot.js","author":"linyuchen"}
1+
{"name":"llonebot","version":"5.5.2","type":"module","description":"","main":"llonebot.js","author":"linyuchen"}

src/ntqqapi/native/pmhq/index.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,23 @@ export class PMHQ {
369369
const res = await this.httpSendPB('PicSearchSvr.PullPics', data)
370370
return Action.PullPicsResp.decode(Buffer.from(res.pb, 'hex'))
371371
}
372+
373+
async fetchUserLevel(uin: number) {
374+
const body = Oidb.FetchUserInfo.encode({
375+
uin,
376+
keys: [{ key: 105 }],
377+
}).finish()
378+
const data = Oidb.Base.encode({
379+
command: 0xfe1,
380+
subCommand: 2,
381+
body,
382+
isReserved: 1,
383+
}).finish()
384+
const res = await this.httpSendPB('OidbSvcTrpcTcp.0xfe1_2', data)
385+
const oidbRespBody = Oidb.Base.decode(Buffer.from(res.pb, 'hex')).body
386+
const info = Oidb.FetchUserInfoResponse.decode(oidbRespBody)
387+
return info.body!.properties!.numberProperties![0].value!
388+
}
372389
}
373390

374391
export const pmhq = new PMHQ()

0 commit comments

Comments
 (0)