Commit 2816a4b29708c3e738437af31f2e07d817590f5a

Authored by fengliang
1 parent 2a4d0515

update:商品图片判断调整

etrade-order/src/main/java/com/diligrp/etrade/order/service/impl/ShopCartImpl.java
@@ -189,7 +189,7 @@ public class ShopCartImpl implements IShopCartService { @@ -189,7 +189,7 @@ public class ShopCartImpl implements IShopCartService {
189 if(StringUtils.isBlank(shopCartMessageDto.getProductName())){ 189 if(StringUtils.isBlank(shopCartMessageDto.getProductName())){
190 shopCartMessageDto.setProductName(productDetailVo.getAlias()); 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 shopCartMessageDto.setUrl(productDetailVo.getImages().get(0).getUrl()); 193 shopCartMessageDto.setUrl(productDetailVo.getImages().get(0).getUrl());
194 } 194 }
195 shopCartMessageDto.setCheckFlag(ShopCartMessageCheckFlag.CHECK.getCodeInteger()); 195 shopCartMessageDto.setCheckFlag(ShopCartMessageCheckFlag.CHECK.getCodeInteger());