|
@@ -158,8 +158,8 @@ class User extends Api
|
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);//只获取页面内容,但不输出
|
|
|
$str = curl_exec($ch); //执行访问,返回结果
|
|
|
curl_close($ch); //关闭curl,释放资源
|
|
|
- dump($str);
|
|
|
$openid = json_decode($str, true);
|
|
|
+ dump($openid);die;
|
|
|
$data["user_openid"] = $openid["openid"];
|
|
|
dump($data);
|
|
|
}
|