From fb0e0df5b234210fa015641168ee415e68bbf1c7 Mon Sep 17 00:00:00 2001 From: zengchaoxin Date: Wed, 16 Oct 2019 11:00:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/controllers/CarController.php | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/frontend/controllers/CarController.php b/frontend/controllers/CarController.php index 9c6170b..79a9118 100644 --- a/frontend/controllers/CarController.php +++ b/frontend/controllers/CarController.php @@ -404,37 +404,11 @@ class CarController extends BaseController $info = new CarT(); } $car_use_items = CarUseT::find()->all(); - $car_type_items = CarTypeT::find()->all(); - $brand_items = Brand2T::find()->all(); - $factory_items = FactoryT::find() - ->where('brand_id='.intval($info->brand_id)) - ->all(); - $series_items = Series2T::find() - ->where('factory_id='.intval($info->factory_id)) - ->all(); - $displacement_items = Displacement2T::find() - ->where('series_id='.intval($info->series_id)) - ->all(); - $year_items = YearT::find() - ->where('series_id='.intval($info->series_id.' and displacement_id='.intval($info->displacement_id))) - ->all(); - $model_items = ModelT::find() - ->where('series_id='.intval($info->series_id)) - ->andWhere('displacement_id='.intval($info->displacement_id)) - ->andWhere('year_id='.intval($info->year_id)) - ->all(); return $this->render('edit',[ 'user_id' => $user_id, 'info' => $info, 'car_use_items' => $car_use_items, - 'car_type_items' => $car_type_items, - 'brand_items' => $brand_items, - 'factory_items' => $factory_items, - 'series_items' => $series_items, - 'displacement_items' => $displacement_items, - 'year_items' => $year_items, - 'model_items' => $model_items, 'back_params' => $back_params ]); }