|
@@ -56,6 +56,7 @@ class Login extends BaseController
|
|
|
}
|
|
}
|
|
|
$weixinA = new weixina();
|
|
$weixinA = new weixina();
|
|
|
$data=$weixinA->auth_code2Session($code);//新版
|
|
$data=$weixinA->auth_code2Session($code);//新版
|
|
|
|
|
+ var_dump($data);
|
|
|
if(empty($data) || empty($data['openid'])) {
|
|
if(empty($data) || empty($data['openid'])) {
|
|
|
return app('json')->fail("微信授权登录失败,关闭页面重新授权".$weixinA->error);
|
|
return app('json')->fail("微信授权登录失败,关闭页面重新授权".$weixinA->error);
|
|
|
}
|
|
}
|