浏览代码

fix:supply默认搜索存redis修改

duxin 3 年之前
父节点
当前提交
1950626df2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rpc/model/es/es.go

+ 1 - 1
rpc/model/es/es.go

@@ -77,7 +77,7 @@ func SupplyRedis(in *consumerinfo.SupplyInfoSearchReq) (int64, *[]map[string]int
 			"total": total,
 			"list":  listData,
 		}
-		redis.Put("other", "supply_search_key", redisData, model.SupplyRedDay)
+		redis.Put("other", "supply_search_key", redisData, 60*60*24*model.SupplyRedDay)
 	} else {
 		data, _ := supplyData.(map[string]interface{})
 		if in.PageIndex == 1 {