diff --git a/extend/service/CarInfoHandle.php b/extend/service/CarInfoHandle.php index 8117017..686a1a9 100644 --- a/extend/service/CarInfoHandle.php +++ b/extend/service/CarInfoHandle.php @@ -51,8 +51,8 @@ class CarInfoHandle if (isset($data['price2']) && $data['price2'] != '') { $where[] = ['car_info_t.purchase_price', '<=', $data['price2'] * 10000]; } - if (isset($params['tag']) && $params['tag'] != '') { - $where[] = ['car_info_t.tag', '=', $params['tag']]; + if (isset($data['tag']) && $data['tag'] != '') { + $where[] = ['car_info_t.tag', '=', $data['tag']]; } if (isset($data['empty_phone_check']) && $data['empty_phone_check'] == 'yes') { $where[] = ['car_phone', '<>', ''];