style: fix
This commit is contained in:
1 parent
fc73295520
commit
9da714bf15
9 files changed
+40
-43
No files matched your search
@@ -14,7 +14,7 @@ const SchemaData = {
|
||||
properties: {
|
||||
user_id: { type: ['number', 'string'] },
|
||||
message_seq: { type: 'number' },
|
||||
count: { type: 'number' },
|
||||
count: { type: ['number', 'string'] },
|
||||
reverseOrder: { type: 'boolean' },
|
||||
},
|
||||
required: ['user_id'],
|
||||
@@ -32,7 +32,7 @@ export default class GetFriendMsgHistory extends BaseAction<Payload, Response> {
|
||||
const NTQQFriendApi = this.CoreContext.apis.FriendApi;
|
||||
//处理参数
|
||||
const uid = await NTQQUserApi.getUidByUinV2(payload.user_id.toString());
|
||||
const MsgCount = payload.count || 20;
|
||||
const MsgCount = +(payload.count ?? 20);
|
||||
const isReverseOrder = payload.reverseOrder || true;
|
||||
if (!uid) throw `记录${payload.user_id}不存在`;
|
||||
const friend = await NTQQFriendApi.isBuddy(uid);
|
||||
|
||||
@@ -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[];
|
||||
|
||||
@@ -62,8 +62,6 @@ export class SendGroupNotice extends BaseAction<Payload, null> {
|
||||
if (PublishGroupBulletinResult.result != 0) {
|
||||
throw `设置群公告失败,错误信息:${PublishGroupBulletinResult.errMsg}`;
|
||||
}
|
||||
// 下面实现扬了
|
||||
//await WebApi.setGroupNotice(payload.group_id, payload.content) ;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user