build: 1.3.0-beta5

This commit is contained in:
手瓜一十雪 2024-05-09 17:05:11 +08:00
parent 98f39c6388
commit 1c6bc478b4

View File

@ -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));