| | |
| | | } |
| | | } |
| | | |
| | | // 无券不能自动 生成评论 |
| | | CouponInfoVO couponInfo1 = goodsDetailVO.getCouponInfo(); |
| | | if (couponInfo1 == null) { |
| | | addComment = false; |
| | | } |
| | | /* |
| | | * // 无券不能自动 生成评论 CouponInfoVO couponInfo1 = goodsDetailVO.getCouponInfo(); if |
| | | * (couponInfo1 == null) { addComment = false; } |
| | | */ |
| | | |
| | | |
| | | if (addComment) { |
| | |
| | | } else { |
| | | simpleGoods.setPrice(goodsVO.getCouponPrice()); |
| | | simpleGoods.setAmount(couponInfo.getAmount()); |
| | | } |
| | | imgInfo.setGoods(simpleGoods); |
| | | |
| | | TaoBaoLink taoBaoLink = shareGoodsService.getTaoBaoLinkForShare(1L, goodsVO.getGoodsId(), null); |
| | | String template = configService.get(ConfigKeyEnum.quickShareTBCommentText.getKey()); |
| | |
| | | List<CommentInfo> commentsNew = new ArrayList<>(); |
| | | commentsNew.add(commentInfo); |
| | | goodsEvaluate.setComments(commentsNew); |
| | | } |
| | | imgInfo.setGoods(simpleGoods); |
| | | |
| | | goodsEvaluate.setGoods(goodsVO); |
| | | |
| | | } |