diff --git a/app/api/logic/ResourceLogic.php b/app/api/logic/ResourceLogic.php index 10d34fd..f3300da 100644 --- a/app/api/logic/ResourceLogic.php +++ b/app/api/logic/ResourceLogic.php @@ -77,11 +77,15 @@ class ResourceLogic extends Logic $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($get['cate_type'] == 0){ - $where[] = ['id','not in',[17,18,19,20,21]]; + $where[] = ['c.id','not in',[17,18,19,20,21]]; }else{ - $where[] = ['id','in',[17,18,19,20,21]]; + $where[] = ['c.id','in',[17,18,19,20,21]]; } } diff --git a/runtime/cache/45/ab3ad2419a7204a6ea4eedd2684368.php b/runtime/cache/45/ab3ad2419a7204a6ea4eedd2684368.php index f18c533..7550f8e 100644 --- a/runtime/cache/45/ab3ad2419a7204a6ea4eedd2684368.php +++ b/runtime/cache/45/ab3ad2419a7204a6ea4eedd2684368.php @@ -1,4 +1,4 @@ -1 \ No newline at end of file +4 \ No newline at end of file