From f8dc8a24e6250ca5f270a2bd0f123b49cd35dddd Mon Sep 17 00:00:00 2001 From: "HESU\\HESU" <1696136552@qq.com> Date: Fri, 23 May 2025 09:34:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E8=BD=A6=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/console/service/VehicleNewService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/console/service/VehicleNewService.php b/app/console/service/VehicleNewService.php index 489f551..a52f027 100644 --- a/app/console/service/VehicleNewService.php +++ b/app/console/service/VehicleNewService.php @@ -358,7 +358,7 @@ class VehicleNewService extends BaseService $albumsourceFields ); } - VehicleNewAlbumModel::whereNotIn('id', $traitsId)->where('vehicle_id',$id)->delete(); + VehicleNewAlbumModel::whereNotIn('id', $albumsId)->where('vehicle_id',$id)->delete(); $contentsId = []; foreach ($contents as $content) { @@ -379,7 +379,7 @@ class VehicleNewService extends BaseService } } else { unset($content['id']); - $content_res = $VehicleNewAskedService->create($content); + $content_res = $VehicleNewContentService->create($content); if (!$content_res) { throw new BusinessException('提交失败:车辆介绍'); }