mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
fix
This commit is contained in:
parent
c43ee3c1d6
commit
92d1309103
2
src/core
2
src/core
@ -1 +1 @@
|
||||
Subproject commit 2d930457e203b2f4deee12c7aad8ca864766a941
|
||||
Subproject commit e5a4b1b941d36b34bb91a622de8ea5a0f98b6d99
|
@ -4,17 +4,21 @@ import { OB11Constructor } from '../../constructor';
|
||||
import BaseAction from '../BaseAction';
|
||||
import { ActionName } from '../types';
|
||||
import { NTQQMsgApi } from '@/core/apis/msg';
|
||||
import { WebApi } from '@/core/apis/webapi';
|
||||
import { GroupEssenceMsgRet, WebApi } from '@/core/apis/webapi';
|
||||
|
||||
interface PayloadType {
|
||||
group_id: number;
|
||||
pages: number;
|
||||
}
|
||||
|
||||
export class GetGroupEssence extends BaseAction<PayloadType, any> {
|
||||
export class GetGroupEssence extends BaseAction<PayloadType, GroupEssenceMsgRet> {
|
||||
actionName = ActionName.GoCQHTTP_GetEssenceMsg;
|
||||
|
||||
protected async _handle(payload: PayloadType) {
|
||||
return await WebApi.getGroupEssenceMsg(payload.group_id.toString(), payload.pages.toString());
|
||||
let ret = await WebApi.getGroupEssenceMsg(payload.group_id.toString(), payload.pages.toString());
|
||||
if (!ret) {
|
||||
throw new Error('获取失败');
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user