1
This commit is contained in:
@@ -127,14 +127,14 @@ class VehicleController extends Crud
|
|||||||
$item->final_location_name = $final_location ? $final_location->name : '';
|
$item->final_location_name = $final_location ? $final_location->name : '';
|
||||||
$fbo_location = Location::find($item->fbo_locations_id);
|
$fbo_location = Location::find($item->fbo_locations_id);
|
||||||
$item->fbo_location_name = $fbo_location ? $fbo_location->name : '';
|
$item->fbo_location_name = $fbo_location ? $fbo_location->name : '';
|
||||||
}
|
|
||||||
|
|
||||||
|
if(!str_starts_with($item['img_url'], 'http')){
|
||||||
if(!str_starts_with($items['img_url'], 'http')){
|
|
||||||
$ossservice = new OssService();
|
$ossservice = new OssService();
|
||||||
$img_url = $ossservice->generatePrivateUrl($item['img_url'],86400);
|
$img_url = $ossservice->generatePrivateUrl($item['img_url'],86400);
|
||||||
$item['img_url'] = $img_url;
|
$item['img_url'] = $img_url;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $items;
|
return $items;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user