|
@@ -189,8 +189,8 @@ class Login extends Base
|
|
|
case 4:// qq授权app
|
|
|
if($member && $member->qq_openid) $this->error('该手机号已绑定QQ'.$bind_type);
|
|
|
if(empty($access_token)) $this->error('参数错误');
|
|
|
- $res = http_curl('http://graph.qq.com/oauth2.0/me?access_token='.$access_token.'&unionid=1'.'&fmt=json');
|
|
|
- var_dump($res);
|
|
|
+ $res = http_curl('https://graph.qq.com/oauth2.0/me?access_token='.$access_token.'&unionid=1'.'&fmt=json');
|
|
|
+ var_dump('https://graph.qq.com/oauth2.0/me?access_token='.$access_token.'&unionid=1'.'&fmt=json');
|
|
|
if(!$res || !isset($res['unionid'])) $this->error('获取unionid有误');
|
|
|
$bind_data['qq_unionid'] = $res['unionid'];
|
|
|
if($is_new) $bind_data['name'] = $nickname;
|