用户系统也可以申请ACME证书

This commit is contained in:
刘祥超
2022-08-28 20:02:13 +08:00
parent 61b6a49885
commit 02132e9262
11 changed files with 118 additions and 48 deletions

View File

@@ -358,7 +358,7 @@ func (this *SSLCertDAO) FindAllExpiringCerts(tx *dbs.Tx, days int) (result []*SS
days = 0
}
deltaSeconds := int64(days * 86400)
var deltaSeconds = int64(days * 86400)
_, err = this.Query(tx).
State(SSLCertStateEnabled).
Where("FROM_UNIXTIME(timeEndAt, '%Y-%m-%d')=:day AND FROM_UNIXTIME(notifiedAt, '%Y-%m-%d')!=:today").