| | |
| | | VideoType vt = new VideoType(Constant.VIDEO_TYPE_VIP); |
| | | vt.setName("VIP"); |
| | | vt.setShow("1"); |
| | | vt.setIcon("https://hbimg.huabanimg.com/12834704bb4aa39342c2fb51e0c644181b13997b70eb-CqlE1I_fw658/format/webp"); |
| | | vt.setIcon("https://hbimg.huabanimg.com/4690ea8f8144f3d46c11e417c77daa5debcb71f9201f-WpAbfw_fw658/format/jpg"); |
| | | sty.setType(vt); |
| | | boolean isC = false; |
| | | for (SuperVideoType svt : list) { |
| | |
| | | |
| | | String parentId = request.getParameter("ParentId"); |
| | | |
| | | //是否包含VIP的分类 |
| | | boolean containsVIPType = false; |
| | | try { |
| | | List<Integer> vipTypeList = Arrays.asList(Constant.vipTypes); |
| | | containsVIPType = vipTypeList.contains(Integer.parseInt(parentId)); |
| | | } catch (Exception e) { |
| | | |
| | | } |
| | | if (StringUtil.isNullOrEmpty(parentId)) { |
| | | out.print(JsonUtil.loadFalseJson("请上传ParentId")); |
| | | return; |
| | |
| | | list.remove(0); |
| | | } |
| | | |
| | | } else if ((Constant.VIDEO_TYPE_VIP + "").equalsIgnoreCase(parentId)) { |
| | | } else if (containsVIPType) { |
| | | //VIP分类 |
| | | VideoType type = new VideoType(Constant.VIDEO_TYPE_VIP); |
| | | type.setName("全部"); |
| | | type.setShow("1"); |
| | | type.setCategoryType("area"); |
| | | list.add(type); |
| | | |
| | | //VIP根分类 |
| | | if (Constant.VIDEO_TYPE_VIP == Integer.parseInt(parentId)) { |
| | | VideoType type = new VideoType(Constant.VIDEO_TYPE_VIP); |
| | | type.setName("全部"); |
| | | type.setShow("1"); |
| | | type.setCategoryType("area"); |
| | | list.add(type); |
| | | |
| | | |
| | | type = new VideoType(Constant.VIDEO_TYPE_VIP_MOVIE); |
| | | type.setName("电影"); |
| | | type.setShow("1"); |
| | | type.setCategoryType("area"); |
| | | list.add(type); |
| | | type = new VideoType(Constant.VIDEO_TYPE_VIP_MOVIE); |
| | | type.setName("电影"); |
| | | type.setShow("1"); |
| | | type.setCategoryType("area"); |
| | | list.add(type); |
| | | |
| | | type = new VideoType(Constant.VIDEO_TYPE_VIP_TV); |
| | | type.setName("电视剧"); |
| | | type.setShow("1"); |
| | | type.setCategoryType("area"); |
| | | list.add(type); |
| | | type = new VideoType(Constant.VIDEO_TYPE_VIP_TV); |
| | | type.setName("电视剧"); |
| | | type.setShow("1"); |
| | | type.setCategoryType("area"); |
| | | list.add(type); |
| | | |
| | | |
| | | type = new VideoType(Constant.VIDEO_TYPE_VIP_CARTOON); |
| | | type.setName("动漫"); |
| | | type.setShow("1"); |
| | | type.setCategoryType("area"); |
| | | list.add(type); |
| | | type = new VideoType(Constant.VIDEO_TYPE_VIP_CARTOON); |
| | | type.setName("动漫"); |
| | | type.setShow("1"); |
| | | type.setCategoryType("area"); |
| | | list.add(type); |
| | | |
| | | // type = new VideoType(Constant.VIDEO_TYPE_VIP_SHOW); |
| | | // type.setName("综艺"); |
| | | // type.setShow("1"); |
| | | // type.setCategoryType("area"); |
| | | // list.add(type); |
| | | } else { |
| | | VideoType type = new VideoType(Integer.parseInt(parentId)); |
| | | type.setName("全部"); |
| | | type.setShow("1"); |
| | | type.setCategoryType("area"); |
| | | list.add(type); |
| | | } |
| | | |
| | | |
| | | } else { |
| | | List<VideoType> clist = classService.getFirstTypeList(parentId); |
| | |
| | | if ("310".equals(typeid)) { // 310做的特殊处理:前端处理的是HomeAd,所有需要返回homeAD的形式 |
| | | Object vi = json.get("VideoInfo"); |
| | | json.put("Video", vi); |
| | | //设置banner的比例 |
| | | object.put("bannerSizeRate", "0.56"); |
| | | } |
| | | json.put("LinkType", "1"); |
| | | array.add(json); |