|
@@ -467,8 +467,7 @@ func (pwp *PortraitProjectScreen) FreePortraitNews(mustQueryArr []string, isWinn
|
|
|
isTrue := true
|
|
|
if total > 0 {
|
|
|
listQuery := fmt.Sprintf(NewMustSearch, mustQueryArrStr, fmt.Sprintf(`,"_source":[%s],"sort":{%s},"from":0,"size":%d`, fields, `"publishtime":"desc","id":"desc"`, config.Config.PortraitCount))
|
|
|
- log.Println("打印日志",listQuery)
|
|
|
- list := elastic.Get(biddingIndex, biddingIndex, listQuery)
|
|
|
+ list := elastic.Get(biddingIndex, biddingIndex, listQuery)
|
|
|
if list != nil && len(*list) > 0 {
|
|
|
dataArr = *list
|
|
|
} else {
|
|
@@ -478,8 +477,7 @@ func (pwp *PortraitProjectScreen) FreePortraitNews(mustQueryArr []string, isWinn
|
|
|
}
|
|
|
}
|
|
|
if isTrue {
|
|
|
- log.Println("打印日志 存缓存",dataArr)
|
|
|
- redis.Put("other", redisKey, map[string]interface{}{
|
|
|
+ redis.Put("other", redisKey, map[string]interface{}{
|
|
|
"list": dataArr,
|
|
|
"total": total,
|
|
|
"updateTime": updateTime,
|