mirror of
https://github.com/certd/certd.git
synced 2026-04-24 12:27:25 +08:00
fix: 修复又拍云upyun密码错误没有报错的bug
This commit is contained in:
@@ -46,9 +46,12 @@ export class UpyunClient {
|
|||||||
logRes: false,
|
logRes: false,
|
||||||
returnOriginRes: true
|
returnOriginRes: true
|
||||||
});
|
});
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user