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