...
|
...
|
@@ -145,9 +145,9 @@ class User extends Api |
|
|
}
|
|
|
$token = $this->getToken();
|
|
|
$param = [];
|
|
|
$param['access_token'] = $token;
|
|
|
$param['code'] = $code;
|
|
|
$wxapi = Http::post('https://api.weixin.qq.com/wxa/business/getuserphonenumber?access_token='.$token,$param);//请求openid
|
|
|
$param['code'] = '001WEdGa1d0KuC0PxPHa1Uac8F3WEdG9';
|
|
|
$param = json_encode($param);
|
|
|
$wxapi = Http::post('https://api.weixin.qq.com/wxa/business/getuserphonenumber?access_token='.$token,$param);
|
|
|
$wxapi = json_decode($wxapi,true);
|
|
|
if ($wxapi['errcode'] != 0){
|
|
|
$this->error($wxapi['errmsg']);
|
...
|
...
|
|