chore: obApi
This commit is contained in:
1 parent
28574c1065
commit
f3dc7da1c8
22 files changed
+805
-86
No files matched your search
@@ -24,6 +24,7 @@ export default class SetAvatar extends BaseAction<Payload, null> {
|
||||
};
|
||||
}
|
||||
protected async _handle(payload: Payload): Promise<null> {
|
||||
const NTQQUserApi = this.CoreContext.getApiContext().UserApi;
|
||||
const { path, isLocal, errMsg,success } = (await uri2local(payload.file));
|
||||
if (!success) {
|
||||
throw `头像${payload.file}设置失败,file字段可能格式不正确`;
|
||||
|
||||
Reference in new issue
Block a user