From 81a2c8e297787cc7dc405d6db4972cb917cd80b5 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期五, 17 一月 2020 16:50:57 +0800 Subject: [PATCH] 无用代码删除,单品分享接口修改 --- fanli/src/main/java/com/yeshi/fanli/controller/client/v2/GoodsControllerV2.java | 29 ++++++++++++++++++++++------- 1 files changed, 22 insertions(+), 7 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/GoodsControllerV2.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/GoodsControllerV2.java index 06cfdb7..92f3bb6 100644 --- a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/GoodsControllerV2.java +++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/GoodsControllerV2.java @@ -195,10 +195,9 @@ @Resource private UserVIPInfoService userVIPInfoService; - + @Resource private UserVipConfigService userVipConfigService; - /** * 娣樺疂鍟嗗搧璇︽儏 @@ -383,7 +382,8 @@ "楼" + TaoBaoUtil.getGoodsHongBaoMoney(goods, hongBaoManageService.getVIPShareRate())); goodsDetail.getMoneyInfo().setRateInfo(goodsDetail.getMoneyInfo().getMaxRateInfo()); } - goodsDetail.getMoneyInfo().setRateInfoHelpUrl(configService.get(ConfigKeyEnum.goodsDetailFanliRateHelpUrl.getKey())); + goodsDetail.getMoneyInfo() + .setRateInfoHelpUrl(configService.get(ConfigKeyEnum.goodsDetailFanliRateHelpUrl.getKey())); if (TaoBaoUtil.isYUShou(goods)) { if (!StringUtil.isNullOrEmpty(goods.getPresaleDiscountFeeText())) { @@ -416,7 +416,7 @@ } extraVO.setTbPidInfo(clientTBPid); - extraVO.setDetailUrl("http://apph5.yeshitv.com/apppage/goods_img.html?id=" + id); + extraVO.setDetailUrl("http://apph5.banliapp.com/apppage/goods_img.html?id=" + id); // 鍒嗕韩璧氫汉鎻愮ず MoneyInfoVO moneyInfo = goodsDetail.getMoneyInfo(); @@ -552,7 +552,12 @@ } else rewardCoupon.setDesc("鐢ㄨ繑鍒╁鍔卞埜鏈�楂樿繑"); rewardCoupon.setParams(params1.toString()); + otherInfo.setRewardCoupon(rewardCoupon); + if ("ios".equalsIgnoreCase(acceptData.getPlatform()) + && configService.iosOnLining(Integer.parseInt(acceptData.getVersion()))) + otherInfo.setRewardCoupon(null); + goodsDetail.setOtherInfo(otherInfo); } extraVO.setFanliValid(fanliValid); @@ -639,7 +644,8 @@ .setShareMoney("楼" + JDUtil.getGoodsFanLiMoney(jdGoods, hongBaoManageService.getVIPShareRate())); goodsDetail.getMoneyInfo().setRateInfo(goodsDetail.getMoneyInfo().getMaxRateInfo()); } - goodsDetail.getMoneyInfo().setRateInfoHelpUrl(configService.get(ConfigKeyEnum.goodsDetailFanliRateHelpUrl.getKey())); + goodsDetail.getMoneyInfo() + .setRateInfoHelpUrl(configService.get(ConfigKeyEnum.goodsDetailFanliRateHelpUrl.getKey())); // 闄勫姞淇℃伅 OtherInfo otherInfo = new OtherInfo(); @@ -691,7 +697,12 @@ rewardCoupon.setDesc("鐢ㄨ繑鍒╁鍔卞埜鏈�楂樿繑"); } rewardCoupon.setParams(params1.toString()); + otherInfo.setRewardCoupon(rewardCoupon); + if ("ios".equalsIgnoreCase(acceptData.getPlatform()) + && configService.iosOnLining(Integer.parseInt(acceptData.getVersion()))) + otherInfo.setRewardCoupon(null); + goodsDetail.setOtherInfo(otherInfo); CouponInfoVO couponInfo = goodsDetail.getCouponInfo(); @@ -835,7 +846,8 @@ "楼" + PinDuoDuoUtil.getGoodsFanLiMoney(pddGoods, hongBaoManageService.getVIPShareRate())); goodsDetail.getMoneyInfo().setRateInfo(goodsDetail.getMoneyInfo().getMaxRateInfo()); } - goodsDetail.getMoneyInfo().setRateInfoHelpUrl(configService.get(ConfigKeyEnum.goodsDetailFanliRateHelpUrl.getKey())); + goodsDetail.getMoneyInfo() + .setRateInfoHelpUrl(configService.get(ConfigKeyEnum.goodsDetailFanliRateHelpUrl.getKey())); // 闄勫姞淇℃伅 OtherInfo otherInfo = new OtherInfo(); @@ -856,6 +868,9 @@ rewardCoupon.setDesc("鐢ㄨ繑鍒╁鍔卞埜鏈�楂樿繑"); rewardCoupon.setParams(params1.toString()); otherInfo.setRewardCoupon(rewardCoupon); + if ("ios".equalsIgnoreCase(acceptData.getPlatform()) + && configService.iosOnLining(Integer.parseInt(acceptData.getVersion()))) + otherInfo.setRewardCoupon(null); goodsDetail.setOtherInfo(otherInfo); CouponInfoVO couponInfo = goodsDetail.getCouponInfo(); @@ -883,7 +898,7 @@ } // 鍥炬枃璇︽儏 - extraVO.setDetailUrl("http://apph5.yeshitv.com/apppage/goods_img_pdd.html?id=" + id); + extraVO.setDetailUrl("http://apph5.banliapp.com/apppage/goods_img_pdd.html?id=" + id); String salesTip = pddGoods.getSalesTip(); if (!StringUtil.isNullOrEmpty(salesTip)) { -- Gitblit v1.8.0