|
@@ -64,7 +64,7 @@ func main() {
|
|
cronServer := cron.New(cron.WithLocation(local), cron.WithSeconds())
|
|
cronServer := cron.New(cron.WithLocation(local), cron.WithSeconds())
|
|
|
|
|
|
//spec := "0 */1 * * * *" //秒,分,时,日,月,星期
|
|
//spec := "0 */1 * * * *" //秒,分,时,日,月,星期
|
|
- //spec := "0 10 09 * * 1" //每周一的9点十分执行
|
|
|
|
|
|
+ //spec := "0 30 08 * * 1" //每周一的8点30执行
|
|
spec := util.ObjToString(Sysconfig["spec"])
|
|
spec := util.ObjToString(Sysconfig["spec"])
|
|
cronServer.AddFunc(spec, dealWatch)
|
|
cronServer.AddFunc(spec, dealWatch)
|
|
|
|
|