| | |
| | | return; |
| | | } |
| | | |
| | | int total = 0; |
| | | for (ImgInfo imgInfo : imgs) { |
| | | SimpleGoods goods = imgInfo.getGoods(); |
| | | if (goods != null) { |
| | | total++; |
| | | } |
| | | } |
| | | |
| | | List<String> list = new ArrayList<>(); |
| | | for (ImgInfo imgInfo : imgs) { |
| | | GoodsDetailVO goodsVO = imgInfo.getGoodsVO(); |
| | | if (goodsVO == null && total <= 1) { |
| | | if (goodsVO == null) { |
| | | list.add(imgInfo.getUrl()); |
| | | continue; |
| | | } |
| | | |
| | | if (type == 1) { |
| | | String jumpLink = getJumpLink(goodsVO, user, inviteCode); |
| | | if (!StringUtil.isNullOrEmpty(jumpLink)) { |
| | | list.add(jumpLink); |
| | | } |
| | | } else { |
| | | if (goodsVO.getGoodsId().longValue() == goodsId.longValue() |
| | | && goodsVO.getGoodsType() == goodsType.intValue()) { |
| | | String jumpLink = getJumpLink(goodsVO, user, inviteCode); |
| | | if (!StringUtil.isNullOrEmpty(jumpLink)) { |
| | | list.add(jumpLink); |
| | | } |
| | | } |
| | | } else { |
| | | String jumpLink = getJumpLink(goodsVO, user, inviteCode); |
| | | if (!StringUtil.isNullOrEmpty(jumpLink)) { |
| | | list.add(jumpLink); |
| | | } |
| | | } |
| | | } |