From 30d8e227e8d823b6c38c3b9c90ac2df03b63befe Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 25 二月 2025 16:41:22 +0800 Subject: [PATCH] 淘宝转链接口更新 --- fanli/src/main/java/com/yeshi/fanli/service/impl/brand/BrandShopCaheServiceImpl.java | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 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..70300b7 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; @@ -39,7 +40,7 @@ * @return */ @Override - public boolean addBrandShopTB(BrandInfo brandInfo, Long auctionId, Long sellerId) { + public boolean addBrandShopTB(BrandInfo brandInfo, String auctionId, Long sellerId) { TaoBaoShop taoBaoShop = taoBaoShopService.getTaoBaoShop(auctionId, sellerId); if (taoBaoShop == null) return true; @@ -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