mirror of
https://github.com/certd/certd.git
synced 2026-04-15 05:00:52 +08:00
chore: 1
This commit is contained in:
@@ -149,7 +149,7 @@ export abstract class CertApplyBasePlugin extends CertApplyBaseConvertPlugin {
|
||||
const leftDays = Math.floor((expires - dayjs().valueOf()) / (1000 * 60 * 60 * 24));
|
||||
this.logger.info(`证书有效期剩余天数:${leftDays}`);
|
||||
if(totalDays < maxDays){
|
||||
this.logger.warn(`当前更新到期前天数为${maxDays},证书总天数${totalDays},总天数小于更新到期前天数`);
|
||||
this.logger.warn(`当前更新天数为${maxDays},证书总天数${totalDays},总天数小于更新天数(更新天数是指到期前多少天更新证书,您可以在任务配置中调整该值)`);
|
||||
maxDays = Math.floor(totalDays/2);
|
||||
if(maxDays < 2){
|
||||
maxDays = 2;
|
||||
|
||||
Reference in New Issue
Block a user