@@ -32,7 +32,6 @@ func matchRoom(matchInfo *msg.MatchLudo, userId string, user_agent gate.Agent) {
sendMatchErrorMsg(user_agent, 101, "not find player")
}
} else {
- fmt.Printf("roomList: %+v\n", roomList)
log.Error("匹配到%d个房间", len(roomList))
// 如果房间具备开始的条件
isFullPlayer, err_info := JoinRoom(roomList[0], matchInfo, userId)
@@ -35,14 +35,18 @@ func enterHall(args []interface{}) {
return
//如果玩家在某个游戏里,就进行重连
- if info.RoomId != 0 {
- //进行重连逻辑
- } else {
- a.WriteMsg(&msg.ResEnterHall{
- Success: true,
- ErrMsg: nil,
- })
- }
+ // if info.RoomId != 0 {
+ // //进行重连逻辑
+ // } else {
+ // a.WriteMsg(&msg.ResEnterHall{
+ // Success: true,
+ // ErrMsg: nil,
+ // })
+ // }
+ a.WriteMsg(&msg.ResEnterHall{
+ Success: true,
+ ErrMsg: nil,
+ })
log.Debug("enterHallHandler, msg: %v, agent: %v", m, a)