王传进 8 years ago
parent
commit
f5d63fbdab
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/jfw/front/entserach.go

+ 4 - 3
src/jfw/front/entserach.go

@@ -58,11 +58,12 @@ func (m *Entsearch) Bidsearchforent() error {
 			}
 		}
 	}
-	for i := 0; i < 10; i++ {
+	//for i := 0; i < 10; i++ {
 		_, list = getLastNewsData(searchvalue, area, publishtime, subtype, industry, 0, true)
 		fmt.Println(list)
 		for k, v := range *list {
-			v["k"] = (k + 1) + i*50
+			//v["k"] = (k + 1) + i*50
+			v["k"] = (k + 1) + 1*50
 			t := time.Unix(util.Int64All(v["publishtime"]), 0)
 			v["timetemp"] = fmt.Sprint(util.Int64All(v["publishtime"]))
 			v["_id"] = util.EncodeArticleId2ByCheck(v["_id"].(string))
@@ -80,7 +81,7 @@ func (m *Entsearch) Bidsearchforent() error {
 			v["stypeadd"], v["areaadd"] = classify(stp, area)
 		}
 		pages = append(pages, list)
-	}
+	//}
 	m.DisableHttpCache()
 	redis.Put("other", "index_list", pages, 60*60*2)