diff --git a/app/controller/VehicleController.php b/app/controller/VehicleController.php index c64f1e7..e6c6d5f 100644 --- a/app/controller/VehicleController.php +++ b/app/controller/VehicleController.php @@ -42,7 +42,7 @@ class VehicleController $fbo_location = Location::find($vehicle->fbo_locations_id); $vehicle->fbo_destination = $fbo_location ? $fbo_location->name : ''; - if(!str_starts_with($vehicle->url, 'http')){ + if(!str_starts_with($vehicle->img_url, 'http')){ $ossservice = new OssService(); $img_url = $ossservice->generatePrivateUrl($vehicle->img_url,86400); $vehicle->img_url = $img_url; diff --git a/plugin/admin/app/controller/VehicleController.php b/plugin/admin/app/controller/VehicleController.php index b15bd35..72375c3 100644 --- a/plugin/admin/app/controller/VehicleController.php +++ b/plugin/admin/app/controller/VehicleController.php @@ -130,7 +130,7 @@ class VehicleController extends Crud } - if(!str_starts_with($items->url, 'http')){ + if(!str_starts_with($items->img_url, 'http')){ $ossservice = new OssService(); $img_url = $ossservice->generatePrivateUrl($item->img_url,86400); $item->img_url = $img_url;