From eb265f69e8ea473ae79767a6430e2ffdaa1c43a4 Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Wed, 20 Nov 2024 10:39:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E7=BA=BF=E4=BA=BA=E6=95=B0=E8=BF=87?= =?UTF-8?q?=E6=BB=A4=E8=B6=85=E7=AE=A1=E5=B9=B3=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/playeronline.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worldsrv/playeronline.go b/worldsrv/playeronline.go index 14ef76d..6c0d77a 100644 --- a/worldsrv/playeronline.go +++ b/worldsrv/playeronline.go @@ -5,6 +5,7 @@ import ( "mongo.games.com/goserver/core/module" + "mongo.games.com/game/common" "mongo.games.com/game/model" "mongo.games.com/game/mq" ) @@ -34,7 +35,7 @@ func (p *PlayerOnlineEvent) Update() { p.Check = false onlineCh := map[string]map[string]int{} 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] if !ok { onlineCh[player.Platform] = map[string]int{}