فهرست منبع

wip:缓存时间修改

wangkaiyue 1 سال پیش
والد
کامیت
f7cce8382a
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/jfw/front/index.go

+ 1 - 1
src/jfw/front/index.go

@@ -322,7 +322,7 @@ func GetRecommendBidZone(typ int, pageSize int) (list []map[string]interface{},
 	}
 	finalArr := FillingBiddingBaseFields(gctx.New(), queryRes.List(), typs)
 	if finalArr != nil && len(finalArr) > 0 {
-		redis.Put(RedisNameNew, rediskey, finalArr, g.Cfg().MustGet(context.Background(), "indexBiddingCacheTime", 1800).Int())
+		redis.Put(RedisNameNew, rediskey, finalArr, g.Cfg("index").MustGet(context.Background(), "indexBiddingCacheTime", 1800).Int())
 	}
 	return finalArr, typs
 }