refactor: 1

This commit is contained in:
xiaojunnuo
2021-01-08 15:39:23 +08:00
parent ae6b0fb111
commit 30cd62664b
3 changed files with 30 additions and 17 deletions
+3 -3
View File
@@ -41,10 +41,10 @@ export class Trace {
print () {
const context = this.context
logger.info('---------------------------任务结果总览--------------------------')
if (!context.certIsNew) {
this.printTraceLine({ current: 'skip', remark: '还未到过期时间,跳过' }, '更新证书')
} else {
if (context.certIsNew) {
this.printTraceLine({ current: 'success', remark: '证书更新成功' }, '更新证书')
} else {
this.printTraceLine({ current: 'skip', remark: '还未到过期时间,跳过' }, '更新证书')
}
const trace = this.get({ })
// logger.info('trace', trace)