启用定时更新 测试10点
This commit is contained in:
parent
6fd2872aa3
commit
4cc0dcb4b0
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user