| | |
| | | if (addComment) { |
| | | String commentText = ""; |
| | | if (goodsType == Constant.SOURCE_TYPE_TAOBAO) { |
| | | TaoBaoLink taoBaoLink = shareGoodsService.getTaoBaoLinkForShare(1L, goodsId, null); |
| | | TaoBaoLink taoBaoLink = shareGoodsService.getTaoBaoLinkForShare(1L, goodsId, "0"); |
| | | String template = configService.get(ConfigKeyEnum.quickShareTBCommentText.getKey()); |
| | | commentText = template.replace("[口令]", TaoBaoUtil.filterTaoToken(taoBaoLink.getTaoToken())); |
| | | } else if (goodsType == Constant.SOURCE_TYPE_JD) { |
| | |
| | | for (CommentInfo commentInfo: comments) { |
| | | String typeCoupon = commentInfo.getType(); |
| | | if (StringUtil.isNullOrEmpty(typeCoupon)) { |
| | | commentInfo.setType(commentInfo.getTypeEnum().getDesc()); |
| | | if (commentInfo.getTypeEnum() == null) { |
| | | commentInfo.setType(""); |
| | | } else { |
| | | commentInfo.setType(commentInfo.getTypeEnum().getDesc()); |
| | | } |
| | | } else if (typeCoupon.equals(CommentInfoEnum.goodsCoupon.name())) { |
| | | commentInfo.setType("商品优惠券"); |
| | | } else if (typeCoupon.equals(CommentInfoEnum.currencyCoupon.name())) { |
| | | commentInfo.setType("通用优惠券"); |
| | | } |
| | | |
| | | String coupon = commentInfo.getCoupon(); |