tuoling805 1 жил өмнө
parent
commit
fbacee8101
1 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  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
 }