@@ -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));
@@ -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,