|
@@ -174,7 +174,8 @@ func getHot() {
|
|
var hotMap = make(map[string]int)
|
|
var hotMap = make(map[string]int)
|
|
//1.获取昨日数据
|
|
//1.获取昨日数据
|
|
file := gtime.Now().AddDate(0, 0, -1).Format("Y-m-d")
|
|
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")
|
|
arrs := strings.Split(res, "\n")
|
|
log.Info("getHot", zap.Int("res", len(arrs)))
|
|
log.Info("getHot", zap.Int("res", len(arrs)))
|
|
for _, va := range arrs {
|
|
for _, va := range arrs {
|