perf: API优化

优化get_group_member_info在查询非群员时的效率
This commit is contained in:
Alen 2024-08-18 14:33:35 +08:00
parent 7a98025df8
commit 1cc9d501ab

View File

@ -232,6 +232,11 @@ export class LegacyNTEventWrapper {
this.createListenerFunction(ListenerMainName); this.createListenerFunction(ListenerMainName);
const EventFunc = this.createEventFunction<EventType>(EventName); const EventFunc = this.createEventFunction<EventType>(EventName);
retEvent = await EventFunc!(...(args as any[])); retEvent = await EventFunc!(...(args as any[]));
// 120271006: TaskGetGroupMemberList 0x899_EMPTY_RSP_BODY 查找群内不存在的成员返回
if (typeof retEvent === 'object' && retEvent?.result !== 0) {
clearTimeout(Timeouter);
databack();
};
}, },
); );
} }