diff --git a/WeChat/User.php b/WeChat/User.php index c362ccd..2156cf7 100644 --- a/WeChat/User.php +++ b/WeChat/User.php @@ -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); }