perf: 优化证书申请跳过的状态显示,成功通知现在在跳过时不会发送

This commit is contained in:
xiaojunnuo
2024-12-23 00:49:56 +08:00
parent faa28f88f9
commit 67d762b6a5
6 changed files with 51 additions and 38 deletions

View File

@@ -120,10 +120,11 @@ export abstract class CertApplyBasePlugin extends AbstractTaskPlugin {
abstract doCertApply(): Promise<any>;
async execute(): Promise<void> {
async execute(): Promise<string | void> {
const oldCert = await this.condition();
if (oldCert != null) {
return await this.output(oldCert, false);
await this.output(oldCert, false);
return "skip";
}
const cert = await this.doCertApply();
if (cert != null) {
@@ -258,6 +259,8 @@ cert.jksjks格式证书文件java服务器使用
inputChanged = oldInput !== thisInput;
if (inputChanged) {
this.logger.info(`旧参数:${oldInput}`);
this.logger.info(`新参数:${thisInput}`);
this.logger.info("输入参数变更,准备申请新证书");
return null;
}