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

No files matched your search

+1 -1
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('消息不存在');
}