Forráskód Böngészése

更新匹配逻辑

郑晓宇 6 éve
szülő
commit
ec6e81e760
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      app/Console/Commands/gamematch.php

+ 1 - 1
app/Console/Commands/gamematch.php

@@ -55,7 +55,7 @@ class gamematch extends Command
                 Redis::del($data['level']);
                 $room = json_decode($room, 1);
                 //获取玩家ClientID
-                if($room['client_id'] == $data['client_id']){
+                if($room['client_id'] == $data['client_id'] || $room['user_id'] == $data['user_id']){
                     continue;
                 }
                 // $player_1_ = Gateway::getClientIdByUid($room['uid']);