Commit 1efdd842 authored by clone's avatar clone

新增

parent d6f6d4ab
...@@ -41,6 +41,7 @@ class Shop extends Basic ...@@ -41,6 +41,7 @@ class Shop extends Basic
/*$params = array( /*$params = array(
"site_area" => 4, //来源 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
"house_id" => 1,
"is_carefully_chosen" => 0, //精选商铺--0否1是 "is_carefully_chosen" => 0, //精选商铺--0否1是
"shop_type" => 0, //商铺类型(0商场,1街铺) "shop_type" => 0, //商铺类型(0商场,1街铺)
"disc" => "黄浦区", "disc" => "黄浦区",
...@@ -81,6 +82,9 @@ class Shop extends Basic ...@@ -81,6 +82,9 @@ class Shop extends Basic
} else if (isset($params['title'])) { } else if (isset($params['title'])) {
$conditions['internal_title'] = array( "like", "%" . trim($params['title']) . "%" ); $conditions['internal_title'] = array( "like", "%" . trim($params['title']) . "%" );
} }
if(isset($params['house_id'])){
$conditions['id'] = array( "eq", $params['house_id'] );
}
$order_ = ""; $order_ = "";
$spTagArr = array(); $spTagArr = array();
switch ($params['site_area']) { switch ($params['site_area']) {
......
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