// 内部方法 private static void setSerialNo(ProductInfo product, String url) { HttpServletRequest request = HttpRequestParser.parse(url); String uri = request.getRequestURI(); String[] pageArray = StringUtil.split(uri, DepreciateConstants.SEPARATOR_CHAR_SLASH); String page = pageArray[pageArray.length - 1]; String productSerialNo = StringUtil.split(page, DepreciateConstants.SEPARATOR_CHAR_PERIOD)[0]; product.setProductSerialNo(productSerialNo); PrintLogTool.info(category.message() + "商品编号:[" + productSerialNo + "]", logger); }