This commit is contained in:
laodaming 2023-11-03 14:05:17 +08:00
parent 9403b72ad6
commit e434d11bd0

View File

@ -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
})
}