Selaa lähdekoodia

更新获取热门数据地址

wcc 1 vuosi sitten
vanhempi
commit
48eee29d21
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      website_columns/main.go

+ 2 - 1
website_columns/main.go

@@ -174,7 +174,8 @@ func getHot() {
 	var hotMap = make(map[string]int)
 	//1.获取昨日数据
 	file := gtime.Now().AddDate(0, 0, -1).Format("Y-m-d")
-	res := gclient.New().GetContent(context.Background(), "http://172.17.145.164:18880/jyartvisit/"+file+".res")
+	res := gclient.New().GetContent(context.Background(), "http://172.17.162.26:18880/jyartvisit/"+file+".res")
+	//http://172.17.162.26:18880/jyartvisit/2024-04-29.res
 	arrs := strings.Split(res, "\n")
 	log.Info("getHot", zap.Int("res", len(arrs)))
 	for _, va := range arrs {