|
@@ -20,7 +20,8 @@ func RecvMatchLudo(args []interface{}) {
|
|
coin := ud.(*msg.UserInfo).MCoin
|
|
coin := ud.(*msg.UserInfo).MCoin
|
|
matchConfig := gameRule.getMatchByLevle(m.RoomLevel)
|
|
matchConfig := gameRule.getMatchByLevle(m.RoomLevel)
|
|
fmt.Printf("coin = %d \n", coin)
|
|
fmt.Printf("coin = %d \n", coin)
|
|
- fmt.Printf("matchConfig.enterNum = %d \n", matchConfig.enterNum)
|
|
|
|
|
|
+ fmt.Printf("RoomLevel = %d \n", m.RoomLevel)
|
|
|
|
+ fmt.Printf("matchConfig.enterNum = %v \n", matchConfig.enterNum)
|
|
if coin >= matchConfig.enterNum {
|
|
if coin >= matchConfig.enterNum {
|
|
user.DecreaseUserCoin(matchConfig.enterNum, user_id)
|
|
user.DecreaseUserCoin(matchConfig.enterNum, user_id)
|
|
go matchRoom(m, user_id, a)
|
|
go matchRoom(m, user_id, a)
|