Commit 35490d4b authored by hujun's avatar hujun

1

parent 605764cc
......@@ -485,7 +485,7 @@ class Houses extends Basic
public function editExclusive()
{
if ($this->params['houses_id']) {
$this->data = $this->house->exclusive($this->params, $this->params['houses_id']);
$this->data = $this->house->exclusive($this->params, $this->params['houses_id'], $this->userId);
} else {
$this->code = 101;
$this->msg = 'houses_id is null';
......@@ -506,7 +506,7 @@ class Houses extends Basic
public function addExclusive()
{
if ($this->params['houses_id']) {
$this->data = $this->house->exclusive($this->params, $this->params['houses_id']);
$this->data = $this->house->exclusive($this->params, $this->params['houses_id'], $this->userId);
} else {
$this->code = 101;
$this->msg = 'houses_id is null';
......
......@@ -774,13 +774,14 @@ class GHouses extends BaseModel
*
* @param $data
* @param $house_id
* @param $operation_id
* @return bool
* @throws \Exception
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
* @throws \think\exception\PDOException
*/
public function exclusive($data, $house_id)
public function exclusive($data, $house_id, $operation_id)
{
$this->startTrans();
$result = $this->save([
......@@ -798,7 +799,7 @@ class GHouses extends BaseModel
$house_img->editExclusiveImg($data, $house_id);
$agents = new GHousesToAgents();
$agents->addAgents($data['exclusive_id'], $house_id, 3);
$agents->addAgents($data['exclusive_id'], $house_id, 3, $operation_id);
//新增附件
if (isset($data['exclusive_file'])) {
......@@ -818,9 +819,8 @@ class GHouses extends BaseModel
$file_id_arr = explode(',', $data['del_file_id']);
$m_house_file = new GHouseFile();
foreach ($file_id_arr as $k=>$v) {
$save_data['id'] = $v;
$save_data['status'] = 1;
$m_house_file->editData($save_data);
$m_house_file->editData($save_data, $v);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment