This commit is contained in:
2026-04-15 23:46:32 +05:00
parent 6a606044a9
commit 18ffc772e3
3 changed files with 7 additions and 18 deletions

View File

@@ -271,14 +271,7 @@ class Controller extends ExController
foreach ($product->childrens as $children) {
foreach ($children->screens as $screen) {
$screen->sizeText = $screen->size / 1024 . 'Kb';
if (env('FILESYSTEM_DISK') == 's3') {
$screen->url = Storage::temporaryUrl(
$screen->path,
Date::now()->addMinutes(5)
);
} else {
$screen->url = '/' . $screen->path;
}
$screen->url = $screen->getPath();
$screen->type = "image/jpeg";
}
}