Showing
1 changed file
with
2 additions
and
3 deletions
@@ -32,7 +32,7 @@ class LoginController extends AbstractAction | @@ -32,7 +32,7 @@ class LoginController extends AbstractAction | ||
32 | 'registerUrl' => '/reg.html', // 注册的URL链接 | 32 | 'registerUrl' => '/reg.html', // 注册的URL链接 |
33 | 'aliLoginUrl' => '/passport/login/alipay', // 支付宝快捷登录的URL链接 | 33 | 'aliLoginUrl' => '/passport/login/alipay', // 支付宝快捷登录的URL链接 |
34 | 'weiboLoginUrl' => '/passport/login/sina', // 微博登录的URL链接 | 34 | 'weiboLoginUrl' => '/passport/login/sina', // 微博登录的URL链接 |
35 | - 'qqLoginUrl' => '/passport/login/qq', // 腾讯QQ登录的URL链接 | 35 | + 'qqLoginUrl' => '/passport/auth/qq', // 腾讯QQ登录的URL链接 |
36 | 'internationalUrl' => '/login.html', // 国际号登录的URL链接 | 36 | 'internationalUrl' => '/login.html', // 国际号登录的URL链接 |
37 | 'phoneRetriveUrl' => '/passport/back/mobile', // 通过手机号找回密码的URL链接 | 37 | 'phoneRetriveUrl' => '/passport/back/mobile', // 通过手机号找回密码的URL链接 |
38 | 'emailRetriveUrl' => '/passport/back/email', // 通过邮箱找回密码的URL链接 | 38 | 'emailRetriveUrl' => '/passport/back/email', // 通过邮箱找回密码的URL链接 |
@@ -209,9 +209,8 @@ class LoginController extends AbstractAction | @@ -209,9 +209,8 @@ class LoginController extends AbstractAction | ||
209 | $access = $qqconnect->getAccessToken(); | 209 | $access = $qqconnect->getAccessToken(); |
210 | /* 获取QQ腾讯用户的详细信息 */ | 210 | /* 获取QQ腾讯用户的详细信息 */ |
211 | $partnerInfo = $qqconnect->getUserInfo($access); | 211 | $partnerInfo = $qqconnect->getUserInfo($access); |
212 | - | ||
213 | $result = array(); | 212 | $result = array(); |
214 | - if ($partnerInfo && is_array($partnerInfo)) { | 213 | + if (!empty($partnerInfo) && isset($partnerInfo['nickname'])) { |
215 | $result = LoginData::signinByOpenID($partnerInfo['nickname'], $access['openid'], 'qq'); | 214 | $result = LoginData::signinByOpenID($partnerInfo['nickname'], $access['openid'], 'qq'); |
216 | } | 215 | } |
217 | 216 |
-
Please register or login to post a comment