diff --git a/GTBaseApi.php b/GTBaseApi.php index 0f64008..1408eba 100644 --- a/GTBaseApi.php +++ b/GTBaseApi.php @@ -34,7 +34,7 @@ private function httpRequest($api, $params, $method, $gzip = false) if ($rep != null) { if ('10001' == $rep['code']) { try { - if ($this->gtClient->auth()) { + if ($this->gtClient->getAuthToken()) { $rep = GTHttpManager::httpRequest($this->getUrl($api), $params, $this->buildHead(), $gzip, $method); } } catch (GTException $e) { @@ -73,4 +73,4 @@ private function getUrl($api) { return $this->gtClient->getHost() . "/v2/" . $this->gtClient->getAppId() . $api; } -} \ No newline at end of file +}