diff --git a/Wechat/WechatUser.php b/Wechat/WechatUser.php index 9205968..4c72515 100644 --- a/Wechat/WechatUser.php +++ b/Wechat/WechatUser.php @@ -93,6 +93,7 @@ public function getUserInfo($openid) { } $result = Tools::httpGet(self::API_URL_PREFIX . self::USER_INFO_URL . "access_token={$this->access_token}&openid={$openid}"); if ($result) { + $result = substr(str_replace('\"', '"', json_encode($result)), 1, -1); $json = json_decode($result, true); if (isset($json['errcode'])) { $this->errCode = $json['errcode'];