| | |
| | | import org.springframework.stereotype.Controller;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | | import org.springframework.web.bind.annotation.RequestMethod;
|
| | | import org.yeshi.utils.BigDecimalUtil;
|
| | | import org.yeshi.utils.HttpUtil;
|
| | | import org.yeshi.utils.JsonUtil;
|
| | | import org.yeshi.utils.taobao.TbImgUtil;
|
| | |
| | | String text = configService.get("goods_share_text_coupon");
|
| | | shareText = text.replace("[标题]", taoBaoLink.getGoods().getTitle())
|
| | | .replace("[在售价]", "¥" + taoBaoLink.getGoods().getZkPrice())
|
| | | .replace("[优惠券金额]",
|
| | | "¥"+BigDecimalUtil.getWithNoZera(taoBaoLink.getGoods().getCouponAmount()).toString())
|
| | | .replace("[券后价]", "¥" + TaoBaoUtil.getAfterUseCouplePrice(taoBaoLink.getGoods()));
|
| | | }
|
| | | shareText = shareText.replace("[价格类型]", shopType);
|