正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
@@ -405,6 +405,7 @@ class LoginController extends HomeBaseController | @@ -405,6 +405,7 @@ class LoginController extends HomeBaseController | ||
405 | if($user){ | 405 | if($user){ |
406 | $users['user_nickname'] = $info['nickname']; | 406 | $users['user_nickname'] = $info['nickname']; |
407 | $users['avatar'] = $info['headimgurl']; | 407 | $users['avatar'] = $info['headimgurl']; |
408 | + $users['last_login_time'] = time(); | ||
408 | $userModel->where(['wb_id'=>$info['openid'],'source'=>'微信'])->update($users); | 409 | $userModel->where(['wb_id'=>$info['openid'],'source'=>'微信'])->update($users); |
409 | }else{ | 410 | }else{ |
410 | $users['wb_id'] = $info['unionid']; | 411 | $users['wb_id'] = $info['unionid']; |
@@ -458,6 +459,7 @@ class LoginController extends HomeBaseController | @@ -458,6 +459,7 @@ class LoginController extends HomeBaseController | ||
458 | if($user){ | 459 | if($user){ |
459 | $users['user_nickname'] = $info['screen_name']; | 460 | $users['user_nickname'] = $info['screen_name']; |
460 | $users['avatar'] = $info['profile_image_url']; | 461 | $users['avatar'] = $info['profile_image_url']; |
462 | + $users['last_login_time'] = time(); | ||
461 | $userModel->where(['wb_id'=>$info['id'],'source'=>'微博'])->update($users); | 463 | $userModel->where(['wb_id'=>$info['id'],'source'=>'微博'])->update($users); |
462 | }else{ | 464 | }else{ |
463 | $users['wb_id'] = $info['id']; | 465 | $users['wb_id'] = $info['id']; |
-
请 注册 或 登录 后发表评论