图片修改

This commit is contained in:
2025-05-28 10:19:23 +08:00
parent 78843cc244
commit bd150fc745
4 changed files with 24 additions and 6 deletions
@@ -534,11 +534,11 @@ class VehicleController extends Crud
try {
$img_url = Cache::get('img_dib_'.$item->id);
if ($img_url) {
$item['img_url'] = $img_url;
$item['img_url_full'] = $img_url;
} else {
$ossservice = empty($ossservice)?new OssService():$ossservice;
$img_url = $ossservice->generatePrivateUrl($item['img_url'],86400);
$item['img_url'] = $img_url;
$item['img_url_full'] = $img_url;
Cache::set('img_dib_'.$item->id, $img_url, 86390);
}