From c773ff882395233f7fea4cb410346a181259e6e3 Mon Sep 17 00:00:00 2001 From: duzhichao <1098974448@qq.com> Date: Thu, 15 Jan 2026 16:16:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=A0=B9=E6=8D=AE=E7=A7=9F=E6=88=B7?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=99=AF=E5=8C=BA=E4=BA=8C=E7=BB=B4=E7=A0=81?= =?UTF-8?q?=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../central/order/service/impl/TourismServiceImpl.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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) {