mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
@@ -90,18 +90,8 @@ export class OneBotMsgApi {
|
||||
} else {
|
||||
let qq: string = 'all';
|
||||
if (element.atType !== NTMsgAtType.ATTYPEALL) {
|
||||
const { atNtUid /* content */ } = element;
|
||||
let atUinStr = element.atUid;
|
||||
if (!atUinStr || atUinStr === '0') {
|
||||
atUinStr = await this.core.apis.UserApi.getUinByUidV2(atNtUid);
|
||||
}
|
||||
let atUin = parseInt(atUinStr);
|
||||
if (atUin < 0) {
|
||||
atUin += 4294967296;
|
||||
}
|
||||
if (atUinStr) {
|
||||
qq = `${atUin}`;
|
||||
}
|
||||
const { atNtUid, atUid } = element;
|
||||
qq = !atUid || atUid === '0' ? await this.core.apis.UserApi.getUinByUidV2(atNtUid) : atUid;
|
||||
}
|
||||
return {
|
||||
type: OB11MessageDataType.at,
|
||||
|
Reference in New Issue
Block a user