作者 tangxvhui

调整执行时间

... ... @@ -10,7 +10,7 @@ func PushData() {
//每天15:30点运行
nowTime := time.Now()
y, m, d := nowTime.Date()
t1 := time.Date(y, m, d, 15, 30, 0, 0, time.Local) //今天的15:30
t1 := time.Date(y, m, d, 16, 0, 0, 0, time.Local) //今天的15:30
interval := t1.Sub(nowTime)
if interval < 0 {
interval = (24 * time.Hour) + interval
... ...