修复预约详情图片回显链路
This commit is contained in:
@@ -41,22 +41,14 @@ function resolveProductImageFileIds(appointment) {
|
||||
if (!appointment || typeof appointment !== 'object') {
|
||||
return []
|
||||
}
|
||||
return splitImageValues(appointment.productImageFileIds || appointment.imageFileIds)
|
||||
return splitImageValues(appointment.productImageFileIds)
|
||||
}
|
||||
|
||||
function resolveProductImageUrls(appointment) {
|
||||
if (!appointment || typeof appointment !== 'object') {
|
||||
return []
|
||||
}
|
||||
const productImageUrls = normalizeImageUrlArray(appointment.productImageUrls)
|
||||
if (productImageUrls.length > 0) {
|
||||
return productImageUrls
|
||||
}
|
||||
const imageUrls = normalizeImageUrlArray(appointment.imageUrls)
|
||||
if (imageUrls.length > 0) {
|
||||
return imageUrls
|
||||
}
|
||||
return normalizeImageUrlArray(appointment.productImageUrl || appointment.imageUrl)
|
||||
return normalizeImageUrlArray(appointment.productImageUrls)
|
||||
}
|
||||
|
||||
async function resolveSignedImageUrls(fileIds) {
|
||||
|
||||
Reference in New Issue
Block a user