...
|
...
|
@@ -368,7 +368,6 @@ class LoginController extends HomeBaseController |
|
|
$json_arr = json_decode($res,true);
|
|
|
|
|
|
if(!isset($json_arr['access_token'])&&empty($json_arr['access_token'])){
|
|
|
//用户取消登录
|
|
|
$this->redirect('/portal/login/thirdLogin');
|
|
|
}
|
|
|
$token = $json_arr['access_token'];
|
...
|
...
|
@@ -405,8 +404,7 @@ class LoginController extends HomeBaseController |
|
|
|
|
|
//第三方微信移动端网页登录
|
|
|
public function wx_login_mobile(){
|
|
|
// $code = $this->request->get('code');
|
|
|
$code = '021XhRZZ1QOdAS0AqPYZ1IGNZZ1XhRZt';//测试过期code
|
|
|
$code = $this->request->get('code');
|
|
|
$url = 'https://api.weixin.qq.com/sns/oauth2/access_token?appid='.$this->appkey3.'&secret='.$this->appsecret3.'&code='.$code.'&grant_type=authorization_code';
|
|
|
$res = $this->http_get($url);
|
|
|
$json_arr = json_decode($res,true);
|
...
|
...
|
|