Explorar o código

更新指标日期

tuoling805 hai 1 ano
pai
achega
fbacee8101
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      services/task.go

+ 2 - 0
services/task.go

@@ -133,6 +133,8 @@ func RefreshData(cont context.Context) (err error) {
 			fmt.Println("i:"+strconv.Itoa(i)+" date:", date.Format(utils.FormatDate)+";sleep:", strconv.Itoa(int(rn)))
 			time.Sleep(time.Duration(rn) * time.Second)
 		}
+		//更新指标日期
+		CrawlerFromGuangzhouIndexMinAndMaxDate()
 	}
 	return
 }