|
|
@ -122,6 +122,10 @@ func EnterGame(ctx *node.Context) { |
|
|
|
if playerControl.CheatType != 0 { |
|
|
|
log.Debug("EnterGame user:", user.Nickname, "在房间中 但还是单分一个房间出来") |
|
|
|
roomObj = room.Gh.CopyRoom(Ctx.Request.UID, GameProxy) |
|
|
|
|
|
|
|
log.Debug("UpdateCtx EnterGame ", Ctx.Request.UID, " UserId", Ctx.Request.UserId, " UID", Ctx.Request.UID, " Request", Ctx.Request) |
|
|
|
roomObj.OnGetRoomInfo(Ctx.Request.UID, Ctx) |
|
|
|
return |
|
|
|
} else { |
|
|
|
log.Debug("玩家", Ctx.Request.UID, " name:", user.Nickname, "====>在房间中 发送最新的房间信息") |
|
|
|
|
|
|
@ -171,7 +175,6 @@ func EnterGame(ctx *node.Context) { |
|
|
|
room.Gh.RhbEx[Ctx.Request.UID] = roomObj.GetRId() |
|
|
|
roomObj.OnGetRoomInfo(Ctx.Request.UID, Ctx) |
|
|
|
|
|
|
|
roomObj.OnGetRoomInfo(Ctx.Request.UID, Ctx) |
|
|
|
NotifySitDown := &protocol.NotifyDTSitDown{ |
|
|
|
Uid: _player.Uid, |
|
|
|
RoomID: req.RoomID, |
|
|
@ -261,7 +264,7 @@ func UserBet(ctx *node.Context) { // 用户下注 |
|
|
|
|
|
|
|
r := room.Gh.GetRoomObject(Ctx.Request.UID) |
|
|
|
if r == nil { |
|
|
|
log.Error("StrokeCard==>>>>>>,不在该房间") |
|
|
|
log.Error("StrokeCard==>>>>>>,不在该房间 UID ", Ctx.Request.UID, " UserId ", ctx.Request.UserId, " Request ", ctx.Request) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|