| | |
| | | import java.math.BigDecimal;
|
| | |
|
| | | import org.yeshi.utils.BigDecimalUtil;
|
| | | import org.yeshi.utils.NumberUtil;
|
| | |
|
| | | import com.yeshi.fanli.dto.vip.goods.VIPGoodsInfo;
|
| | | import com.yeshi.fanli.util.MoneyBigDecimalUtil;
|
| | |
| | |
|
| | | return StringUtil.Md5(orderSn + "#" + goodsId + "#" + sizeId);
|
| | | }
|
| | |
|
| | | public static String parseGoodsIdByUrl(String url) {
|
| | | try {
|
| | | if (url.contains(".vip.com/") && (url.contains("detail-") || url.contains("product-"))) {
|
| | | String preUrl = url.split("\\?")[0];
|
| | | String goodsId = preUrl.split("-")[preUrl.split("-").length - 1].replace(".html", "").replace(".htm",
|
| | | "");
|
| | | if (NumberUtil.isNumeric(goodsId))
|
| | | return goodsId;
|
| | | }
|
| | | } catch (Exception e) {
|
| | | }
|
| | | return null;
|
| | | }
|
| | | }
|