mirror of
https://github.com/certd/certd.git
synced 2026-05-06 05:47:25 +08:00
perf: 上传到阿里云证书名称后缀增加毫秒时间戳
This commit is contained in:
@@ -193,7 +193,7 @@ export abstract class AbstractTaskPlugin implements ITaskPlugin {
|
|||||||
if (name == null) {
|
if (name == null) {
|
||||||
name = "certd";
|
name = "certd";
|
||||||
}
|
}
|
||||||
return name + "_" + dayjs().format("YYYYMMDDHHmmss");
|
return name + "_" + dayjs().format("YYYYMMDDHHmmssSSS");
|
||||||
}
|
}
|
||||||
|
|
||||||
async onRequest(req: PluginRequestHandleReq<any>) {
|
async onRequest(req: PluginRequestHandleReq<any>) {
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ export class DeployCertToAliyunCDN extends AbstractTaskPlugin {
|
|||||||
let certId: any = this.cert;
|
let certId: any = this.cert;
|
||||||
if (typeof this.cert === 'object') {
|
if (typeof this.cert === 'object') {
|
||||||
certId = await sslClient.uploadCert({
|
certId = await sslClient.uploadCert({
|
||||||
name: this.appendTimeSuffix('certd'),
|
name: this.appendTimeSuffix(this.certName),
|
||||||
cert: this.cert,
|
cert: this.cert,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user