正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
@@ -145,9 +145,9 @@ class User extends Api | @@ -145,9 +145,9 @@ class User extends Api | ||
145 | } | 145 | } |
146 | $token = $this->getToken(); | 146 | $token = $this->getToken(); |
147 | $param = []; | 147 | $param = []; |
148 | - $param['access_token'] = $token; | ||
149 | - $param['code'] = $code; | ||
150 | - $wxapi = Http::post('https://api.weixin.qq.com/wxa/business/getuserphonenumber?access_token='.$token,$param);//请求openid | 148 | + $param['code'] = '001WEdGa1d0KuC0PxPHa1Uac8F3WEdG9'; |
149 | + $param = json_encode($param); | ||
150 | + $wxapi = Http::post('https://api.weixin.qq.com/wxa/business/getuserphonenumber?access_token='.$token,$param); | ||
151 | $wxapi = json_decode($wxapi,true); | 151 | $wxapi = json_decode($wxapi,true); |
152 | if ($wxapi['errcode'] != 0){ | 152 | if ($wxapi['errcode'] != 0){ |
153 | $this->error($wxapi['errmsg']); | 153 | $this->error($wxapi['errmsg']); |
-
请 注册 或 登录 后发表评论