!1 修复使用 getUserInfo 方法在获取单个粉丝用户信息时指定语言版本无效的问题

Merge pull request !1 from Tian/master
This commit is contained in:
Anyon 2019-10-29 17:14:13 +08:00 committed by Gitee
commit 07d3348360

View File

@ -49,7 +49,7 @@ class User extends BasicWeChat
*/
public function getUserInfo($openid, $lang = 'zh_CN')
{
$url = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid={$openid}&lang=zh_CN";
$url = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid={$openid}&lang={$lang}";
$this->registerApi($url, __FUNCTION__, func_get_args());
return $this->httpGetForJson($url);
}