Merge branch 'v2' into v2-dev-yaml

pull/409/head
xiaojunnuo 2025-04-15 21:19:39 +08:00
commit e5a7ada3cf
1 changed files with 5 additions and 4 deletions

View File

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