mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-12-01 09:15:41 +08:00
fix(wecom): 修正消息去重、成员读取失败判定与群名解析顺序
合并键改为 create_time + local_id + server_id 完全一致,避免 server_id 复用把不同消息折叠 企业群成员读取失败返回 null,与合法空列表区分,同步与异步通道口径一致 新增同步群名解析入口,使冷启动会话列表、群列表与群日报显示同一群名 批量成员读取按普通群与企业群分流,避免混批导致整批 native 查询失败 补充真实数据脱敏只读验收报告与企业成员批量用例
This commit is contained in:
1 parent
8f37ded71e
commit
9b9a1722cd
9 files changed
+500
-47
No files matched your search
@@ -49,6 +49,20 @@ describe(`enterprise message de-duplication`, () => {
|
||||
expect(mergeRows([a], [b])).toHaveLength(2)
|
||||
})
|
||||
|
||||
it(`does not merge different messages when a server id is reused across time`, () => {
|
||||
const first = msg(`srv-reused`, `fixture earlier`, 3000, { mesLocalID: `301` })
|
||||
const second = msg(`srv-reused`, `fixture later`, 3600, { mesLocalID: `302` })
|
||||
const merged = mergeRows([first, second], [])
|
||||
expect(merged).toHaveLength(2)
|
||||
expect(merged.map((item) => item.msgContent)).toEqual([`fixture earlier`, `fixture later`])
|
||||
})
|
||||
|
||||
it(`does not merge different messages when a server id is reused in the same second`, () => {
|
||||
const first = msg(`srv-reused`, `fixture left`, 4000, { mesLocalID: `401` })
|
||||
const second = msg(`srv-reused`, `fixture right`, 4000, { mesLocalID: `402` })
|
||||
expect(mergeRows([first, second], [])).toHaveLength(2)
|
||||
})
|
||||
|
||||
it(`resolves a unique cross-shard message by time`, () => {
|
||||
const hits = [
|
||||
{ createTime: 1000, localId: 1 },
|
||||
|
||||
Reference in new issue
Block a user