From 62a447d89331aee1feae7724c7616aa1bb2cfe79 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 16 十月 2024 14:28:37 +0800 Subject: [PATCH] 将CMQ替换为rabbitmq --- 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