From f04ee3c775ce5e8a9a1f5ed888e679690f9f8841 Mon Sep 17 00:00:00 2001 From: Joshua Li Date: Tue, 27 Jun 2017 15:01:39 +0800 Subject: [PATCH] Update qywechat.class.php --- qywechat.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qywechat.class.php b/qywechat.class.php index 1b63f2c9..a5f41dac 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;