...
|
...
|
@@ -7,9 +7,10 @@ import ( |
|
|
)
|
|
|
|
|
|
func PushData() {
|
|
|
//每天15:30点运行
|
|
|
nowTime := time.Now()
|
|
|
y, m, d := nowTime.Date()
|
|
|
t1 := time.Date(y, m, d, 10, 0, 0, 0, time.Local) //今天的10点
|
|
|
t1 := time.Date(y, m, d, 16, 50, 0, 0, time.Local) //今天的15:30
|
|
|
interval := t1.Sub(nowTime)
|
|
|
if interval < 0 {
|
|
|
interval = (24 * time.Hour) + interval
|
...
|
...
|
@@ -20,7 +21,7 @@ func PushData() { |
|
|
nowTime = time.Now()
|
|
|
err := SendDataStaffAssess(nowTime)
|
|
|
if err != nil {
|
|
|
log.Logger.Error("发送每日评估任务")
|
|
|
log.Logger.Error("发送每日评估任务" + err.Error())
|
|
|
}
|
|
|
|
|
|
timer.Reset(24 * time.Hour)
|
...
|
...
|
|