|
@@ -25,11 +25,12 @@ func matchRoom(matchInfo *msg.MatchLudo, userId string, user_agent gate.Agent) {
|
|
|
if len(roomList) == 0 {
|
|
|
// Create new room if none available
|
|
|
room_info := CreateRoom(matchInfo, userId)
|
|
|
- print("没找到房间匹配一个!")
|
|
|
+ log.Error("没找到房间匹配一个!")
|
|
|
if room_info == nil {
|
|
|
sendMatchErrorMsg(user_agent, 101, "not find player")
|
|
|
}
|
|
|
} else {
|
|
|
+ log.Error("匹配到%d个房间", len(roomList))
|
|
|
// 如果房间具备开始的条件
|
|
|
isFullPlayer, err_info := JoinRoom(roomList[0], matchInfo, userId)
|
|
|
if err_info != nil {
|