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
5a04f6b5
Commit
5a04f6b5
authored
Aug 28, 2023
by
iamhujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "1"
This reverts commit
0500449b
.
parent
0500449b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
country.go
domain/cache/res_c/country.go
+2
-2
mic.go
domain/model/group_m/mic.go
+6
-2
No files found.
domain/cache/res_c/country.go
View file @
5a04f6b5
...
...
@@ -18,7 +18,7 @@ func GetCountryIconMap(model *domain.Model) (map[string]string, error) {
if
len
(
m
)
<=
0
{
return
map
[
string
]
string
{},
nil
}
//
SaveAllCountryIcon(model, m)
SaveAllCountryIcon
(
model
,
m
)
}
return
m
,
nil
}
...
...
@@ -47,7 +47,7 @@ func GetCountryAreaMap(model *domain.Model) (map[string]string, error) {
if
len
(
m
)
<=
0
{
return
map
[
string
]
string
{},
nil
}
//
SaveAllCountryArea(model, m)
SaveAllCountryArea
(
model
,
m
)
}
return
m
,
nil
}
...
...
domain/model/group_m/mic.go
View file @
5a04f6b5
...
...
@@ -876,8 +876,6 @@ var micGroupNumCache = gcache.New(10000).LRU().Build()
// 获取麦上有人的群组&&麦上的人数
// 带lru缓存,1min
func
GetMicHasInGroupNum
(
model
*
domain
.
Model
)
(
map
[
string
]
int64
,
error
)
{
m
:=
make
(
map
[
string
]
int64
)
return
m
,
nil
// get from cache
if
data
,
err
:=
micGroupNumCache
.
Get
(
micGroupNumKey
);
err
==
nil
{
//model.Log.Infof("GetMicHasInGroupNum cache hit:%v", data)
...
...
@@ -893,6 +891,12 @@ func GetMicHasInGroupNum(model *domain.Model) (map[string]int64, error) {
if
err
!=
nil
{
return
nil
,
myerr
.
WrapErr
(
err
)
}
// todo 临时处理
m
:=
make
(
map
[
string
]
int64
)
for
_
,
v
:=
range
groupUuids
{
m
[
v
]
=
10
}
return
m
,
nil
//
resultGroupUuids
:=
make
(
map
[
string
]
int64
,
len
(
groupUuids
))
//循环lua判断是否, 最后的保证,(猜想:真正麦上有人的群没有很多)
...
...
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