在线人数过滤超管平台
This commit is contained in:
parent
aaf417c9fe
commit
eb265f69e8
|
@ -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{}
|
||||||
|
|
Loading…
Reference in New Issue