...
|
...
|
@@ -65,8 +65,11 @@ class User extends Backend |
|
|
if(empty($user)){
|
|
|
$params['is_default'] = true;
|
|
|
}else{
|
|
|
$user = $user->toArray();
|
|
|
if(empty($user['username']) || empty($user['nickname'])){
|
|
|
$this->model->where(['id'=>$user['id']])->delete();
|
|
|
$params['is_default'] = true;
|
|
|
$params['openid'] = $user['openid'];
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -329,6 +332,7 @@ class User extends Backend |
|
|
$v['is_default'] = true;
|
|
|
}else{
|
|
|
if(empty($user['username']) || empty($user['nickname'])){
|
|
|
$this->model->where(['id'=>$user['id']])->delete();
|
|
|
$v['is_default'] = true;
|
|
|
}
|
|
|
}
|
...
|
...
|
|