Explorar o código

更新匹配逻辑

郑晓宇 %!s(int64=6) %!d(string=hai) anos
pai
achega
ec6e81e760
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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']);