只处理跨服
This commit is contained in:
parent
97b1328fa4
commit
4088b98b64
@ -10,6 +10,7 @@ import (
|
|||||||
"go_dreamfactory/lego/sys/log"
|
"go_dreamfactory/lego/sys/log"
|
||||||
"go_dreamfactory/modules"
|
"go_dreamfactory/modules"
|
||||||
"go_dreamfactory/pb"
|
"go_dreamfactory/pb"
|
||||||
|
"go_dreamfactory/sys/db"
|
||||||
"strconv"
|
"strconv"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -133,6 +134,9 @@ func (this *Entertainment) ConsumXxlCard(session comm.IUserSession, card string)
|
|||||||
|
|
||||||
// 用户离线处理
|
// 用户离线处理
|
||||||
func (this *Entertainment) EventUserOffline(uid, sessionid string) {
|
func (this *Entertainment) EventUserOffline(uid, sessionid string) {
|
||||||
|
if !db.IsCross() {
|
||||||
|
return
|
||||||
|
}
|
||||||
this.Debugf("user offline: %s", uid)
|
this.Debugf("user offline: %s", uid)
|
||||||
if list, err := this.model.getEntertainmList(uid); err == nil {
|
if list, err := this.model.getEntertainmList(uid); err == nil {
|
||||||
if list.Roomid == "" { // 不在房间不处理
|
if list.Roomid == "" { // 不在房间不处理
|
||||||
|
Loading…
Reference in New Issue
Block a user