Browse Source

feat:p510 调试日志

fuwencai 1 year ago
parent
commit
ea9f93f2ea
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/jfw/modules/bigmember/src/entity/portrait_screen.go

+ 4 - 2
src/jfw/modules/bigmember/src/entity/portrait_screen.go

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