示例#1
0
  private static void setCurrentPrice(ProductInfo productInfo) {

    Elements elements = doc.select("p.textPriceOur");

    String currentPriceStr = elements.get(0).childNode(0).childNode(0).toString();

    Money productCurrentPrice = new Money(currentPriceStr);

    productInfo.setProductCurrentPrice(productCurrentPrice);

    PrintLogTool.info(category.message() + "当前价格:[" + productCurrentPrice + "]", logger);
  }