fix re init guzzle client bux
This commit is contained in:
@@ -42,6 +42,13 @@ class Site
|
||||
$this->initClient();
|
||||
}
|
||||
|
||||
/**
|
||||
* Undocumented variable
|
||||
*
|
||||
* @var boolean
|
||||
*/
|
||||
public $boolReInitClient = false;
|
||||
|
||||
/**
|
||||
* Undocumented function
|
||||
*/
|
||||
@@ -136,6 +143,10 @@ class Site
|
||||
*/
|
||||
public function getClient(): Client
|
||||
{
|
||||
if ($this->boolReInitClient) {
|
||||
$this->initClient();
|
||||
}
|
||||
|
||||
return $this->Client;
|
||||
}
|
||||
|
||||
|
||||
@@ -27,6 +27,13 @@ class Site extends ZwSite
|
||||
*/
|
||||
protected $strSiteCode = 'zw630';
|
||||
|
||||
/**
|
||||
* Undocumented variable
|
||||
*
|
||||
* @var boolean
|
||||
*/
|
||||
public $boolReInitClient = false;
|
||||
|
||||
/**
|
||||
* Undocumented function
|
||||
*/
|
||||
|
||||
@@ -26,6 +26,13 @@ class Site extends ZwSite
|
||||
*/
|
||||
protected $strSiteCode = 'zw';
|
||||
|
||||
/**
|
||||
* Undocumented variable
|
||||
*
|
||||
* @var boolean
|
||||
*/
|
||||
public $boolReInitClient = true;
|
||||
|
||||
/**
|
||||
* Undocumented function
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user