From e9794c98de5e545bb51ac0cf7ead95e6d87229f2 Mon Sep 17 00:00:00 2001 From: lscho Date: Mon, 26 Jun 2017 16:57:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BC=81=E4=B8=9A=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E8=8E=B7=E5=8F=96=E4=B8=8D=E5=88=B0access=5Ftoken?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qywechat.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qywechat.class.php b/qywechat.class.php index 1b63f2c..a5f41da 100644 --- a/qywechat.class.php +++ b/qywechat.class.php @@ -894,7 +894,7 @@ public function checkAuth($appid='',$appsecret='',$token=''){ if ($result) { $json = json_decode($result,true); - if (!$json || isset($json['errcode'])) { + if (!$json || !empty($json['errcode'])) { $this->errCode = $json['errcode']; $this->errMsg = $json['errmsg']; return false;