diff --git a/route/group_r/group_list.go b/route/group_r/group_list.go index 657b286ec8adb20b95d540d64d6fe3c37b1222a4..d7ac7ba38d5c057c74a3ed8c413d34d725480c65 100644 --- a/route/group_r/group_list.go +++ b/route/group_r/group_list.go @@ -7,7 +7,6 @@ import ( "git.hilo.cn/hilo-common/domain" "git.hilo.cn/hilo-common/mycontext" "git.hilo.cn/hilo-common/resource/mysql" - "git.hilo.cn/hilo-common/resource/redisCli" "git.hilo.cn/hilo-common/rpc" "git.hilo.cn/hilo-common/utils" "github.com/gin-gonic/gin" @@ -1490,7 +1489,7 @@ func GetGroupByCountryV2(c *gin.Context) (*mycontext.MyContext, error) { beginPos := int64(pageSize * (pageIndex - 1)) endPos := int64(pageSize*pageIndex - 1) key := rediskey.GetGroupCountrySortList(countryShortName) - zList, err := redisCli.GetRedis().ZRangeWithScores(context.Background(), key, beginPos, endPos).Result() + zList, err := model.RedisCluster.ZRangeWithScores(context.Background(), key, beginPos, endPos).Result() if err != nil { model.Log.Errorf("GetGroupByCountry err:%v", err) return myContext, err @@ -1509,7 +1508,7 @@ func GetGroupByCountryV2(c *gin.Context) (*mycontext.MyContext, error) { } hotGroupList = append(hotGroupList, gInfo) } - total, err := redisCli.GetRedis().ZCard(context.Background(), key).Uint64() + total, err := model.RedisCluster.ZCard(context.Background(), key).Uint64() if err != nil { model.Log.Errorf("GetGroupByCountry err:%v", err) return myContext, err