|
@@ -19,6 +19,8 @@ func RecvMatchLudo(args []interface{}) {
|
|
|
//判断玩家是否有足够金币
|
|
|
coin := ud.(*msg.UserInfo).MCoin
|
|
|
matchConfig := gameRule.getMatchByLevle(m.RoomLevel)
|
|
|
+ fmt.Print("coin = %d \n", coin)
|
|
|
+ fmt.Print("matchConfig.enterNum = %d \n", matchConfig.enterNum)
|
|
|
if coin >= matchConfig.enterNum {
|
|
|
user.DecreaseUserCoin(matchConfig.enterNum, user_id)
|
|
|
go matchRoom(m, user_id, a)
|