...
|
...
|
@@ -186,15 +186,13 @@ class LoginController extends AbstractAction |
|
|
$userInfo = $alipay->getUserInfo($access);
|
|
|
if ($userInfo && $userInfo['is_success'] === 'T' && isset($userInfo['response']['user_info']['user_name'])) {
|
|
|
$nickname = $userInfo['response']['user_info']['user_name'];
|
|
|
$alipayEmail = $userInfo['response']['user_info']['email'];
|
|
|
// $alipayEmail = $userInfo['response']['user_info']['email'];
|
|
|
}
|
|
|
var_dump($userInfo);
|
|
|
}
|
|
|
else {
|
|
|
$nickname = $_GET['real_name'];
|
|
|
$alipayEmail = isset($_GET['email']) ? $_GET['email'] : '';
|
|
|
// $alipayEmail = isset($_GET['email']) ? $_GET['email'] : '';
|
|
|
}
|
|
|
var_dump($access);
|
|
|
|
|
|
$result = LoginData::signinByOpenID($nickname, $access['user_id'], 'qq');
|
|
|
|
...
|
...
|
|