Commit 931dc3b5 authored by tufengqi's avatar tufengqi

客户端新增guzzle

parent 89ea8f5a
...@@ -219,7 +219,7 @@ class TGuzzleClient extends \Thrift\Transport\TTransport ...@@ -219,7 +219,7 @@ class TGuzzleClient extends \Thrift\Transport\TTransport
], ],
'timeout' => number_format($this->timeout_ / 1000, 1) // s 'timeout' => number_format($this->timeout_ / 1000, 1) // s
]; ];
$client = new GuzzleHttp\Client(); $client = new \GuzzleHttp\Client();
$promise = $client->sendAsync($request, $options)->then(function ($response) { $promise = $client->sendAsync($request, $options)->then(function ($response) {
$this->response_ = $response->getBody(); $this->response_ = $response->getBody();
echo 'I completed! ' . $this->response_; echo 'I completed! ' . $this->response_;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment