|
@@ -23,7 +23,7 @@ func RecvMatchLudo(args []interface{}) {
|
|
func matchRoom(matchInfo *msg.MatchLudo, userId string, user_agent gate.Agent) {
|
|
func matchRoom(matchInfo *msg.MatchLudo, userId string, user_agent gate.Agent) {
|
|
fmt.Printf("matchRoom\n")
|
|
fmt.Printf("matchRoom\n")
|
|
roomList := GetRoomsByLevel(matchInfo, msg.RoomStatus_AWAIT)
|
|
roomList := GetRoomsByLevel(matchInfo, msg.RoomStatus_AWAIT)
|
|
-
|
|
|
|
|
|
+ fmt.Printf("matchRoom123\n")
|
|
if len(roomList) == 0 {
|
|
if len(roomList) == 0 {
|
|
// Create new room if none available
|
|
// Create new room if none available
|
|
fmt.Printf("没找到房间匹配一个!\n")
|
|
fmt.Printf("没找到房间匹配一个!\n")
|