Ver código fonte

fix:supply默认搜索存redis修改

duxin 3 anos atrás
pai
commit
1950626df2
1 arquivos alterados com 1 adições e 1 exclusões
  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 {