style: lint
This commit is contained in:
1 parent
f108d97509
commit
ea0fd09900
2 files changed
+2
-2
No files matched your search
@@ -15,7 +15,7 @@ export class GetGroupEssence extends BaseAction<PayloadType, GroupEssenceMsgRet>
|
|||||||
actionName = ActionName.GoCQHTTP_GetEssenceMsg;
|
actionName = ActionName.GoCQHTTP_GetEssenceMsg;
|
||||||
|
|
||||||
protected async _handle(payload: PayloadType) {
|
protected async _handle(payload: PayloadType) {
|
||||||
let ret = await WebApi.getGroupEssenceMsg(payload.group_id.toString(), payload.pages.toString());
|
const ret = await WebApi.getGroupEssenceMsg(payload.group_id.toString(), payload.pages.toString());
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
throw new Error('获取失败');
|
throw new Error('获取失败');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ export class GetGroupNotice extends BaseAction<PayloadType, WebApiGroupNoticeRet
|
|||||||
|
|
||||||
protected async _handle(payload: PayloadType) {
|
protected async _handle(payload: PayloadType) {
|
||||||
const group = payload.group_id.toString();
|
const group = payload.group_id.toString();
|
||||||
let ret = await WebApi.getGrouptNotice(group);
|
const ret = await WebApi.getGrouptNotice(group);
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
throw new Error('获取公告失败');
|
throw new Error('获取公告失败');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user