yujian
2019-07-31 f4548a3ee46afe45da4ee2a42dc169c575deee9f
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/ConfigControllerV2.java
@@ -4,6 +4,7 @@
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.yeshi.utils.JsonUtil;
@@ -41,6 +42,7 @@
 * @author Administrator
 *
 */
@Controller
@RequestMapping("api/v2/config")
public class ConfigControllerV2 {
@@ -244,10 +246,17 @@
            || url.contains("m.tb.cn"))) {
         data.put("baichuan", true);// 采用阿里百川的方式加载webview
         data.put("goodsDetail", true);// 需要拦截商品详情
      } else if (url != null && (url.contains("jd.com"))) {
         data.put("baichuan", false);// 不需要采用阿里百川的方式加载webview
         data.put("goodsDetail", true);// 不需要拦截商品详情
      } else if (url != null && (url.contains("yangkeduo.com"))) {
         data.put("baichuan", false);// 不需要采用阿里百川的方式加载webview
         data.put("goodsDetail", true);// 不需要拦截商品详情
      } else {
         data.put("baichuan", false);// 不需要采用阿里百川的方式加载webview
         data.put("goodsDetail", false);// 不需要拦截商品详情
      }
      out.print(JsonUtil.loadTrueResult(data));
   }