This commit is contained in:
2025-04-30 14:05:55 +08:00
parent 382ee9f154
commit 55a36ccee7
2 changed files with 6 additions and 6 deletions
@@ -130,10 +130,10 @@ class VehicleController extends Crud
}
if(!str_starts_with($items->img_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;
$img_url = $ossservice->generatePrivateUrl($item['img_url'],86400);
$item['img_url'] = $img_url;
}
return $items;
}