Commit f600f945 authored by clone's avatar clone

bug

parent b8080247
...@@ -38,8 +38,8 @@ class Shop extends Basic ...@@ -38,8 +38,8 @@ class Shop extends Basic
*/ */
public function getShopList() public function getShopList()
{ {
/* $params = array( /*$params = array(
"site_area" => 1, //来源 1c首页 2c搜索 3b首页 4b搜索 "site_area" => 4, //来源 1c首页 2c搜索 3b首页 4b搜索
"title" => "vv", //1,2 external_title ,3,4internal_title "title" => "vv", //1,2 external_title ,3,4internal_title
"is_carefully_chosen" => 0, //精选商铺--0否1是 "is_carefully_chosen" => 0, //精选商铺--0否1是
"shop_type" => 0, //商铺类型(0商场,1街铺) "shop_type" => 0, //商铺类型(0商场,1街铺)
...@@ -50,7 +50,7 @@ class Shop extends Basic ...@@ -50,7 +50,7 @@ class Shop extends Basic
"rent_price_start" => 1000,//租金 rent_price "rent_price_start" => 1000,//租金 rent_price
"rent_price_end" => 10000,//租金 "rent_price_end" => 10000,//租金
"shop_sign" => "临近地铁,临近地铁2", "shop_sign" => "临近地铁,临近地铁2",
"agent_id" => 1, //添加经纪人id "agent_id" => 630, //添加经纪人id
"pageNo" => 1, "pageNo" => 1,
"pageSize" => 15 "pageSize" => 15
);*/ );*/
...@@ -142,13 +142,15 @@ class Shop extends Basic ...@@ -142,13 +142,15 @@ class Shop extends Basic
default: default:
$this->response("101", "请求数据异常"); $this->response("101", "请求数据异常");
} }
if (!empty($conditions)) { if (!empty($conditions) ) {
$conditions['status'] = array( 'eq', 1 ); //只显示上架 $conditions['status'] = array( 'eq', 1 ); //只显示上架
if ($params['site_area'] == 1 || $params['site_area'] == 2) if ($params['site_area'] == 1 || $params['site_area'] == 2)
$conditions['is_show'] = array( 'eq', 0 ); //c端只显示可显示的楼盘 $conditions['is_show'] = array( 'eq', 0 ); //c端只显示可显示的楼盘
} }
if( isset($conditions['upload_id'])){
unset($conditions['status']);
}
$result = $this->gHousesModel->getHousesList($pageNo, $pageSize, $order_, $field, $conditions, $spTagArr); $result = $this->gHousesModel->getHousesList($pageNo, $pageSize, $order_, $field, $conditions, $spTagArr);
//获取图片信息 //获取图片信息
foreach ($result as $key => $val) { foreach ($result as $key => $val) {
......
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