fix
This commit is contained in:
parent
9403b72ad6
commit
e434d11bd0
|
@ -51,8 +51,14 @@ func (l *GetStatLogic) GetStat(req *types.GetStatReq, userinfo *auth.UserInfo) (
|
|||
}
|
||||
}
|
||||
} else { //不指定用户
|
||||
i := 0
|
||||
mapUserWsStat.Range(func(key, value any) bool {
|
||||
//不指定最多获取1000个用户
|
||||
if i > 1000 {
|
||||
return false
|
||||
}
|
||||
userStat[key.(string)] = value
|
||||
i++
|
||||
return true
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user