This commit is contained in:
2025-04-30 14:58:01 +08:00
parent bb0b96d269
commit ced6fa85f2
@@ -135,6 +135,8 @@ class VehicleController extends Crud
// $item['img_url'] = $img_url;
// }
if(!str_starts_with($item['img_url'], 'http')){
try {
$ossservice = new OssService();
$img_url = $ossservice->generatePrivateUrl($item['img_url'], 3600);
@@ -150,6 +152,7 @@ class VehicleController extends Crud
]);
}
}
}
return $items;
}