From e31e8e5e3ae9ee25291b97530c31783d344ce59f Mon Sep 17 00:00:00 2001 From: Lemon Date: Tue, 27 Jun 2023 15:56:15 +0800 Subject: [PATCH] update --- .../amap/service/impl/AMapServiceImpl.java | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/amap/service/impl/AMapServiceImpl.java b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/amap/service/impl/AMapServiceImpl.java index b9995842e..96cf400a2 100644 --- a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/amap/service/impl/AMapServiceImpl.java +++ b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/amap/service/impl/AMapServiceImpl.java @@ -202,10 +202,15 @@ public class AMapServiceImpl implements AMapService { aMapInfo.setDiscountPriceChargingInfo(discountInfoList); AMapPictures pictures = new AMapPictures(); - pictures.setPicID("001"); - pictures.setUrl(stationInfo.getPictures()); - pictures.setTitle("1"); - + if (StringUtils.isBlank(stationInfo.getPictures())) { + pictures.setPicID(""); + pictures.setUrl(""); + pictures.setTitle(""); + }else { + pictures.setPicID("001"); + pictures.setUrl(stationInfo.getPictures()); + pictures.setTitle("1"); + } picturesList.add(pictures); aMapInfo.setPictures(picturesList);