...
|
...
|
@@ -193,7 +193,8 @@ class LoginController extends AbstractAction |
|
|
|
|
|
$result = array();
|
|
|
if (isset($realName, $email, $userId)) {
|
|
|
$result = LoginData::signinByOpenID($realName, $userId, 'alipay');
|
|
|
$shoppingKey = Helpers::getShoppingKeyByCookie();
|
|
|
$result = LoginData::signinByOpenID($realName, $userId, 'alipay', $shoppingKey);
|
|
|
}
|
|
|
|
|
|
//判定是否需要绑定手机号
|
...
|
...
|
@@ -229,7 +230,8 @@ class LoginController extends AbstractAction |
|
|
$partnerInfo = $qqconnect->getUserInfo($access);
|
|
|
$result = array();
|
|
|
if (!empty($partnerInfo) && isset($partnerInfo['nickname'])) {
|
|
|
$result = LoginData::signinByOpenID($partnerInfo['nickname'], $access['openid'], 'qq');
|
|
|
$shoppingKey = Helpers::getShoppingKeyByCookie();
|
|
|
$result = LoginData::signinByOpenID($partnerInfo['nickname'], $access['openid'], 'qq', $shoppingKey);
|
|
|
}
|
|
|
|
|
|
//判定是否需要绑定手机号
|
...
|
...
|
@@ -266,7 +268,8 @@ class LoginController extends AbstractAction |
|
|
|
|
|
$result = array();
|
|
|
if ($partnerInfo && is_array($partnerInfo)) {
|
|
|
$result = LoginData::signinByOpenID($partnerInfo['screen_name'], $access['uid'], 'sina');
|
|
|
$shoppingKey = Helpers::getShoppingKeyByCookie();
|
|
|
$result = LoginData::signinByOpenID($partnerInfo['screen_name'], $access['uid'], 'sina', $shoppingKey);
|
|
|
}
|
|
|
//判定是否需要绑定手机号
|
|
|
if (isset($result['data']['is_bind']) && $result['data']['is_bind'] == 'N') {
|
...
|
...
|
|