启用定时更新 测试10点

This commit is contained in:
ZJY 2021-09-07 09:12:44 +08:00
parent 6fd2872aa3
commit 4cc0dcb4b0

View File

@ -9,10 +9,10 @@ func intiSky() {
c := cron.New(cron.WithSeconds()) //精确到秒
//定时任务
spec := "0 0 8/12 * * ?" //cron表达式每秒一次
spec := "0 0 10/12 * * ?" //cron表达式每秒一次
c.AddFunc(spec, func() {
fmt.Println("开始wskey转换")
updateCookie()
})
c.Start()