Commit b80e006f authored by clone's avatar clone

搜索bug

parent 4516bf45
......@@ -95,7 +95,7 @@ class Shop extends Basic
$conditions['price'] = array( 'egt', $params['money_start'] );
}
if (isset($params['shangpu_tags']) && $params['shangpu_tags'] != -1) { //商铺标签
if (isset($params['shangpu_tags']) && $params['shangpu_tags'] != "全部") { //商铺标签
$shangpuTagsArr = array_filter(explode(',', $params['shangpu_tags']));
if (count($shangpuTagsArr) == 1) {
$conditions['shangpu_tags'] = array( 'like', "%" . trim($shangpuTagsArr[0]) . "%" );
......@@ -198,7 +198,7 @@ class Shop extends Basic
$result['acreage'] = array( array( 'id' => '-1', 'value' => '全部' ), array( 'id' => '0', 'value' => '30m²以内' ),
array( 'id' => '1', 'value' => '30-60m²' ), array( 'id' => '2', 'value' => '60-100m²' ), array( 'id' => '3', 'value' => '100m²以上' ) );
$result['more'][] = "更多";
$result['more'][] = "全部";
$labelsResult = $this->labels->getLabels();
if (count($labelsResult) > 0) {
foreach ($labelsResult as $labelsKey => $labelsVal) {
......
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