| | |
| | | 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.YouKuService; |
| | | import com.yeshi.buwan.sohu.SoHuUtil; |
| | | 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; |
| | |
| | | |
| | | @Resource |
| | | private VideoInfoService videoInfoService; |
| | | |
| | | @Resource |
| | | private YouKuUtil youKuUtil; |
| | | |
| | | @Resource |
| | | private YouKuService youKuService; |
| | | |
| | | @SuppressWarnings("unchecked") |
| | | // @Cacheable(value = "homeCache", key = "'getVideoInfo'+'-'+#videoid+'-'+#resourceId+'-'+#cacheMD5") |
| | |
| | | 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); |
| | | default: |
| | | return null; |
| | | } |
| | |
| | | return funTVService.getLatestVideoDetail(videoid); |
| | | case SoHuUtil.RESOURCE_ID: |
| | | return soHuService.getLatestVideoDetail(videoid); |
| | | case YouKuUtil.RESOURCE_ID: |
| | | return soHuService.getLatestVideoDetail(videoid); |
| | | default: |
| | | return null; |
| | | } |
| | |
| | | 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; |
| | |
| | | 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); |
| | | default: |
| | | return null; |
| | | } |