master
parent
8736f248dc
commit
6c5b7f56df
|
|
@ -323,8 +323,10 @@ class MobileApiController extends Controller
|
|||
|
||||
$colorPath = $path;
|
||||
if ($carsOfColor->first()->photo_id) {
|
||||
dd($carsOfColor);
|
||||
$photo = UniModel::model('core_files')->find($carsOfColor->first()->photo_id);
|
||||
if (is_null($photo)) {
|
||||
dd($carsOfColor);
|
||||
}
|
||||
$colorPath = url('api/files/file/' . ltrim($photo->path, '/'));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue