作者 景龙
1 个管道 的构建 通过 耗费 0 秒

调试微信登录

@@ -400,7 +400,6 @@ class LoginController extends HomeBaseController @@ -400,7 +400,6 @@ class LoginController extends HomeBaseController
400 //获取微博id,昵称,头像 400 //获取微博id,昵称,头像
401 $userModel = new UserModel(); 401 $userModel = new UserModel();
402 $ip = get_client_ip(); 402 $ip = get_client_ip();
403 - $users['last_login_time'] = time();  
404 $users['last_login_ip'] = $ip; 403 $users['last_login_ip'] = $ip;
405 if($user){ 404 if($user){
406 $users['user_nickname'] = $info['nickname']; 405 $users['user_nickname'] = $info['nickname'];
@@ -454,7 +453,6 @@ class LoginController extends HomeBaseController @@ -454,7 +453,6 @@ class LoginController extends HomeBaseController
454 //获取微博id,昵称,头像 453 //获取微博id,昵称,头像
455 $userModel = new UserModel(); 454 $userModel = new UserModel();
456 $ip = get_client_ip(); 455 $ip = get_client_ip();
457 - $users['last_login_time'] = time();  
458 $users['last_login_ip'] = $ip; 456 $users['last_login_ip'] = $ip;
459 if($user){ 457 if($user){
460 $users['user_nickname'] = $info['screen_name']; 458 $users['user_nickname'] = $info['screen_name'];