admin
2021-05-14 ae2294be876ac4595d7b31b36c0057726d12354f
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/ShareControllerV2.java
@@ -251,7 +251,7 @@
            commentText = commentText.replace("领券抢购", "抢购");
            commentText = commentText.replace("【券后价】[券后价]元", "");
        } else {
            commentText = commentText.replace("[券后价]", TaoBaoUtil.getAfterUseCouplePrice(goods) + "");
            commentText = commentText.replace("[券后价]", TaoBaoUtil.getCouponPrice(goods) + "");
        }
        commentText = commentText.replace("\r\n\r\n", "\r\n").replace("\r\n\r\n", "\r\n").replace("\r\n\r\n", "\r\n");
@@ -418,7 +418,7 @@
                        .replace("{商品原价}", MoneyBigDecimalUtil.getWithNoZera(goods.getZkPrice()) + "")
                        .replace("{优惠券面额}", MoneyBigDecimalUtil.getWithNoZera(goods.getCouponAmount()).toString())
                        .replace("{淘礼金面额}", MoneyBigDecimalUtil.getWithNoZera(spreadMoney).toString())
                        .replace("{优惠券价}", TaoBaoUtil.getAfterUseCouplePrice(goods) + "");
                        .replace("{优惠券价}", TaoBaoUtil.getCouponPrice(goods) + "");
            }
            shareText = shareText.replace("{店铺类型}", shopType)
@@ -649,7 +649,7 @@
                    commentText = commentText.replace("【券后价】[券后价]元", "");
                } else {
                    commentText = commentText.replace("[券后价]",
                            TaoBaoUtil.getAfterUseCouplePrice(taoBaoLink.getGoods()) + "");
                            TaoBaoUtil.getCouponPrice(taoBaoLink.getGoods()) + "");
                }
                if (StringUtil.isNullOrEmpty(taoBaoLink.getGoods().getCouponInfo())) {
@@ -829,7 +829,7 @@
                recommendText = recommendText.replace("[券面额]",
                        BigDecimalUtil.getWithNoZera(couponInfo.getDiscount()).toString());
                commentText = commentText.replace("[券后价]",
                        BigDecimalUtil.getWithNoZera(JDUtil.getQuanPrice(jdGoods)).toString());
                        BigDecimalUtil.getWithNoZera(JDUtil.getCouponPrice(jdGoods)).toString());
            }
            commentText = commentText.replace("[链接]", jumpLink);
        } else {
@@ -897,12 +897,12 @@
        if (VersionUtil.greaterThan_2_1_5(acceptData.getPlatform(), acceptData.getVersion())) {
            if (!PinDuoDuoApiUtil.isAuth(PinDuoDuoApiUtil.PID_SHARE, pddAuthService.getFanliCustomParams(uid))) {
                JsonUtil.loadFalseResult(20001, "尚未备案,请先备案");
                out.print(JsonUtil.loadFalseResult(20001, "尚未备案,请先备案"));
                return;
            }
        } else {
            if (System.currentTimeMillis() > TimeUtil.convertToTimeTemp("2021-05-01", "yyyy-MM-dd") && !PinDuoDuoApiUtil.isAuth(PinDuoDuoApiUtil.PID_SHARE, pddAuthService.getFanliCustomParams(uid))) {
                JsonUtil.loadFalseResult(20001, "请升级到最新版");
                out.print(JsonUtil.loadFalseResult(20001, "请升级到最新版"));
                return;
            }
        }
@@ -1017,7 +1017,7 @@
                recommendText = recommendText.replace("优惠券:[券面额]元", "");
            } else {
                commentText = commentText.replace("[券后价]",
                        BigDecimalUtil.getWithNoZera(PinDuoDuoUtil.getQuanPrice(goods)).toString());
                        BigDecimalUtil.getWithNoZera(PinDuoDuoUtil.getCouponPrice(goods)).toString());
                BigDecimal hundred = new BigDecimal(100);
                BigDecimal amount = MoneyBigDecimalUtil.div(new BigDecimal(goods.getCouponDiscount()), hundred);