...
|
...
|
@@ -329,6 +329,9 @@ class User extends Api |
|
|
$user = new \app\admin\model\User;
|
|
|
$user->save(['is_default'=>true],['id'=>$new_id]);
|
|
|
|
|
|
$user = new \app\admin\model\User;
|
|
|
$user->save(['is_default'=>false],['id'=>$old_id]);
|
|
|
|
|
|
if (!$ret) {
|
|
|
$this->error($this->auth->getError());
|
|
|
}
|
...
|
...
|
|