This commit is contained in:
xiaojunnuo
2025-09-06 20:07:50 +08:00
parent f6ea9c1300
commit 40475e02ec

View File

@@ -65,7 +65,7 @@ export class UpyunClient {
Cookie: req.cookie
}
});
if (res.msg.errors.length > 0) {
if (res.msg?.errors?.length > 0) {
throw new Error(JSON.stringify(res.msg));
}
if(res.data?.error_code){