mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 07:50:25 +08:00 
			
		
		
		
	查询快过期证书时,只查询启用的
This commit is contained in:
		@@ -395,6 +395,7 @@ func (this *SSLCertDAO) FindAllExpiringCerts(tx *dbs.Tx, days int) (result []*SS
 | 
			
		||||
	var deltaSeconds = int64(days * 86400)
 | 
			
		||||
	_, err = this.Query(tx).
 | 
			
		||||
		State(SSLCertStateEnabled).
 | 
			
		||||
		Attr("isOn", true).
 | 
			
		||||
		Where("FROM_UNIXTIME(timeEndAt, '%Y-%m-%d')=:day AND FROM_UNIXTIME(notifiedAt, '%Y-%m-%d')!=:today").
 | 
			
		||||
		Param("day", timeutil.FormatTime("Y-m-d", time.Now().Unix()+deltaSeconds)).
 | 
			
		||||
		Param("today", timeutil.Format("Y-m-d")).
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user