chore: obApi

This commit is contained in:
手瓜一十雪 committed 2024-08-09 16:04:28 +08:00
1 parent 28574c1065
commit f3dc7da1c8
22 files changed
+805 -86

No files matched your search

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