From e424d97c92fbfe7d15509a0269e6f5179c0e7d5a Mon Sep 17 00:00:00 2001 From: hu meng <354678192@qq.com> Date: Mon, 25 Oct 2021 16:26:54 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8D=E9=87=8D=E5=A4=8D=E9=89=B4?= =?UTF-8?q?=E6=9D=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GTClient.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/GTClient.php b/GTClient.php index 7cb98fa..9341809 100644 --- a/GTClient.php +++ b/GTClient.php @@ -90,7 +90,9 @@ public function __construct($domainUrl, $appkey, $appId, $masterSecret, $ssl = N } //鉴权 try { - $this->auth(); + if (empty($this->authToken)) { + $this->auth(); + } } catch (Exception $e) { echo $e->getMessage(); }