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('提交失败:车辆介绍'); }