feat: 根据租户获取景区二维码内容

This commit is contained in:
2026-01-15 16:16:20 +08:00
parent 6fb8c71ee2
commit c773ff8823
@@ -345,7 +345,7 @@ public class TourismServiceImpl extends SuperServiceImpl<TourismMapper, Tourism>
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<TourismMapper, Tourism>
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) {