|
@@ -134,7 +134,10 @@ class Index extends Api
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- $where[]=['type','=',input('type')];
|
|
|
|
|
|
+ if(isset($_GET['type'])){
|
|
|
|
+ $where[]=['type','=',input('type')];
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
//车龄
|
|
//车龄
|
|
@@ -186,7 +189,7 @@ class Index extends Api
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- dump($where);die();die();
|
|
|
|
|
|
+
|
|
|
|
|
|
$list=Db::table('p_car')->where('is_deleted',0)
|
|
$list=Db::table('p_car')->where('is_deleted',0)
|
|
->where($where)
|
|
->where($where)
|