refactor: uin - > uid

This commit is contained in:
手瓜一十雪
2024-06-04 23:06:53 +08:00
parent 9e72547112
commit 62605c843b
9 changed files with 49 additions and 50 deletions

View File

@@ -338,7 +338,7 @@ export class OB11Constructor {
deleteGroup(msg.peerUid);
NTQQGroupApi.quitGroup(msg.peerUid).then();
try {
const adminUin = (await getGroupMember(msg.peerUid, groupElement.adminUid))?.uin || (await NTQQUserApi.getUserDetailInfo(groupElement.adminUid))?.uin;
const adminUin = (await getGroupMember(msg.peerUid, groupElement.adminUid))?.uin || (await NTQQUserApi.getUidByUin(groupElement.adminUid));
if (adminUin) {
return new OB11GroupDecreaseEvent(parseInt(msg.peerUid), parseInt(selfInfo.uin), parseInt(adminUin), 'kick_me');
}