|
|
@ -77,11 +77,15 @@ class ResourceLogic extends Logic |
|
|
$where[] = ['a.city_id', '=', str_replace("city_","",$get['cid'])]; |
|
|
$where[] = ['a.city_id', '=', str_replace("city_","",$get['cid'])]; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(isset($get['cid']) && $get['cid'] == 20 && isset($get['city_id']) && $get['city_id']>0){ |
|
|
|
|
|
$where[] = ['a.city_id', '=', $get['city_id']]; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if(isset($get['cate_type']) ){ |
|
|
if(isset($get['cate_type']) ){ |
|
|
if($get['cate_type'] == 0){ |
|
|
if($get['cate_type'] == 0){ |
|
|
$where[] = ['id','not in',[17,18,19,20,21]]; |
|
|
$where[] = ['c.id','not in',[17,18,19,20,21]]; |
|
|
}else{ |
|
|
}else{ |
|
|
$where[] = ['id','in',[17,18,19,20,21]]; |
|
|
$where[] = ['c.id','in',[17,18,19,20,21]]; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|