| | |
| | | |
| | | import com.newvideo.funtv.FunTVUtil2; |
| | | import com.newvideo.service.inter.FunTV2Service; |
| | | import com.newvideo.vo.AcceptData; |
| | | import org.hibernate.HibernateException; |
| | | import org.hibernate.Session; |
| | | import org.springframework.cache.annotation.Cacheable; |
| | |
| | | //爱奇艺 |
| | | case 14: |
| | | return soHuUtil.getShowType(videoid); |
| | | //搜狐 |
| | | //搜狐 |
| | | case 15: |
| | | return youKuService.getShowType(videoid); |
| | | //优酷 |
| | |
| | | } |
| | | |
| | | @Cacheable(value = "homeCache", key = "'getPlayUrl'+'-'+#detailSystemId+'-'+#id+'-'+#type+'-'+#resourceid") |
| | | public PlayUrl getPlayUrl(String detailSystemId, String id, String type, int resourceid, String videoid) { |
| | | public PlayUrl getPlayUrl(AcceptData acceptData, String detailSystemId, String id, String type, int resourceid, String videoid) { |
| | | if (resourceid == 13) {// 爱奇艺 |
| | | return iqiyiUtil.getPlayUrl(detailSystemId, resourceid + "", type, id); |
| | | } else if (resourceid == 14) {// 搜狐 |
| | |
| | | else if (resourceid == 19)// 乐视 |
| | | return funTVService.getPlayUrl(detailSystemId, id, type, resourceid, videoid); |
| | | else if (resourceid == FunTVUtil2.RESOURCE_ID)// 风行 |
| | | return funTV2Service.getPlayUrl(detailSystemId, resourceid, id, videoid); |
| | | return funTV2Service.getPlayUrl(acceptData, detailSystemId, resourceid, id, videoid); |
| | | return null; |
| | | } |
| | | } |