master
parent
430e910afb
commit
8736f248dc
|
|
@ -321,9 +321,9 @@ class MobileApiController extends Controller
|
|||
foreach ($carsByColor as $carColor => $carsOfColor) {
|
||||
$carColor = UniModel::model('pipi_auto_colors')->find($carColor);
|
||||
|
||||
dd($carsOfColor);
|
||||
$colorPath = $path;
|
||||
if ($carsOfColor->first()->photo_id) {
|
||||
dd($carsOfColor);
|
||||
$photo = UniModel::model('core_files')->find($carsOfColor->first()->photo_id);
|
||||
$colorPath = url('api/files/file/' . ltrim($photo->path, '/'));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue