diff --git a/code/app/task/crawler/zw/page/Site.php b/code/app/task/crawler/zw/page/Site.php index b161e2f..6b51a10 100644 --- a/code/app/task/crawler/zw/page/Site.php +++ b/code/app/task/crawler/zw/page/Site.php @@ -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; } diff --git a/code/app/task/crawler/zw630/page/Site.php b/code/app/task/crawler/zw630/page/Site.php index a3791d5..9c7b5fc 100644 --- a/code/app/task/crawler/zw630/page/Site.php +++ b/code/app/task/crawler/zw630/page/Site.php @@ -27,6 +27,13 @@ class Site extends ZwSite */ protected $strSiteCode = 'zw630'; + /** + * Undocumented variable + * + * @var boolean + */ + public $boolReInitClient = false; + /** * Undocumented function */ diff --git a/code/app/task/crawler/zw74/page/Site.php b/code/app/task/crawler/zw74/page/Site.php index 298a260..806316c 100644 --- a/code/app/task/crawler/zw74/page/Site.php +++ b/code/app/task/crawler/zw74/page/Site.php @@ -26,6 +26,13 @@ class Site extends ZwSite */ protected $strSiteCode = 'zw'; + /** + * Undocumented variable + * + * @var boolean + */ + public $boolReInitClient = true; + /** * Undocumented function */