wangshan 3 ヶ月 前
コミット
df13a72122
2 ファイル変更5 行追加4 行削除
  1. 3 2
      src/jfw/front/index.go
  2. 2 2
      src/jfw/front/nzjProject.go

+ 3 - 2
src/jfw/front/index.go

@@ -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

+ 2 - 2
src/jfw/front/nzjProject.go

@@ -813,7 +813,7 @@ func WinnerGladTidings(number int) (entBidArr []map[string]interface{}) {
 }
 
 func GetEsWinner(number int) (data []map[string]interface{}) {
-	redisKey := "bid_winning_news"
+	redisKey := "bid_winning_news_new"
 	if dataBy := redis.Get(RedisNameNew, redisKey); dataBy != nil {
 		dataArr, _ := dataBy.([]interface{})
 		data = common.ObjArrToMapArr(dataArr)
@@ -865,7 +865,7 @@ func GetEsWinner(number int) (data []map[string]interface{}) {
 				k: v,
 			})
 		}
-		redis.Put(RedisNameNew, "bid_winning_news", data, RedisTimeout+rand.Intn(100))
+		redis.Put(RedisNameNew, "bid_winning_news_new", data, RedisTimeout+rand.Intn(100))
 	}
 	return
 }