| | |
| | | // 获取商品详情 |
| | | TaoBaoGoodsBrief goods = null; |
| | | try { |
| | | goods = TaoKeApiUtil.searchGoodsDetail(array.optLong(i)); |
| | | goods = TaoKeApiUtil.searchGoodsDetail(array.optString(i)); |
| | | } catch (TaobaoGoodsDownException e) { |
| | | e.printStackTrace(); |
| | | } |
| | |
| | | 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)); |