mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
build: 1.3.0-beta5
This commit is contained in:
@@ -128,11 +128,15 @@ export class NapCatOnebot11 {
|
|||||||
const groupListener = new GroupListener();
|
const groupListener = new GroupListener();
|
||||||
groupListener.onGroupNotifiesUpdated = async (doubt, notifies) => {
|
groupListener.onGroupNotifiesUpdated = async (doubt, notifies) => {
|
||||||
for (let i = 0; i < notifies.length; i++) {
|
for (let i = 0; i < notifies.length; i++) {
|
||||||
|
if (notifies[i].user1.uid && notifies[i].user1.uid.startsWith('u_')) {
|
||||||
let UserInfo_User1 = await NTQQUserApi.getUserDetailInfo(notifies[i].user1.uid);
|
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_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;
|
uid2UinMap[UserInfo_User2.uid] = UserInfo_User2.uin;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
//console.log('ob11 onGroupNotifiesUpdated', notifies[0]);
|
//console.log('ob11 onGroupNotifiesUpdated', notifies[0]);
|
||||||
this.postGroupNotifies(notifies).then().catch(e => logError('postGroupNotifies error: ', e));
|
this.postGroupNotifies(notifies).then().catch(e => logError('postGroupNotifies error: ', e));
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user