build: 181test

This commit is contained in:
手瓜一十雪 committed 2024-08-06 11:07:37 +08:00
1 parent 1070278eaf
commit 8fa6a12a7c
8 files changed
+29 -26

No files matched your search

+2 -2
View File
@@ -24,8 +24,8 @@ export default class SetAvatar extends BaseAction<Payload, null> {
};
}
protected async _handle(payload: Payload): Promise<null> {
const { path, isLocal, errMsg } = (await uri2local(payload.file));
if (errMsg) {
const { path, isLocal, errMsg,success } = (await uri2local(payload.file));
if (!success) {
throw `头像${payload.file}设置失败,file字段可能格式不正确`;
}
if (path) {