|
@@ -78,8 +78,8 @@ class robot extends Command
|
|
|
]);
|
|
|
// $robot = $response->getBody()->getContents();
|
|
|
|
|
|
- // $con = new AsyncTcpConnection('ws://183.234.61.252:8282');
|
|
|
- $con = new AsyncTcpConnection('ws://127.0.0.1:8282');
|
|
|
+ $con = new AsyncTcpConnection('ws://183.234.61.252:8282');
|
|
|
+ // $con = new AsyncTcpConnection('ws://127.0.0.1:8282');
|
|
|
$con->onConnect = function($con) use($client) {
|
|
|
};
|
|
|
$con->onMessage = function($con, $data) use($client, &$room_id, &$client_id, $user, $http_addr){
|
|
@@ -96,7 +96,6 @@ class robot extends Command
|
|
|
]
|
|
|
]);
|
|
|
$result = json_decode($response->getBody()->getContents());
|
|
|
- echo $result->msg;
|
|
|
if($result->code == 400 || ($result->code == 0 && $result->info->in_game == 1)){
|
|
|
return 0;
|
|
|
}
|