新车修复
This commit is contained in:
@@ -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('提交失败:车辆介绍');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user