From 56481656c7de11cdca69c1a7dd69db176ffd9ecd Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 08 五月 2021 12:49:30 +0800 Subject: [PATCH] 华为屏蔽金币任务中的看海量视频,新增广告平台概率控制 --- src/main/java/com/yeshi/buwan/util/BaiduVideoUtil.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/yeshi/buwan/util/BaiduVideoUtil.java b/src/main/java/com/yeshi/buwan/util/BaiduVideoUtil.java index 959296c..8b079ef 100644 --- a/src/main/java/com/yeshi/buwan/util/BaiduVideoUtil.java +++ b/src/main/java/com/yeshi/buwan/util/BaiduVideoUtil.java @@ -12,7 +12,7 @@ import org.apache.commons.httpclient.HttpException; import org.apache.commons.httpclient.methods.GetMethod; -import com.yeshi.buwan.dao.BaseDao; +import com.yeshi.buwan.dao.base.BaseDao; import com.yeshi.buwan.domain.VideoDetailInfo; import com.yeshi.buwan.domain.VideoInfo; import com.yeshi.buwan.domain.VideoResource; @@ -84,7 +84,7 @@ if (siteArray == null || siteArray.size() == 0) return null; String site = siteArray.optJSONObject(0).optString("site"); - if (site != null && site.equalsIgnoreCase("iqiyi") && siteArray.size() == 1) + if (site != null && site.equalsIgnoreCase("juhe") && siteArray.size() == 1) return null; JSONArray actorArray = obj.optJSONArray("actor"); @@ -288,7 +288,7 @@ * vr = new VideoResource(); if * (url.getUrl().contains("letv.com")) { url.setResource(new * VideoResource("6")); } else if - * (url.getUrl().contains("iqiyi.com")) { + * (url.getUrl().contains("juhe.com")) { * url.setResource(new VideoResource("8")); } else if * (url.getUrl().contains("pptv.com")) { url.setResource(new * VideoResource("10")); } else if -- Gitblit v1.8.0