Fix product performance grouped JSON build
This commit is contained in:
@@ -1289,12 +1289,12 @@ function normalizeUploadsPath (storagePath) {
|
||||
|
||||
function resolveProductImageUrl (item) {
|
||||
if (!item || typeof item !== 'object') return ''
|
||||
const contentUrl = toText(item.content_url || item.ContentURL)
|
||||
if (contentUrl) return contentUrl.startsWith('/api/') ? contentUrl : contentUrl
|
||||
const thumbUrl = toText(item.thumb_url || item.thumbUrl)
|
||||
if (thumbUrl) return thumbUrl
|
||||
const fullUrl = toText(item.full_url || item.fullUrl)
|
||||
if (fullUrl) return fullUrl
|
||||
const contentUrl = toText(item.content_url || item.ContentURL)
|
||||
if (contentUrl) return contentUrl.startsWith('/api/') ? contentUrl : contentUrl
|
||||
const uploadsPath = normalizeUploadsPath(item.storage_path || item.storage)
|
||||
if (uploadsPath) return uploadsPath
|
||||
const fileName = toText(item.file_name || item.FileName)
|
||||
|
||||
Reference in New Issue
Block a user