|
@@ -51,6 +51,8 @@ class Login extends Controller{
|
|
|
$data = $this->httpGet($url);
|
|
|
$data = json_decode($data, true);
|
|
|
|
|
|
+ print_r($data);die;
|
|
|
+
|
|
|
if (isset($data['access_token']) && $data['access_token']) {
|
|
|
$url = 'https://api.weixin.qq.com/sns/userinfo?access_token=' . $data['access_token'] . '&openid=' . $data['openid'] . '&lang=zh_CN';
|
|
|
|