fix amount 9

This commit is contained in:
2026-06-09 17:25:52 +03:30
parent 280bf3bf38
commit b5c2b2be72
+8 -3
View File
@@ -248,9 +248,14 @@ class AssetSummaryService
return null;
}
$file = $product->file->toArray();
$file['full_src'] = $product->file->src ?? null;
$fileModel = $product->file;
$src = (string) ($fileModel->src ?? '');
return $file;
return [
'id' => $fileModel->id,
'src' => $src,
'full_src' => $src,
'url' => $fileModel->url ?? null,
];
}
}