From 2a593ddac16e06f1ff55edca22ea568f07b068ba Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期五, 02 四月 2021 19:15:18 +0800
Subject: [PATCH] 3.9.0bug修改

---
 src/main/java/com/yeshi/buwan/util/video/VideoDetailUtil.java |   46 ++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 42 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/yeshi/buwan/util/video/VideoDetailUtil.java b/src/main/java/com/yeshi/buwan/util/video/VideoDetailUtil.java
index 241f304..66d2803 100644
--- a/src/main/java/com/yeshi/buwan/util/video/VideoDetailUtil.java
+++ b/src/main/java/com/yeshi/buwan/util/video/VideoDetailUtil.java
@@ -11,16 +11,18 @@
 import com.yeshi.buwan.funtv.FunTVUtil2;
 import com.yeshi.buwan.iqiyi.util.IqiyiUtil;
 import com.yeshi.buwan.iqiyi.util.IqiyiUtil2;
+import com.yeshi.buwan.mogotv.MogoTVUtil;
 import com.yeshi.buwan.service.imp.VideoInfoService;
 import com.yeshi.buwan.service.imp.juhe.FunTVService;
 import com.yeshi.buwan.service.imp.juhe.IqiyiService;
 import com.yeshi.buwan.service.imp.juhe.SoHuService;
-import com.yeshi.buwan.service.inter.juhe.FunTV2Service;
-import com.yeshi.buwan.service.inter.juhe.Iqiyi2Service;
+import com.yeshi.buwan.service.inter.juhe.*;
 import com.yeshi.buwan.sohu.SoHuUtil;
+import com.yeshi.buwan.tencent.TencentVideoUtil;
 import com.yeshi.buwan.util.StringUtil;
 import com.yeshi.buwan.util.log.VideoLogFactory;
 import com.yeshi.buwan.vo.AcceptData;
+import com.yeshi.buwan.youku.YouKuUtil;
 import org.hibernate.HibernateException;
 import org.hibernate.Session;
 import org.slf4j.Logger;
@@ -64,11 +66,29 @@
     @Resource
     private VideoInfoService videoInfoService;
 
+    @Resource
+    private YouKuUtil youKuUtil;
+
+    @Resource
+    private YouKuService youKuService;
+
+    @Resource
+    private MogoTVUtil mogoTVUtil;
+
+    @Resource
+    private MogoTVService mogoTVService;
+
+    @Resource
+    private TencentVideoService tencentVideoService;
+
+    @Resource
+    private TencentVideoUtil tencentVideoUtil;
+
     @SuppressWarnings("unchecked")
 //	@Cacheable(value = "homeCache", key = "'getVideoInfo'+'-'+#videoid+'-'+#resourceId+'-'+#cacheMD5")
-    public VideoInfo getVideoInfo(String detailSystemId,final String videoid, final String resourceId, final List<Long> reList,
+    public VideoInfo getVideoInfo(String detailSystemId, final String videoid, final String resourceId, final List<Long> reList,
                                   String cacheMD5) {
-        playLogger.info(VideoLogFactory.createVideoDetailLog(detailSystemId, videoid,resourceId));
+        playLogger.info(VideoLogFactory.createVideoDetailLog(detailSystemId, videoid, resourceId));
         return (VideoInfo) videoInfoDao.excute(new HibernateCallback<VideoInfo>() {
             public VideoInfo doInHibernate(Session session) throws HibernateException {
 
@@ -198,6 +218,12 @@
                 return videoInfoService.getVideoDetailList(videoid, vr, page, pageSize);
             case SoHuUtil.RESOURCE_ID:
                 return soHuService.getVideoDetailList(videoid, page, pageSize);
+            case YouKuUtil.RESOURCE_ID:
+                return youKuService.getVideoDetailList(videoid, page, pageSize);
+            case MogoTVUtil.RESOURCE_ID:
+                return mogoTVService.getVideoDetailList(videoid, page, pageSize);
+            case TencentVideoUtil.RESOURCE_ID:
+                return tencentVideoService.getVideoDetailList(videoid, page, pageSize);
             default:
                 return null;
         }
@@ -217,6 +243,10 @@
                 return funTVService.getLatestVideoDetail(videoid);
             case SoHuUtil.RESOURCE_ID:
                 return soHuService.getLatestVideoDetail(videoid);
+            case YouKuUtil.RESOURCE_ID:
+                return soHuService.getLatestVideoDetail(videoid);
+            case MogoTVUtil.RESOURCE_ID:
+                return soHuService.getLatestVideoDetail(videoid);
             default:
                 return null;
         }
@@ -234,6 +264,8 @@
             case FunTVUtil.RESOURCE_ID:
                 return funTVService.getShowType(videoid);
             case SoHuUtil.RESOURCE_ID:
+                return soHuUtil.getShowType(videoid);
+            case YouKuUtil.RESOURCE_ID:
                 return soHuUtil.getShowType(videoid);
             default:
                 return 1;
@@ -256,6 +288,12 @@
                 return soHuUtil.getPlayUrl(detailSystemId, resourceid + "", type, id);
             case AcFunUtil.RESOURCE_ID:
                 return videoInfoService.getPlayUrl(detailSystemId, id, type, resourceid, videoid);
+            case YouKuUtil.RESOURCE_ID:
+                return youKuUtil.getPlayUrl(detailSystemId, id, type, resourceid, videoid);
+            case MogoTVUtil.RESOURCE_ID:
+                return mogoTVUtil.getPlayUrl(detailSystemId, id, type, resourceid, videoid);
+            case TencentVideoUtil.RESOURCE_ID:
+                return tencentVideoUtil.getPlayUrl(detailSystemId, id, type, resourceid, videoid);
             default:
                 return null;
         }

--
Gitblit v1.8.0