mirror of https://github.com/certd/certd
perf: 腾讯云关闭证书通知增加开关选项,在腾讯云授权里面
parent
a34db7449e
commit
a77c777980
|
@ -46,6 +46,16 @@ export class TencentAccess extends BaseAccess {
|
||||||
})
|
})
|
||||||
accountType: string;
|
accountType: string;
|
||||||
|
|
||||||
|
@AccessInput({
|
||||||
|
title: "关闭证书过期通知",
|
||||||
|
value: true,
|
||||||
|
component: {
|
||||||
|
name: "a-switch",
|
||||||
|
vModel: "checked",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
closeExpiresNotify: boolean = true;
|
||||||
|
|
||||||
isIntl() {
|
isIntl() {
|
||||||
return this.accountType === "intl";
|
return this.accountType === "intl";
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,10 @@ export class TencentSslClient {
|
||||||
const ret = await client.UploadCertificate(params);
|
const ret = await client.UploadCertificate(params);
|
||||||
this.checkRet(ret);
|
this.checkRet(ret);
|
||||||
this.logger.info(`证书[${opts.certName}]上传成功:tencentCertId=`, ret.CertificateId);
|
this.logger.info(`证书[${opts.certName}]上传成功:tencentCertId=`, ret.CertificateId);
|
||||||
await this.switchCertNotify([ret.CertificateId], true);
|
if (this.access.closeExpiresNotify) {
|
||||||
|
await this.switchCertNotify([ret.CertificateId], true);
|
||||||
|
}
|
||||||
|
|
||||||
return ret.CertificateId;
|
return ret.CertificateId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue