Browse Source

fix 避免空打印

dev
lucas 3 months ago
parent
commit
92279fd68d
  1. 4
      monitors/monitorHelper.go

4
monitors/monitorHelper.go

@ -12,7 +12,9 @@ type MonitorHelper struct {
func (the *MonitorHelper) initial() { func (the *MonitorHelper) initial() {
the.Cron = cron.New() the.Cron = cron.New()
log.Printf("cronStr=%s", the.CronStr) if the.CronStr != "" {
log.Printf("cronStr=%s", the.CronStr)
}
} }
// RegisterTask 注册定时器方法 // RegisterTask 注册定时器方法

Loading…
Cancel
Save