From 190d6bc6aa7e4ca33c281bd9785339f3bddaf11e Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期六, 08 五月 2021 12:43:37 +0800
Subject: [PATCH] bug修复

---
 fanli/src/main/java/com/yeshi/fanli/controller/wxmp/v1/GoodsController.java |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/wxmp/v1/GoodsController.java b/fanli/src/main/java/com/yeshi/fanli/controller/wxmp/v1/GoodsController.java
index af2ca06..c669d15 100644
--- a/fanli/src/main/java/com/yeshi/fanli/controller/wxmp/v1/GoodsController.java
+++ b/fanli/src/main/java/com/yeshi/fanli/controller/wxmp/v1/GoodsController.java
@@ -12,6 +12,7 @@
 
 import com.yeshi.fanli.entity.SystemEnum;
 import com.yeshi.fanli.util.*;
+import com.yeshi.fanli.vo.pdd.PDDConvertLinkResultVO;
 import org.json.simple.JSONArray;
 import org.springframework.stereotype.Controller;
 import org.springframework.web.bind.annotation.RequestMapping;
@@ -513,9 +514,9 @@
 		goodsDetail.setOtherInfo(otherInfo);
 
 		CouponInfoVO couponInfo = goodsDetail.getCouponInfo();
-		PDDPromotionUrl convertUrl = null;
+		PDDConvertLinkResultVO convertUrl = null;
 		if (couponInfo != null) {
-			convertUrl = PinDuoDuoApiUtil.convert(id, PinDuoDuoApiUtil.PID_COUPON + "", null,false);
+			convertUrl = PinDuoDuoApiUtil.convert(pddGoods.getGoodsSign(), PinDuoDuoApiUtil.PID_COUPON + "", null,false);
 			if (convertUrl != null)
 				couponInfo.setLink(convertUrl.getUrl());
 		}

--
Gitblit v1.8.0