admin
2025-02-25 30d8e227e8d823b6c38c3b9c90ac2df03b63befe
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();