refactor: inline getApiContext()
This commit is contained in:
1 parent
9f9749548a
commit
e7e8e99946
71 files changed
+173
-167
No files matched your search
@@ -27,7 +27,7 @@ export default class SetGroupHeader extends BaseAction<Payload, any> {
|
||||
}
|
||||
|
||||
async _handle(payload: Payload): Promise<any> {
|
||||
const NTQQGroupApi = this.CoreContext.getApiContext().GroupApi;
|
||||
const NTQQGroupApi = this.CoreContext.apis.GroupApi;
|
||||
const { path, isLocal, errMsg, success } = (await uri2local(this.CoreContext.NapCatTempPath, payload.file));
|
||||
if (!success) {
|
||||
throw `头像${payload.file}设置失败,file字段可能格式不正确`;
|
||||
|
||||
Reference in new issue
Block a user