|
@@ -3785,12 +3785,20 @@ public class StoreInfoServiceImpl extends ServiceImpl<StoreInfoMapper, StoreInfo
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 获取店铺相册
|
|
// 获取店铺相册
|
|
|
- List<StoreImg> storeAlbumList = storeImgService.getStoreImg(Integer.parseInt(storeId), 21);
|
|
|
|
|
|
|
+ List<StoreImg> storeAlbumList = new ArrayList<>();
|
|
|
|
|
+ if(storeInfo.getImgMode() != null && storeInfo.getImgMode() == 0){
|
|
|
|
|
+ storeAlbumList = storeImgService.getStoreImg(Integer.parseInt(storeId), 20);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ storeAlbumList = storeImgService.getStoreImg(Integer.parseInt(storeId), 21);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if(!CollectionUtils.isEmpty(storeAlbumList)){
|
|
if(!CollectionUtils.isEmpty(storeAlbumList)){
|
|
|
List<String> storeAlbumUrlList = storeAlbumList.stream().map(StoreImg::getImgUrl) // 假设 StoreImg 有 getStoreUrl() 方法
|
|
List<String> storeAlbumUrlList = storeAlbumList.stream().map(StoreImg::getImgUrl) // 假设 StoreImg 有 getStoreUrl() 方法
|
|
|
.filter(url -> url != null && !url.trim().isEmpty()) // 过滤空值
|
|
.filter(url -> url != null && !url.trim().isEmpty()) // 过滤空值
|
|
|
.collect(Collectors.toList());
|
|
.collect(Collectors.toList());
|
|
|
result.setStoreAlbumUrlList(storeAlbumUrlList);
|
|
result.setStoreAlbumUrlList(storeAlbumUrlList);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ result.setStoreAlbumUrlList(new ArrayList<>());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 设置经纬度
|
|
// 设置经纬度
|