mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-16 13:01:14 +00:00
build: 1.3.0-beta5
This commit is contained in:
parent
98f39c6388
commit
1c6bc478b4
@ -128,10 +128,14 @@ export class NapCatOnebot11 {
|
||||
const groupListener = new GroupListener();
|
||||
groupListener.onGroupNotifiesUpdated = async (doubt, notifies) => {
|
||||
for (let i = 0; i < notifies.length; i++) {
|
||||
let UserInfo_User1 = await NTQQUserApi.getUserDetailInfo(notifies[i].user1.uid);
|
||||
let UserInfo_User2 = await NTQQUserApi.getUserDetailInfo(notifies[i].user2.uid);
|
||||
uid2UinMap[UserInfo_User1.uid] = UserInfo_User1.uin;
|
||||
uid2UinMap[UserInfo_User2.uid] = UserInfo_User2.uin;
|
||||
if (notifies[i].user1.uid && notifies[i].user1.uid.startsWith('u_')) {
|
||||
let UserInfo_User1 = await NTQQUserApi.getUserDetailInfo(notifies[i].user1.uid);
|
||||
uid2UinMap[UserInfo_User1.uid] = UserInfo_User1.uin;
|
||||
}
|
||||
if (notifies[i].user2.uid && notifies[i].user2.uid.startsWith('u_')) {
|
||||
let UserInfo_User2 = await NTQQUserApi.getUserDetailInfo(notifies[i].user2.uid);
|
||||
uid2UinMap[UserInfo_User2.uid] = UserInfo_User2.uin;
|
||||
}
|
||||
}
|
||||
//console.log('ob11 onGroupNotifiesUpdated', notifies[0]);
|
||||
this.postGroupNotifies(notifies).then().catch(e => logError('postGroupNotifies error: ', e));
|
||||
|
Loading…
Reference in New Issue
Block a user