chore: obApi

This commit is contained in:
手瓜一十雪
2024-08-09 16:04:28 +08:00
parent 518ff48e97
commit 6605d3812a
22 changed files with 805 additions and 86 deletions

View File

@@ -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字段可能格式不正确`;