chore: upyun 不存在的domain上传证书报错提示优化

This commit is contained in:
xiaojunnuo
2026-01-12 16:10:04 +08:00
parent 26f75c71ba
commit ae822881e7

View File

@@ -26,8 +26,11 @@ export class UpyunClient {
private_key: cert.key
}
});
if (!res.data?.result) {
throw new Error("upload cert failed " + JSON.stringify(res.data));
}
return res.data.result.certificate_id;
return res.data?.result?.certificate_id;
}
async getLoginToken() {