Pārlūkot izejas kodu

fix:supply默认搜索存redis修改

duxin 3 gadi atpakaļ
vecāks
revīzija
1950626df2
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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,
 			"total": total,
 			"list":  listData,
 			"list":  listData,
 		}
 		}
-		redis.Put("other", "supply_search_key", redisData, model.SupplyRedDay)
+		redis.Put("other", "supply_search_key", redisData, 60*60*24*model.SupplyRedDay)
 	} else {
 	} else {
 		data, _ := supplyData.(map[string]interface{})
 		data, _ := supplyData.(map[string]interface{})
 		if in.PageIndex == 1 {
 		if in.PageIndex == 1 {