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