admin
2025-02-25 30d8e227e8d823b6c38c3b9c90ac2df03b63befe
fanli/src/main/java/com/yeshi/fanli/controller/web/TLJFreeBuyGoodsController.java
@@ -76,7 +76,7 @@
         // 获取商品详情
         TaoBaoGoodsBrief goods = null;
         try {
            goods = TaoKeApiUtil.searchGoodsDetail(array.optLong(i));
            goods = TaoKeApiUtil.searchGoodsDetail(array.optString(i));
         } catch (TaobaoGoodsDownException e) {
            e.printStackTrace();
         }
@@ -84,7 +84,7 @@
         if (goods != null && goods.getCouponAmount() != null
               && goods.getCouponAmount().compareTo(new BigDecimal(0)) > 0) {
            // 券后价  1-2元
            BigDecimal couplePrice = TaoBaoUtil.getAfterUseCouplePrice(goods);
            BigDecimal couplePrice = TaoBaoUtil.getCouponPrice(goods);
            if (couplePrice.compareTo(new BigDecimal(1.0)) >= 0 && couplePrice.compareTo(new BigDecimal(2.0)) <= 0) {
               count++;
               tljFreeBuyGoodsService.addGoods(new TLJFreeBuyGoods(day, goods));