新车修复

This commit is contained in:
2025-05-23 09:34:06 +08:00
parent 6597ea3a43
commit f8dc8a24e6
+2 -2
View File
@@ -358,7 +358,7 @@ class VehicleNewService extends BaseService
$albumsourceFields $albumsourceFields
); );
} }
VehicleNewAlbumModel::whereNotIn('id', $traitsId)->where('vehicle_id',$id)->delete(); VehicleNewAlbumModel::whereNotIn('id', $albumsId)->where('vehicle_id',$id)->delete();
$contentsId = []; $contentsId = [];
foreach ($contents as $content) { foreach ($contents as $content) {
@@ -379,7 +379,7 @@ class VehicleNewService extends BaseService
} }
} else { } else {
unset($content['id']); unset($content['id']);
$content_res = $VehicleNewAskedService->create($content); $content_res = $VehicleNewContentService->create($content);
if (!$content_res) { if (!$content_res) {
throw new BusinessException('提交失败:车辆介绍'); throw new BusinessException('提交失败:车辆介绍');
} }