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['house_id'])) {
$houseIds = $params['house_id'];
} else {
if (isset($params['landlord_phone'])) { if (isset($params['landlord_phone'])) {
$houseIds = $this->returnHouseId($params['landlord_phone']); $houseIds = $this->returnHouseId($params['landlord_phone']);
if (empty($houseIds)) { if (empty($houseIds)) {
return $this->response("200", "此条件没有找到数据"); return $this->response("200", "此条件没有找到数据");
} }
} }
if (isset($params['house_id'])) {
$houseIds = $params['house_id'];
} }
if (!empty($houseIds)) { if (!empty($houseIds)) {
$conditions['id'] = array( "in", $houseIds ); $conditions['id'] = array( "in", $houseIds );
......
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