diff --git a/route/group_r/group_list.go b/route/group_r/group_list.go index 9ccd855d4f08232b4cd262a4b616c4e1276cd238..ed244d7b647b4c789cd01303bc3fe01e361020ed 100644 --- a/route/group_r/group_list.go +++ b/route/group_r/group_list.go @@ -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 {