Browse Source

流量统计;

maxiaoshan 3 years ago
parent
commit
71ef06d710
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/spider/store.go

+ 1 - 1
src/spider/store.go

@@ -421,7 +421,7 @@ func UpdateSpiderFlow() {
 	arr := []map[string]interface{}{}
 	SpiderFlowMap.Range(func(key, temp interface{}) bool {
 		date := strings.Split(key.(string), "+")
-		if len(date) == 2 && date[0] != Today { //统计非当天的
+		if len(date) == 2 && date[0] == Today { //统计非当天的
 			if sfMap, ok := temp.(*SpiderFlow); ok {
 				arr = append(arr, map[string]interface{}{
 					"spidercode": date[1],