From 7becc97c5bfdd827b9a999c26746bb8e8bc3e25c Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期六, 13 三月 2021 16:23:36 +0800
Subject: [PATCH] 后台会员/会员订单查询,搜索结果高清标签添加,

---
 src/main/java/com/yeshi/buwan/controller/parser/ClassParser.java |   65 +++++++++++++++++++++-----------
 1 files changed, 43 insertions(+), 22 deletions(-)

diff --git a/src/main/java/com/yeshi/buwan/controller/parser/ClassParser.java b/src/main/java/com/yeshi/buwan/controller/parser/ClassParser.java
index 105f14c..3103027 100644
--- a/src/main/java/com/yeshi/buwan/controller/parser/ClassParser.java
+++ b/src/main/java/com/yeshi/buwan/controller/parser/ClassParser.java
@@ -184,7 +184,7 @@
             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) {
@@ -622,6 +622,14 @@
 
         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("璇蜂笂浼燩arentId"));
             return;
@@ -681,39 +689,50 @@
                 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);
@@ -850,6 +869,8 @@
             if ("310".equals(typeid)) { // 310鍋氱殑鐗规畩澶勭悊:鍓嶇澶勭悊鐨勬槸HomeAd锛屾墍鏈夐渶瑕佽繑鍥瀐omeAD鐨勫舰寮�
                 Object vi = json.get("VideoInfo");
                 json.put("Video", vi);
+                //璁剧疆banner鐨勬瘮渚�
+                object.put("bannerSizeRate", "0.56");
             }
             json.put("LinkType", "1");
             array.add(json);

--
Gitblit v1.8.0