style: fix

This commit is contained in:
手瓜一十雪
2024-08-26 00:17:42 +08:00
parent fc73295520
commit 9da714bf15
9 changed files with 40 additions and 43 deletions

View File

@@ -14,7 +14,7 @@ const SchemaData = {
properties: {
group_id: { type: ['number', 'string'] },
message_seq: { type: 'number' },
count: { type: 'number' },
count: { type: ['number', 'string'] },
reverseOrder: { type: 'boolean' },
},
required: ['group_id'],
@@ -30,7 +30,7 @@ export default class GoCQHTTPGetGroupMsgHistory extends BaseAction<Payload, Resp
const NTQQMsgApi = this.CoreContext.apis.MsgApi;
//处理参数
const isReverseOrder = payload.reverseOrder || true;
const MsgCount = payload.count || 20;
const MsgCount = +(payload.count ?? 20);
const peer: Peer = { chatType: ChatType.KCHATTYPEGROUP, peerUid: payload.group_id.toString() };
//拉取消息
let msgList: RawMessage[];