From 2b0a8f9a51a251d365cb52ca1646192e353381aa Mon Sep 17 00:00:00 2001 From: ZJY <764763903@qq.com> Date: Thu, 30 Sep 2021 11:50:28 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E4=BF=AE=E5=A4=8Dwskey=E4=B8=8D=E4=BC=9A?= =?UTF-8?q?=E5=AE=9A=E6=97=B6=E8=BD=AC=E6=8D=A2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/wskey.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/wskey.go b/models/wskey.go index fda6bb8..61e5178 100644 --- a/models/wskey.go +++ b/models/wskey.go @@ -10,7 +10,7 @@ func intiSky() { c := cron.New(cron.WithSeconds()) //精确到秒 //定时任务 - spec := "0 0 " + Config.CTime + "/12 * * ?" //cron表达式,每秒一次 + spec := "0 0" + " " + Config.CTime + "/12 * * ?" //cron表达式,每秒一次 logs.Info(spec) if Config.Wskey { c.AddFunc(spec, func() {