Commit d41ec14f authored by JiebinHu's avatar JiebinHu

过滤游戏房

parent a29fdf93
......@@ -1477,6 +1477,7 @@ func getCandidatesByCountry(model *domain.Model, bannedGroups map[string]uint64,
if err != nil {
return nil, 0, nil, err
}
gameRoom := group_m.GetGameGroupsMap(model)
banCount := 0
groups := make(map[string]*group_m.GroupInfo, 0)
......@@ -1487,6 +1488,10 @@ func getCandidatesByCountry(model *domain.Model, bannedGroups map[string]uint64,
banCount++
continue
}
// 过滤游戏房
if gameRoom[v.ImGroupId] {
continue
}
// 先从二级缓存中找
if c, ok := roomVisitCount[v.ImGroupId]; ok {
......
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