From 13b69d8243219672dd339940c3071b131c98413f Mon Sep 17 00:00:00 2001 From: shoopea Date: Wed, 18 Dec 2019 10:46:58 +0800 Subject: [PATCH] fix cron --- cron.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cron.go b/cron.go index d2e79a7..4695c69 100644 --- a/cron.go +++ b/cron.go @@ -12,8 +12,8 @@ func startCron() *cron.Cron { c := cron.New(cron.WithLocation(time.UTC)) c.AddFunc("15 7,15,23 * * *", cronSendWarReport) c.AddFunc("58 6,14,22 * * *", cronSetDef) - c.AddFunc("02 1,3,5,9,11,13,17,19,21 * * *", cronHammerTime) - c.AddFunc("10 7,15,23 * * *", cronHammerTime) + c.AddFunc("02 1,3,5,9,11,13,17,19,21 * * *", cronGetHammerTime) + c.AddFunc("10 7,15,23 * * *", cronGetHammerTime) c.Start() return c }