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
a29fdf93
Commit
a29fdf93
authored
Aug 26, 2023
by
JiebinHu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hgetall 改成mget
parent
c1cf069e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
userRoomVisit.go
domain/cache/room_c/userRoomVisit.go
+1
-0
group_list.go
route/group_r/group_list.go
+6
-1
No files found.
domain/cache/room_c/userRoomVisit.go
View file @
a29fdf93
...
...
@@ -121,6 +121,7 @@ func clearRoomVisit(groupId string, t time.Time) (int64, error) {
return
ret
,
nil
}
// Deprecated: hgetall有问题
func
GetAllRoomVisitCount
()
(
map
[
string
]
string
,
error
)
{
key
:=
redis_key
.
GetPrefixRoomVisitCount
()
return
redisCli
.
GetRedis
()
.
HGetAll
(
context
.
Background
(),
key
)
.
Result
()
...
...
route/group_r/group_list.go
View file @
a29fdf93
...
...
@@ -1467,8 +1467,13 @@ func getCandidatesByCountry(model *domain.Model, bannedGroups map[string]uint64,
if
err
!=
nil
{
return
nil
,
0
,
nil
,
err
}
var
groupIds
[]
string
for
_
,
v
:=
range
noPwdGroups
{
groupIds
=
append
(
groupIds
,
v
.
ImGroupId
)
// imGroupId
}
roomVisitCount
,
err
:=
room_c
.
GetAllRoomVisitCount
()
//roomVisitCount, err := room_c.GetAllRoomVisitCount()
roomVisitCount
,
err
:=
room_c
.
MGetRoomVisitCount
(
groupIds
)
if
err
!=
nil
{
return
nil
,
0
,
nil
,
err
}
...
...
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