From 8019aad07d130c0717ccd863df7970d3ab9cecd9 Mon Sep 17 00:00:00 2001 From: "HESU\\HESU" <1696136552@qq.com> Date: Wed, 11 Jun 2025 15:37:10 +0800 Subject: [PATCH] 1 --- app/controller/LocationController.php | 1 + app/controller/VehicleController.php | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/controller/LocationController.php b/app/controller/LocationController.php index d2dce64..ebb220d 100644 --- a/app/controller/LocationController.php +++ b/app/controller/LocationController.php @@ -60,6 +60,7 @@ class LocationController $locations = Location::with('vehicles') ->with('fboVehicles') + ->where(['type' => 'production']) ->whereIn('id',$locations_id) ->get() ->map(function ($location) { diff --git a/app/controller/VehicleController.php b/app/controller/VehicleController.php index 5f73139..3bd8bc3 100644 --- a/app/controller/VehicleController.php +++ b/app/controller/VehicleController.php @@ -413,15 +413,12 @@ class VehicleController case 'zh': $vehicle = Vehicle::with('location')->find($id); break; - case 'en': $vehicle = VehicleEn::with('location')->find($id); break; - case 'ru': $vehicle = VehicleRu::with('location')->find($id); break; - case 'ar': $vehicle = VehicleAr::with('location')->find($id); break;