在线人数过滤超管平台

This commit is contained in:
sk 2024-11-20 10:39:40 +08:00
parent aaf417c9fe
commit eb265f69e8
1 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ import (
"mongo.games.com/goserver/core/module" "mongo.games.com/goserver/core/module"
"mongo.games.com/game/common"
"mongo.games.com/game/model" "mongo.games.com/game/model"
"mongo.games.com/game/mq" "mongo.games.com/game/mq"
) )
@ -34,7 +35,7 @@ func (p *PlayerOnlineEvent) Update() {
p.Check = false p.Check = false
onlineCh := map[string]map[string]int{} onlineCh := map[string]map[string]int{}
for _, player := range PlayerMgrSington.sidMap { for _, player := range PlayerMgrSington.sidMap {
if player != nil && !player.IsRob && player.IsOnLine() { if player != nil && !player.IsRob && player.IsOnLine() && player.Platform != common.Platform_Rob && player.Channel != common.Channel_Rob {
info, ok := onlineCh[player.Platform] info, ok := onlineCh[player.Platform]
if !ok { if !ok {
onlineCh[player.Platform] = map[string]int{} onlineCh[player.Platform] = map[string]int{}