fix
This commit is contained in:
1 parent
756dea71fc
commit
f425c9478e
6 files changed
+7
-8
No files matched your search
@@ -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('消息不存在');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user