郑晓宇 пре 6 година
родитељ
комит
0e56bb4389
2 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 0
      app/Console/Commands/gamematch.php
  2. 0 1
      app/Console/Commands/robot.php

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

@@ -55,6 +55,7 @@ class gamematch extends Command
                         $robot = Redis::lpop('robot_list');
                         $message = [
                             "type" => 'gotomatch',
+                            "client_id" => $robot,
                         ];
                         if($robot && Gateway::isOnline($robot)){
                             Gateway::sendToClient($robot, json_encode($message));

+ 0 - 1
app/Console/Commands/robot.php

@@ -90,7 +90,6 @@ class robot extends Command
                 }
                 //唤起匹配
                 if($json_data->type == 'gotomatch'){
-                    var_dump($json_data);
                     $response = $client->request('POST', 'http://183.234.61.252:8090/Home/Game/Join',[
                         'form_params' => [
                             'client_id' => $json_data->client_id,