From 856d99bb5adf7f8670206b01750bc0260b8666d2 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期三, 01 二月 2023 15:36:55 +0800
Subject: [PATCH] 修复客户端特价首页商品列表无数据的问题

---
 fanli/src/main/java/com/yeshi/fanli/util/jd/JDUtil.java |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/util/jd/JDUtil.java b/fanli/src/main/java/com/yeshi/fanli/util/jd/JDUtil.java
index 0d5888f..67d2159 100644
--- a/fanli/src/main/java/com/yeshi/fanli/util/jd/JDUtil.java
+++ b/fanli/src/main/java/com/yeshi/fanli/util/jd/JDUtil.java
@@ -453,7 +453,7 @@
      * @param goodsBrief
      * @return
      */
-    public static BigDecimal getQuanPrice(JDGoods jdGoods) {
+    public static BigDecimal getCouponPrice(JDGoods jdGoods) {
         BigDecimal price = null;
         JDPingouInfo pinGouInfo = jdGoods.getPinGouInfo();
         if (pinGouInfo == null) {
@@ -530,6 +530,11 @@
         return list;
     }
 
+    public static boolean isJDLink(String url) {
+        return url.startsWith("https://item.m.jd.com/product/") || url.startsWith("http://item.m.jd.com/product/")
+                || url.startsWith("https://item.jd.com/") || url.startsWith("http://item.jd.com/")||url.startsWith("https://u.jd.com/");
+    }
+
     /**
      * 鏍规嵁閾炬帴鎻愬彇鍟嗗搧ID
      *

--
Gitblit v1.8.0