只处理跨服

This commit is contained in:
meixiongfeng 2023-12-21 10:15:35 +08:00
parent 97b1328fa4
commit 4088b98b64

View File

@ -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 == "" { // 不在房间不处理