fix: 修复腾讯云部署到任意资源插件,无法使用之前已上传的腾讯云证书问题

pull/373/head
xinghejd 2025-04-15 07:25:12 +00:00
parent 75c4f9dea8
commit 32c714d1b6
1 changed files with 5 additions and 4 deletions

View File

@ -128,11 +128,12 @@ export class DeployCertToTencentAll extends AbstractTaskPlugin {
}); });
let certId:string = null let certId:string = null
if (typeof certId === 'object') { if (typeof this.tencentCertId === 'string') {
//上传 certId = this.tencentCertId;
certId = await this.uploadToTencent(access,this.tencentCertId as CertInfo); } else if (this.tencentCertId && typeof this.tencentCertId === 'object') {
certId = await this.uploadToTencent(access, this.tencentCertId);
} else { } else {
certId = this.tencentCertId as string; throw new Error('无效的证书输入类型');
} }
const params = { const params = {