Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-group
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujiebin
hilo-group
Commits
d41ec14f
Commit
d41ec14f
authored
Aug 26, 2023
by
JiebinHu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
过滤游戏房
parent
a29fdf93
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
group_list.go
route/group_r/group_list.go
+5
-0
No files found.
route/group_r/group_list.go
View file @
d41ec14f
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment