fix: 修复又拍云upyun密码错误没有报错的bug

This commit is contained in:
xiaojunnuo
2026-01-12 16:57:19 +08:00
parent ae822881e7
commit 235972f3da
@@ -49,6 +49,9 @@ export class UpyunClient {
if (res.data?.errors?.length > 0 ) { if (res.data?.errors?.length > 0 ) {
throw new Error(JSON.stringify(res.data.msg)); throw new Error(JSON.stringify(res.data.msg));
} }
if (res.data?.data?.error_code ) {
throw new Error( "登录失败:"+res.data.data.message);
}
const cookie = res.headers["set-cookie"]; const cookie = res.headers["set-cookie"];
return cookie; return cookie;
} }