mirror of
https://github.com/certd/certd.git
synced 2026-04-03 14:10:54 +08:00
fix: 修复又拍云upyun密码错误没有报错的bug
This commit is contained in:
@@ -46,9 +46,12 @@ export class UpyunClient {
|
||||
logRes: false,
|
||||
returnOriginRes: true
|
||||
});
|
||||
if (res.data?.errors?.length > 0) {
|
||||
if (res.data?.errors?.length > 0 ) {
|
||||
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"];
|
||||
return cookie;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user