fix re init guzzle client bux

This commit is contained in:
Default
2025-04-29 17:34:29 +08:00
parent 2bfa178e8d
commit d431fdac55
3 changed files with 25 additions and 0 deletions

View File

@@ -42,6 +42,13 @@ class Site
$this->initClient(); $this->initClient();
} }
/**
* Undocumented variable
*
* @var boolean
*/
public $boolReInitClient = false;
/** /**
* Undocumented function * Undocumented function
*/ */
@@ -136,6 +143,10 @@ class Site
*/ */
public function getClient(): Client public function getClient(): Client
{ {
if ($this->boolReInitClient) {
$this->initClient();
}
return $this->Client; return $this->Client;
} }

View File

@@ -27,6 +27,13 @@ class Site extends ZwSite
*/ */
protected $strSiteCode = 'zw630'; protected $strSiteCode = 'zw630';
/**
* Undocumented variable
*
* @var boolean
*/
public $boolReInitClient = false;
/** /**
* Undocumented function * Undocumented function
*/ */

View File

@@ -26,6 +26,13 @@ class Site extends ZwSite
*/ */
protected $strSiteCode = 'zw'; protected $strSiteCode = 'zw';
/**
* Undocumented variable
*
* @var boolean
*/
public $boolReInitClient = true;
/** /**
* Undocumented function * Undocumented function
*/ */