正在显示
2 个修改的文件
包含
4 行增加
和
9 行删除
| @@ -27,13 +27,8 @@ class Client | @@ -27,13 +27,8 @@ class Client | ||
| 27 | */ | 27 | */ |
| 28 | protected function __construct(RequestInterface $request) | 28 | protected function __construct(RequestInterface $request) |
| 29 | { | 29 | { |
| 30 | - $clientConfig = (array)config('customs.client', [ | ||
| 31 | - 'timeout' => 30 | ||
| 32 | - ]); | ||
| 33 | - $config = $clientConfig + [ | ||
| 34 | - 'base_uri' => config('customs.host') | ||
| 35 | - ]; | ||
| 36 | - $this->guzzleHttp = new GuzzleHttp($config); | 30 | + $clientConfig = (array)config('customs.client'); |
| 31 | + $this->guzzleHttp = new GuzzleHttp($clientConfig); | ||
| 37 | $this->request = $request; | 32 | $this->request = $request; |
| 38 | } | 33 | } |
| 39 | 34 |
-
请 注册 或 登录 后发表评论