Commit 2816a4b29708c3e738437af31f2e07d817590f5a
1 parent
2a4d0515
update:商品图片判断调整
Showing
1 changed file
with
1 additions
and
1 deletions
etrade-order/src/main/java/com/diligrp/etrade/order/service/impl/ShopCartImpl.java
... | ... | @@ -189,7 +189,7 @@ public class ShopCartImpl implements IShopCartService { |
189 | 189 | if(StringUtils.isBlank(shopCartMessageDto.getProductName())){ |
190 | 190 | shopCartMessageDto.setProductName(productDetailVo.getAlias()); |
191 | 191 | } |
192 | - if(StringUtils.isBlank(shopCartMessageDto.getUrl())){ | |
192 | + if(StringUtils.isBlank(shopCartMessageDto.getUrl())&&productDetailVo.getImages()!=null&&productDetailVo.getImages().size()>0){ | |
193 | 193 | shopCartMessageDto.setUrl(productDetailVo.getImages().get(0).getUrl()); |
194 | 194 | } |
195 | 195 | shopCartMessageDto.setCheckFlag(ShopCartMessageCheckFlag.CHECK.getCodeInteger()); | ... | ... |