...
|
...
|
@@ -405,6 +405,7 @@ class LoginController extends HomeBaseController |
|
|
if($user){
|
|
|
$users['user_nickname'] = $info['nickname'];
|
|
|
$users['avatar'] = $info['headimgurl'];
|
|
|
$users['last_login_time'] = time();
|
|
|
$userModel->where(['wb_id'=>$info['openid'],'source'=>'微信'])->update($users);
|
|
|
}else{
|
|
|
$users['wb_id'] = $info['unionid'];
|
...
|
...
|
@@ -458,6 +459,7 @@ class LoginController extends HomeBaseController |
|
|
if($user){
|
|
|
$users['user_nickname'] = $info['screen_name'];
|
|
|
$users['avatar'] = $info['profile_image_url'];
|
|
|
$users['last_login_time'] = time();
|
|
|
$userModel->where(['wb_id'=>$info['id'],'source'=>'微博'])->update($users);
|
|
|
}else{
|
|
|
$users['wb_id'] = $info['id'];
|
...
|
...
|
|