| | |
| | | import com.yeshi.buwan.tencent.TencentVideoUtil; |
| | | import com.yeshi.buwan.util.StringUtil; |
| | | import com.yeshi.buwan.util.log.VideoLogFactory; |
| | | import com.yeshi.buwan.videos.bilibili.BilibiliUtil; |
| | | import com.yeshi.buwan.vo.AcceptData; |
| | | import com.yeshi.buwan.youku.YouKuUtil; |
| | | import org.hibernate.HibernateException; |
| | |
| | | |
| | | @Resource |
| | | private TencentVideoUtil tencentVideoUtil; |
| | | |
| | | @Resource |
| | | private BilibiliVideoService bilibiliVideoService; |
| | | |
| | | @Resource |
| | | private BilibiliUtil bilibiliUtil; |
| | | |
| | | @SuppressWarnings("unchecked") |
| | | // @Cacheable(value = "homeCache", key = "'getVideoInfo'+'-'+#videoid+'-'+#resourceId+'-'+#cacheMD5") |
| | |
| | | return mogoTVService.getVideoDetailList(videoid, page, pageSize); |
| | | case TencentVideoUtil.RESOURCE_ID: |
| | | return tencentVideoService.getVideoDetailList(videoid, page, pageSize); |
| | | case BilibiliUtil.RESOURCE_ID: |
| | | return bilibiliVideoService.getVideoDetailList(videoid, page, pageSize); |
| | | default: |
| | | return null; |
| | | } |
| | |
| | | return mogoTVUtil.getPlayUrl(detailSystemId, id, type, resourceid, videoid); |
| | | case TencentVideoUtil.RESOURCE_ID: |
| | | return tencentVideoUtil.getPlayUrl(detailSystemId, id, type, resourceid, videoid); |
| | | case BilibiliUtil.RESOURCE_ID: |
| | | return bilibiliUtil.getPlayUrl(detailSystemId, id, type, resourceid, videoid); |
| | | default: |
| | | return null; |
| | | } |