mirror of
https://github.com/certd/certd.git
synced 2026-04-14 12:30:54 +08:00
chore: upyun 不存在的domain上传证书报错提示优化
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user