|
|
@ -2887,10 +2887,10 @@ function post_async($url="'http://47.111.118.107:9501/game-event/recharge'", $da
|
|
|
|
$client = new Client(['handler' => $handler]);
|
|
|
|
$client = new Client(['handler' => $handler]);
|
|
|
|
$client->postAsync($url, $data)->then(
|
|
|
|
$client->postAsync($url, $data)->then(
|
|
|
|
function (ResponseInterface $res) {
|
|
|
|
function (ResponseInterface $res) {
|
|
|
|
echo 'response: ' . $res->getBody(). PHP_EOL;
|
|
|
|
//echo 'response: ' . $res->getBody(). PHP_EOL;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
function (\Exception $e) {
|
|
|
|
function (\Exception $e) {
|
|
|
|
echo $e->getMessage() . PHP_EOL;
|
|
|
|
//echo $e->getMessage() . PHP_EOL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
->wait() // 同步
|
|
|
|
->wait() // 同步
|
|
|
|