Commit 9ab7eebe by 庄欣

旅拍城市

parent 81b5eb5c
...@@ -14,7 +14,7 @@ class CurlClient ...@@ -14,7 +14,7 @@ class CurlClient
protected $url; protected $url;
private $format = ""; private $format = "";
protected $header = []; protected $header = [];
protected $base = "http://api.yuepai.com/"; protected $base;
protected $Exceptions = [ protected $Exceptions = [
HttpStatus::HttpNotFound => \App\Exceptions\ApiNotFound::class, HttpStatus::HttpNotFound => \App\Exceptions\ApiNotFound::class,
...@@ -25,6 +25,10 @@ class CurlClient ...@@ -25,6 +25,10 @@ class CurlClient
HttpStatus::HttpTimeout => \App\Exceptions\ApiTimeout::class, HttpStatus::HttpTimeout => \App\Exceptions\ApiTimeout::class,
]; ];
public function __construct()
{
$this->base = app("apiurl");
}
public function setUrl($url) public function setUrl($url)
{ {
......
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