Showing
1 changed file
with
2 additions
and
4 deletions
@@ -186,15 +186,13 @@ class LoginController extends AbstractAction | @@ -186,15 +186,13 @@ class LoginController extends AbstractAction | ||
186 | $userInfo = $alipay->getUserInfo($access); | 186 | $userInfo = $alipay->getUserInfo($access); |
187 | if ($userInfo && $userInfo['is_success'] === 'T' && isset($userInfo['response']['user_info']['user_name'])) { | 187 | if ($userInfo && $userInfo['is_success'] === 'T' && isset($userInfo['response']['user_info']['user_name'])) { |
188 | $nickname = $userInfo['response']['user_info']['user_name']; | 188 | $nickname = $userInfo['response']['user_info']['user_name']; |
189 | - $alipayEmail = $userInfo['response']['user_info']['email']; | 189 | + // $alipayEmail = $userInfo['response']['user_info']['email']; |
190 | } | 190 | } |
191 | - var_dump($userInfo); | ||
192 | } | 191 | } |
193 | else { | 192 | else { |
194 | $nickname = $_GET['real_name']; | 193 | $nickname = $_GET['real_name']; |
195 | - $alipayEmail = isset($_GET['email']) ? $_GET['email'] : ''; | 194 | + // $alipayEmail = isset($_GET['email']) ? $_GET['email'] : ''; |
196 | } | 195 | } |
197 | - var_dump($access); | ||
198 | 196 | ||
199 | $result = LoginData::signinByOpenID($nickname, $access['user_id'], 'qq'); | 197 | $result = LoginData::signinByOpenID($nickname, $access['user_id'], 'qq'); |
200 | 198 |
-
Please register or login to post a comment