...
|
...
|
@@ -177,6 +177,7 @@ class House extends Backend |
|
|
$result = $row->allowField(true)->save($params);
|
|
|
$data = Db::name('house')->where('id',$ids)->find();
|
|
|
Db::name('house_admin')->where('id',$data['admin_user_id'])->update(['house_id'=>$ids]);
|
|
|
Db::name('house_admin')->where('user_id',$row->user_id)->where('house_id',$ids)->update(['user_id'=>$data['admin_user_id']]);
|
|
|
|
|
|
Db::commit();
|
|
|
} catch (ValidateException $e) {
|
...
|
...
|
|