|
@ -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 注册定时器方法
|
|
|