|
@@ -589,7 +589,7 @@ func GetIndexRecommendProjectList(typ, pageSize int) (data []map[string]interfac
|
|
|
|
|
|
// 优秀供应商
|
|
|
func GetBidInfoPublishEnt() (res [][]map[string]interface{}) {
|
|
|
- if l, ok := redis.Get(RedisNameNew, "pcIndexBidInfoGoodPublishEnt").([]interface{}); ok && l != nil && len(l) > 0 {
|
|
|
+ if l, ok := redis.Get(RedisNameNew, "pcIndexBidInfoGoodPublishEnt_new").([]interface{}); ok && l != nil && len(l) > 0 {
|
|
|
for _, v := range l {
|
|
|
res = append(res, common.ObjArrToMapArr(v.([]interface{})))
|
|
|
}
|
|
@@ -617,6 +617,7 @@ func GetBidInfoPublishEnt() (res [][]map[string]interface{}) {
|
|
|
if n := g.Cfg().MustGet(gctx.New(), "supplyEntNum").Int(); n > 0 {
|
|
|
number = n
|
|
|
}
|
|
|
+ log.Println("---number:", number)
|
|
|
once := []map[string]interface{}{}
|
|
|
for _, val := range entData {
|
|
|
if len(once) <= number {
|
|
@@ -631,7 +632,7 @@ func GetBidInfoPublishEnt() (res [][]map[string]interface{}) {
|
|
|
res = append(res, once)
|
|
|
}
|
|
|
}
|
|
|
- redis.Put(RedisNameNew, "pcIndexBidInfoGoodPublishEnt", res, RedisTimeout+rand.Intn(100))
|
|
|
+ redis.Put(RedisNameNew, "pcIndexBidInfoGoodPublishEnt_new", res, RedisTimeout+rand.Intn(100))
|
|
|
}
|
|
|
}
|
|
|
return res
|