diff --git a/zlt-business/order-center/src/main/java/com/central/order/service/impl/TourismServiceImpl.java b/zlt-business/order-center/src/main/java/com/central/order/service/impl/TourismServiceImpl.java index 1606342f..e64cb20d 100644 --- a/zlt-business/order-center/src/main/java/com/central/order/service/impl/TourismServiceImpl.java +++ b/zlt-business/order-center/src/main/java/com/central/order/service/impl/TourismServiceImpl.java @@ -345,7 +345,7 @@ public class TourismServiceImpl extends SuperServiceImpl if (qrCodes == null || qrCodes.isEmpty()) { continue; } - + String imageUrl=null; for (QrCode qrCode : qrCodes) { if (qrCode == null || qrCode.getCodeId() == null || qrCode.getCodeId().trim().isEmpty()) { continue; @@ -359,9 +359,10 @@ public class TourismServiceImpl extends SuperServiceImpl vo.setQrCodeName(qrName); vo.setQrCode(qrCode.getCodeId()); vo.setPrice(qrCode.getPrice()); - - String imageUrl = resolveQrCodeImageUrl(qrCode.getCodeId()); - vo.setQrCodeImage(imageUrl); + if(imageUrl==null){ + imageUrl = resolveQrCodeImageUrl(qrCode.getCodeId()); + vo.setQrCodeImage(imageUrl); + } BigDecimal[] lngLat = resolveDeviceLngLat(qrCode.getDeviceSn(), deviceSnToLngLat); if (lngLat != null && lngLat.length == 2) {