mirror of https://github.com/certd/certd
Merge branch 'v2' into v2-dev-yaml
commit
e5a7ada3cf
|
@ -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 as string;
|
||||||
certId = await this.uploadToTencent(access,this.tencentCertId as CertInfo);
|
} else if (this.tencentCertId && typeof this.tencentCertId === 'object') {
|
||||||
|
certId = await this.uploadToTencent(access, this.tencentCertId as CertInfo);
|
||||||
} else {
|
} else {
|
||||||
certId = this.tencentCertId as string;
|
throw new Error('无效的证书输入类型');
|
||||||
}
|
}
|
||||||
|
|
||||||
const params = {
|
const params = {
|
||||||
|
|
Loading…
Reference in New Issue