From 5fb2326d6bba76dd82669b4bcb1690759fc6ab6c Mon Sep 17 00:00:00 2001 From: zcstatham <578322713@qq.com> Date: Sat, 10 Sep 2022 23:07:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E9=A1=B5=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/Index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controller/Index.php b/app/controller/Index.php index 2de1cf0..2a61a61 100644 --- a/app/controller/Index.php +++ b/app/controller/Index.php @@ -338,11 +338,11 @@ class Index extends BaseController $map[] = ['car_info_t.car_man', 'like', $car_man]; } if (isset($params['tag']) && $params['tag'] != '') { - $tags = explode(',', str_replace(',', '', $params['car_man'])); + $tags = explode(',', str_replace(',', '', $params['tag'])); array_walk($tags, function (&$value) { $value = '%' . $value . '%'; }); - $map[] = ['car_info_t.car_man', 'like', $tags]; + $map[] = ['car_info_t.tag', 'like', $tags]; } if (isset($params['factory_model']) && $params['factory_model'] != '') { $factory_model = explode(',', str_replace(',', '', $params['factory_model']));