Commit 75de9e5e authored by clone's avatar clone

bug

parent 4929db98
...@@ -115,14 +115,16 @@ class Shop extends Basic ...@@ -115,14 +115,16 @@ class Shop extends Basic
} }
$houseIds = ""; $houseIds = "";
if (isset($params['landlord_phone'])) {
$houseIds = $this->returnHouseId($params['landlord_phone']);
if (empty($houseIds)) {
return $this->response("200", "此条件没有找到数据");
}
}
if (isset($params['house_id'])) { if (isset($params['house_id'])) {
$houseIds = $params['house_id']; $houseIds = $params['house_id'];
} else {
if (isset($params['landlord_phone'])) {
$houseIds = $this->returnHouseId($params['landlord_phone']);
if (empty($houseIds)) {
return $this->response("200", "此条件没有找到数据");
}
}
} }
if (!empty($houseIds)) { if (!empty($houseIds)) {
$conditions['id'] = array( "in", $houseIds ); $conditions['id'] = array( "in", $houseIds );
...@@ -432,11 +434,11 @@ class Shop extends Basic ...@@ -432,11 +434,11 @@ class Shop extends Basic
{ {
$result['code'] = 200; $result['code'] = 200;
$result['msg'] = ''; $result['msg'] = '';
$result_data = []; $result_data = [];
if ($this->request->isPost()) { if ($this->request->isPost()) {
$house = new HouseService(); $house = new HouseService();
$data = $house->addHouse($this->params, $this->agentId, 1); $data = $house->addHouse($this->params, $this->agentId, 1);
if ($data['status'] == 'successful') { if ($data['status'] == 'successful') {
$result_data['house_id'] = $data['data']['house_id']; $result_data['house_id'] = $data['data']['house_id'];
......
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