修复预约详情图片回显链路

This commit is contained in:
2026-07-23 12:09:31 +08:00
parent 3e7b40fe3c
commit b14a97578e
4 changed files with 18 additions and 10 deletions
@@ -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) {