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;