fix amount 9
This commit is contained in:
@@ -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,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user