...
|
...
|
@@ -92,6 +92,7 @@ class HouseAdmin extends Backend |
|
|
$validate = is_bool($this->modelValidate) ? ($this->modelSceneValidate ? $name . '.add' : $name) : $this->modelValidate;
|
|
|
$this->model->validateFailException(true)->validate($validate);
|
|
|
}
|
|
|
$params['avatar'] = Db::name('user')->where('id',$data['user_id'])->value('avatar');
|
|
|
$result = $this->model->allowField(true)->save($params);
|
|
|
|
|
|
$house_admin_id = $this->model->getLastInsID();
|
...
|
...
|
@@ -153,6 +154,7 @@ class HouseAdmin extends Backend |
|
|
$validate = is_bool($this->modelValidate) ? ($this->modelSceneValidate ? $name . '.edit' : $name) : $this->modelValidate;
|
|
|
$row->validateFailException(true)->validate($validate);
|
|
|
}
|
|
|
$params['avatar'] = Db::name('user')->where('id',$data['user_id'])->value('avatar');
|
|
|
$result = $row->allowField(true)->save($params);
|
|
|
Db::commit();
|
|
|
} catch (ValidateException $e) {
|
...
|
...
|
|