This commit is contained in:
手瓜一十雪
2024-11-14 12:48:19 +08:00
parent 756dea71fc
commit f425c9478e
6 changed files with 7 additions and 8 deletions

View File

@@ -28,7 +28,7 @@ class GetMsg extends BaseAction<Payload, OB11Message> {
throw Error('参数message_id不能为空');
}
const MsgShortId = MessageUnique.getShortIdByMsgId(payload.message_id.toString());
const msgIdWithPeer = MessageUnique.getMsgIdAndPeerByShortId(MsgShortId || parseInt(payload.message_id.toString()));
const msgIdWithPeer = MessageUnique.getMsgIdAndPeerByShortId(MsgShortId ?? +payload.message_id);
if (!msgIdWithPeer) {
throw new Error('消息不存在');
}