diff --git a/_const/rediskey/key.go b/_const/rediskey/key.go index 6afdab646d54bd0d5c835cce419edff7f0e5a32d..fb0b067368e3b9f7adc6155a7f51a99231201c32 100644 --- a/_const/rediskey/key.go +++ b/_const/rediskey/key.go @@ -63,5 +63,5 @@ const ( RoomVisitCount = "room_visit_count" // 15天内进入房间的人数 GroupCountrySortList = "group:sortCountryList:%s" // 国家群组列表,%s:countryName - ActTemplateRanking = "act:ranking:%d:%d" // 排行榜数据 活动id:排行榜类型 + ActTemplateRanking = "act:ranking:%d:%d:%d" // 排行榜数据 活动id:排行榜类型:teamId ) diff --git a/_const/rediskey/key_func.go b/_const/rediskey/key_func.go index ec2b0afe1f7f3bd136023c9e0569119420a5a0d1..623fe9d6d9e745af879abe3f19b56c71614263d2 100644 --- a/_const/rediskey/key_func.go +++ b/_const/rediskey/key_func.go @@ -148,6 +148,6 @@ func GetGroupCountrySortList(country string) string { return fmt.Sprintf(GroupCountrySortList, country) } -func GetActTemplateRanking(actId uint64, rankType int) string { - return fmt.Sprintf(ActTemplateRanking, actId, rankType) +func GetActTemplateRanking(actId uint64, rankType, teamId int) string { + return fmt.Sprintf(ActTemplateRanking, actId, rankType, teamId) }