Commit c4888d98 authored by chenweijian's avatar chenweijian

排行榜

parent 0e6cc327
...@@ -63,5 +63,5 @@ const ( ...@@ -63,5 +63,5 @@ const (
RoomVisitCount = "room_visit_count" // 15天内进入房间的人数 RoomVisitCount = "room_visit_count" // 15天内进入房间的人数
GroupCountrySortList = "group:sortCountryList:%s" // 国家群组列表,%s:countryName GroupCountrySortList = "group:sortCountryList:%s" // 国家群组列表,%s:countryName
ActTemplateRanking = "act:ranking:%d:%d" // 排行榜数据 活动id:排行榜类型 ActTemplateRanking = "act:ranking:%d:%d:%d" // 排行榜数据 活动id:排行榜类型:teamId
) )
...@@ -148,6 +148,6 @@ func GetGroupCountrySortList(country string) string { ...@@ -148,6 +148,6 @@ func GetGroupCountrySortList(country string) string {
return fmt.Sprintf(GroupCountrySortList, country) return fmt.Sprintf(GroupCountrySortList, country)
} }
func GetActTemplateRanking(actId uint64, rankType int) string { func GetActTemplateRanking(actId uint64, rankType, teamId int) string {
return fmt.Sprintf(ActTemplateRanking, actId, rankType) return fmt.Sprintf(ActTemplateRanking, actId, rankType, teamId)
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment