From 235972f3dabe0b87879a2d9950367dc45edfebe8 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Mon, 12 Jan 2026 16:57:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=8F=88=E6=8B=8D?= =?UTF-8?q?=E4=BA=91upyun=E5=AF=86=E7=A0=81=E9=94=99=E8=AF=AF=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E6=8A=A5=E9=94=99=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/ui/certd-server/src/plugins/plugin-upyun/client.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/ui/certd-server/src/plugins/plugin-upyun/client.ts b/packages/ui/certd-server/src/plugins/plugin-upyun/client.ts index 19c71e692..be86799cd 100644 --- a/packages/ui/certd-server/src/plugins/plugin-upyun/client.ts +++ b/packages/ui/certd-server/src/plugins/plugin-upyun/client.ts @@ -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; }