From a7454d8a6325566753358b37ffabfae2faa0ca7f Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期三, 28 四月 2021 19:46:49 +0800
Subject: [PATCH] 拼多多授权调整,支持小程序跳转

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/brand/BrandShopCaheServiceImpl.java |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/brand/BrandShopCaheServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/brand/BrandShopCaheServiceImpl.java
index 2802f6b..cac015c 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/brand/BrandShopCaheServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/brand/BrandShopCaheServiceImpl.java
@@ -5,6 +5,7 @@
 
 import javax.annotation.Resource;
 
+import com.yeshi.fanli.exception.pdd.PDDApiException;
 import com.yeshi.fanli.util.Constant;
 import org.springframework.stereotype.Service;
 
@@ -97,8 +98,13 @@
 		pddfilter.setPageSize(100);
 		pddfilter.setSortType(6);
 		pddfilter.setMerchantType(3);
-		
-		PDDGoodsResult result = PinDuoDuoApiUtil.searchGoods(pddfilter, Constant.PDD_SEARCH_CUSTOMER_PARAMS);
+
+		PDDGoodsResult result = null;
+		try {
+			result = PinDuoDuoApiUtil.searchGoods(pddfilter, Constant.PDD_SEARCH_CUSTOMER_PARAMS);
+		} catch (PDDApiException e) {
+			e.printStackTrace();
+		}
 		if (result != null && result.getGoodsList() != null && result.getGoodsList().size() > 0) {
 			boolean addShop = true;
 			List<PDDGoodsDetail> goodsList = result.getGoodsList();

--
Gitblit v1.8.0