From 43bf643ceeaab7ff0d4d595b1ee08ab7f1717ba5 Mon Sep 17 00:00:00 2001 From: TianQi <9094728@qq.com> Date: Fri, 25 Oct 2019 22:55:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BD=BF=E7=94=A8=20getUserI?= =?UTF-8?q?nfo=20=E6=96=B9=E6=B3=95=E5=9C=A8=E8=8E=B7=E5=8F=96=E5=8D=95?= =?UTF-8?q?=E4=B8=AA=E7=B2=89=E4=B8=9D=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=97=B6=E6=8C=87=E5=AE=9A=E8=AF=AD=E8=A8=80=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E6=97=A0=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WeChat/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }