fix: re at

6b041becb0
This commit is contained in:
手瓜一十雪
2025-01-24 18:55:10 +08:00
parent 1a6194b38c
commit 1d0d25eea2

View File

@@ -90,18 +90,8 @@ export class OneBotMsgApi {
} else { } else {
let qq: string = 'all'; let qq: string = 'all';
if (element.atType !== NTMsgAtType.ATTYPEALL) { if (element.atType !== NTMsgAtType.ATTYPEALL) {
const { atNtUid /* content */ } = element; const { atNtUid, atUid } = element;
let atUinStr = element.atUid; qq = !atUid || atUid === '0' ? await this.core.apis.UserApi.getUinByUidV2(atNtUid) : 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}`;
}
} }
return { return {
type: OB11MessageDataType.at, type: OB11MessageDataType.at,