mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-12 16:00:27 +00:00
fix
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { WebApi, WebApiGroupNoticeRet } from '@/core/apis/webapi';
|
||||
import BaseAction from '../BaseAction';
|
||||
import { ActionName } from '../types';
|
||||
|
||||
@@ -5,12 +6,15 @@ interface PayloadType {
|
||||
group_id: number
|
||||
}
|
||||
|
||||
export class GetGroupNotice extends BaseAction<PayloadType, null> {
|
||||
actionName = ActionName.GoCQHTTP_GetGroupNotice;
|
||||
export class GetGroupNotice extends BaseAction<PayloadType, WebApiGroupNoticeRet> {
|
||||
actionName = ActionName.GoCQHTTP_GetGroupNotice;
|
||||
|
||||
protected async _handle(payload: PayloadType) {
|
||||
const group = payload.group_id.toString();
|
||||
// WebApi.getGrouptNotice(group);
|
||||
return null;
|
||||
}
|
||||
protected async _handle(payload: PayloadType) {
|
||||
const group = payload.group_id.toString();
|
||||
let ret = await WebApi.getGrouptNotice(group);
|
||||
if (!ret) {
|
||||
throw new Error('获取公告失败');
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user