| | |
| | | commentText = commentText.replace("领券抢购", "抢购"); |
| | | commentText = commentText.replace("【券后价】{券后价}元", ""); |
| | | } else { |
| | | commentText = commentText.replace("{券后价}", TaoBaoUtil.getAfterUseCouplePrice(goods) + ""); |
| | | commentText = commentText.replace("{券后价}", TaoBaoUtil.getCouponPrice(goods) + ""); |
| | | } |
| | | return deleteBlankLine(commentText); |
| | | } |
| | |
| | | commentText = commentText.replace("【券后价】{券后价}元", ""); |
| | | } else { |
| | | commentText = commentText.replace("{券后价}", |
| | | BigDecimalUtil.getWithNoZera(JDUtil.getQuanPrice(goods)).toString()); |
| | | BigDecimalUtil.getWithNoZera(JDUtil.getCouponPrice(goods)).toString()); |
| | | } |
| | | return deleteBlankLine(commentText); |
| | | } |
| | |
| | | commentText = commentText.replace("【券后价】{券后价}元", ""); |
| | | } else { |
| | | commentText = commentText.replace("{券后价}", |
| | | BigDecimalUtil.getWithNoZera(PinDuoDuoUtil.getQuanPrice(goods)).toString()); |
| | | BigDecimalUtil.getWithNoZera(PinDuoDuoUtil.getCouponPrice(goods)).toString()); |
| | | } |
| | | return deleteBlankLine(commentText); |
| | | } |
| | |
| | | .replace("{优惠券面额}", BigDecimalUtil.getWithNoZera(goods.getCouponAmount()).toString()) |
| | | .replace("{淘礼金面额}", BigDecimalUtil.getWithNoZera(spreadMoney).toString()) |
| | | .replace("{优惠券价}", |
| | | BigDecimalUtil.getWithNoZera(TaoBaoUtil.getAfterUseCouplePrice(goods)).toString()) |
| | | BigDecimalUtil.getWithNoZera(TaoBaoUtil.getCouponPrice(goods)).toString()) |
| | | .replace("{店铺类型}", goods.getUserType() == 1 ? TaoBaoConstant.SHARE_PRICE_TM |
| | | : TaoBaoConstant.SHARE_PRICE_TAOBAO); |
| | | } |
| | |
| | | .replace("{淘口令}", token) |
| | | .replace("{优惠券面额}", BigDecimalUtil.getWithNoZera(goods.getCouponAmount()).toString()) |
| | | .replace("{优惠券价}", |
| | | BigDecimalUtil.getWithNoZera(TaoBaoUtil.getAfterUseCouplePrice(goods)).toString()) |
| | | BigDecimalUtil.getWithNoZera(TaoBaoUtil.getCouponPrice(goods)).toString()) |
| | | .replace("{店铺类型}", goods.getUserType() == 1 ? TaoBaoConstant.SHARE_PRICE_TM |
| | | : TaoBaoConstant.SHARE_PRICE_TAOBAO); |
| | | } |
| | |
| | | .replace("{月销量}", JDUtil.getSaleCount(goods.getInOrderCount30Days())).replace("{短链接}", shortLink) |
| | | .replace("{优惠券面额}", |
| | | BigDecimalUtil.getWithNoZera(JDUtil.getShowCouponInfo(goods).getDiscount()).toString()) |
| | | .replace("{优惠券价}", BigDecimalUtil.getWithNoZera(JDUtil.getQuanPrice(goods)).toString()); |
| | | .replace("{优惠券价}", BigDecimalUtil.getWithNoZera(JDUtil.getCouponPrice(goods)).toString()); |
| | | } |
| | | |
| | | if (pinGouInfo != null) { |
| | |
| | | .replace("{商品原价}", BigDecimalUtil.getWithNoZera(price).toString()) |
| | | .replace("{总销量}", goods.getSalesTip()).replace("{短链接}", shortLink) |
| | | .replace("{优惠券面额}", BigDecimalUtil.getWithNoZera(amount).toString()) |
| | | .replace("{优惠券价}", BigDecimalUtil.getWithNoZera(PinDuoDuoUtil.getQuanPrice(goods)).toString()); |
| | | .replace("{优惠券价}", BigDecimalUtil.getWithNoZera(PinDuoDuoUtil.getCouponPrice(goods)).toString()); |
| | | |
| | | if (StringUtil.isNullOrEmpty(token)) { |
| | | template = template.replace("复制本条信息,{多多口令}打开拼多多,免费领券", "点击链接,打开拼多多,免费领券"); |