From 4088b98b644c53247c12037057a0fa0e3983b38e Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Thu, 21 Dec 2023 10:15:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AA=E5=A4=84=E7=90=86=E8=B7=A8=E6=9C=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/entertainment/module.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/entertainment/module.go b/modules/entertainment/module.go index 95cb7a71a..b732ee265 100644 --- a/modules/entertainment/module.go +++ b/modules/entertainment/module.go @@ -10,6 +10,7 @@ import ( "go_dreamfactory/lego/sys/log" "go_dreamfactory/modules" "go_dreamfactory/pb" + "go_dreamfactory/sys/db" "strconv" ) @@ -133,6 +134,9 @@ func (this *Entertainment) ConsumXxlCard(session comm.IUserSession, card string) // 用户离线处理 func (this *Entertainment) EventUserOffline(uid, sessionid string) { + if !db.IsCross() { + return + } this.Debugf("user offline: %s", uid) if list, err := this.model.getEntertainmList(uid); err == nil { if list.Roomid == "" { // 不在房间不处理