|
@@ -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)
|
|
|
|