| | |
| | | |
| | | List<HomeAd> list = homeAdService.getHomeAdList(detailSystem); |
| | | |
| | | // 测试跳转小程序 |
| | | // JSONObject xcx = new JSONObject(); |
| | | // xcx.put("thumb", |
| | | // "http://img.zcool.cn/community/0169235af03daea801206aba8664d7.jpeg@260w_195h_1c_1e_1o_100sh.jpg"); |
| | | // xcx.put("title", "测试标题"); |
| | | // xcx.put("desc", "简介"); |
| | | // xcx.put("path", "pages/index/index"); |
| | | // xcx.put("username", "gh_33b9bea57aff"); |
| | | // xcx.put("url", "http://video.yeshitv.com"); |
| | | |
| | | // 测试标题 |
| | | // HomeAd homeAd = new HomeAd(); |
| | | // homeAd.setClazz("com"); |
| | | // homeAd.setLinkType(5); |
| | | // homeAd.setOrderby(0); |
| | | // homeAd.setPicture( |
| | | // "http://img.zcool.cn/community/0169235af03daea801206aba8664d7.jpeg@260w_195h_1c_1e_1o_100sh.jpg"); |
| | | // homeAd.setVideo(new VideoInfo(1 + "")); |
| | | // homeAd.setParams(xcx.toString()); |
| | | // homeAd.setTitle("标题"); |
| | | // list.add(homeAd); |
| | | |
| | | if (acceptData.getPlatform().equalsIgnoreCase("ios"))// IOS测试 |
| | | { |
| | | |
| | |
| | | } else { |
| | | classParser.getRecommendCategoryVideoBanner(acceptData, request, out); |
| | | } |
| | | |
| | | } |
| | | |
| | | // 首页类型获取 |
| | |
| | | return; |
| | | } |
| | | |
| | | DetailSystem detailSystem = systemService.getDetailSystemByPackage(acceptData.getPackageName()); |
| | | |
| | | List<Long> resourceList = videoResouceUtil.getAvailableResourceIds(acceptData.getPlatform(), acceptData.getVersion()); |
| | | |
| | | VideoInfo info = (videoDeailUtil.getVideoInfo(videoId, resourceId, resourceList, |
| | | VideoInfo info = (videoDeailUtil.getVideoInfo(detailSystem.getId(), videoId, resourceId, resourceList, |
| | | CacheUtil.getMD5Long(resourceList))); |
| | | |
| | | List<VideoType> typeList = classService.getVideoTypeList(info.getId()); |
| | |
| | | // version)); |
| | | |
| | | // 过滤版权视频关键字 |
| | | DetailSystem detailSystem = systemService.getDetailSystemByPackage(acceptData.getPackageName()); |
| | | |
| | | // 统计添加 |
| | | // statisticsService.addStatistics(detailSystem.getId(), videoId); |
| | | |