fix: uid->uin 临时修复方案
uid uin转换需要优化
This commit is contained in:
1 parent
bf10ce9f1e
commit
861f105bea
1 file changed
+4
-2
@@ -460,11 +460,13 @@ export class NapCatOnebot11 {
|
||||
groupRequestEvent.group_id = parseInt(notify.group.groupCode);
|
||||
let requestQQ = '';
|
||||
try {
|
||||
// requestQQ = (await NTQQUserApi.getUserDetailInfo(notify.user1.uid)).uin;
|
||||
// uid-->uin
|
||||
requestQQ = (await NTQQUserApi.getUinByUid(notify.user1.uid))!;
|
||||
if (isNaN(parseInt(requestQQ))) {
|
||||
requestQQ = (await NTQQUserApi.getUserDetailInfo(notify.user1.uid)).uin;
|
||||
}
|
||||
} catch (e) {
|
||||
logError('获取加群人QQ号失败', e);
|
||||
logError('获取加群人QQ号失败 Uid:', notify.user1.uid, e);
|
||||
}
|
||||
groupRequestEvent.user_id = parseInt(requestQQ) || 0;
|
||||
groupRequestEvent.sub_type = 'add';
|
||||
|
||||
Reference in new issue
Block a user