fix cron
This commit is contained in:
parent
8cfca13b35
commit
13b69d8243
4
cron.go
4
cron.go
@ -12,8 +12,8 @@ func startCron() *cron.Cron {
|
|||||||
c := cron.New(cron.WithLocation(time.UTC))
|
c := cron.New(cron.WithLocation(time.UTC))
|
||||||
c.AddFunc("15 7,15,23 * * *", cronSendWarReport)
|
c.AddFunc("15 7,15,23 * * *", cronSendWarReport)
|
||||||
c.AddFunc("58 6,14,22 * * *", cronSetDef)
|
c.AddFunc("58 6,14,22 * * *", cronSetDef)
|
||||||
c.AddFunc("02 1,3,5,9,11,13,17,19,21 * * *", cronHammerTime)
|
c.AddFunc("02 1,3,5,9,11,13,17,19,21 * * *", cronGetHammerTime)
|
||||||
c.AddFunc("10 7,15,23 * * *", cronHammerTime)
|
c.AddFunc("10 7,15,23 * * *", cronGetHammerTime)
|
||||||
c.Start()
|
c.Start()
|
||||||
return c
|
return c
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user