From 26f7accb815f55f18f8eedfca4324700a96884ec Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 26 八月 2020 18:23:49 +0800 Subject: [PATCH] 资金验证优化 --- fanli/src/main/java/com/yeshi/fanli/controller/client/v2/GoodsControllerV2.java | 9 +++++---- 1 files changed, 5 insertions(+), 4 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 7316795..74484c3 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 @@ -970,7 +970,7 @@ CouponInfoVO couponInfo = goodsDetail.getCouponInfo(); PDDPromotionUrl convertUrl = null; if (couponInfo != null) { - convertUrl = PinDuoDuoApiUtil.convert(id, PinDuoDuoApiUtil.PID_COUPON + "", null); + convertUrl = PinDuoDuoApiUtil.convert(id, PinDuoDuoApiUtil.PID_COUPON + "", null, false); if (convertUrl != null) couponInfo.setLink(convertUrl.getUrl()); } @@ -1781,7 +1781,8 @@ return; } - PDDPromotionUrl convertUrl = PinDuoDuoApiUtil.convert(id, pid + "", uid + ""); + boolean auth = PinDuoDuoApiUtil.isAuth(pid, uid + ""); + PDDPromotionUrl convertUrl = PinDuoDuoApiUtil.convert(id, pid + "", uid + "", !auth); JSONObject data = new JSONObject(); data.put("native", true); data.put("jumpLink", convertUrl.getUrl()); @@ -1853,8 +1854,8 @@ String pid = SuningApiUtil.PID_BUY; if (!SystemInfoUtil.hasFunctions(acceptData.getSystem(), SystemFunction.fanli)) { - pid=SuningApiUtil.PID_COUPON; - uid=null; + pid = SuningApiUtil.PID_COUPON; + uid = null; } else { if (uid == null || uid <= 0) { out.print(JsonUtil.loadFalseResult(1, "鐢ㄦ埛ID涓嶈兘涓虹┖")); -- Gitblit v1.8.0