-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main'
- Loading branch information
Showing
6 changed files
with
44 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule core
updated
from aa3221 to e5a4b1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { getGroup } from '@/core/data'; | ||
import { OB11Group } from '../../types'; | ||
import { OB11Constructor } from '../../constructor'; | ||
import BaseAction from '../BaseAction'; | ||
import { ActionName } from '../types'; | ||
import { NTQQMsgApi } from '@/core/apis/msg'; | ||
import { GroupEssenceMsgRet, WebApi } from '@/core/apis/webapi'; | ||
|
||
interface PayloadType { | ||
group_id: number; | ||
pages: number; | ||
} | ||
|
||
export class GetGroupEssence extends BaseAction<PayloadType, GroupEssenceMsgRet> { | ||
actionName = ActionName.GoCQHTTP_GetEssenceMsg; | ||
|
||
protected async _handle(payload: PayloadType) { | ||
let ret = await WebApi.getGroupEssenceMsg(payload.group_id.toString(), payload.pages.toString()); | ||
if (!ret) { | ||
throw new Error('获取失败'); | ||
} | ||
return ret; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters