From b37275dba6b782bf3bb3817c4504f6cdef1bef7c Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期四, 18 三月 2021 18:38:51 +0800
Subject: [PATCH] APP首页顶部标签兼容

---
 src/main/java/com/yeshi/buwan/controller/parser/UserParser.java |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/yeshi/buwan/controller/parser/UserParser.java b/src/main/java/com/yeshi/buwan/controller/parser/UserParser.java
index 1f3fd7e..bde84a6 100644
--- a/src/main/java/com/yeshi/buwan/controller/parser/UserParser.java
+++ b/src/main/java/com/yeshi/buwan/controller/parser/UserParser.java
@@ -7,6 +7,7 @@
 import com.yeshi.buwan.dto.user.LoginInfoDto;
 import com.yeshi.buwan.exception.user.LoginUserException;
 import com.yeshi.buwan.exception.user.RegisterUserException;
+import com.yeshi.buwan.pptv.PPTVUtil;
 import com.yeshi.buwan.service.imp.*;
 import com.yeshi.buwan.service.manager.SolrAlbumVideoDataManager;
 import com.yeshi.buwan.util.*;
@@ -199,7 +200,7 @@
     private List<VideoDetailInfo> createSearchVideoDetailsVO(VideoInfo video) {
         List<VideoDetailInfo> detailList = new ArrayList<>();
         if (video.getVideoType() != null && (Integer.parseInt(video.getVideoType().getId() + "") == VideoCategoryConstant.CATEGORY_DIANSHIJU || Integer.parseInt(video.getVideoType().getId() + "") == VideoCategoryConstant.CATEGORY_DONGMAN)) {
-            if (video.getVideocount()!=null&& video.getVideocount() <= 5) {
+            if (video.getVideocount() != null && video.getVideocount() <= 5) {
                 for (int i = 0; i < video.getVideocount(); i++) {
                     VideoDetailInfo detail = new VideoDetailInfo();
                     detail.setTag((i + 1) + "");
@@ -355,11 +356,14 @@
         }
 
         List<Long> resourceList = videoResouceUtil.getAvailableResourceIds(acceptData.getDetailSystem(), acceptData.getVersion());
+
+
         String cacheMD5 = "0";
         if (resourceList != null && resourceList.size() > 0)
             for (Long l : resourceList)
                 cacheMD5 += "#" + l;
         cacheMD5 = StringUtil.Md5(cacheMD5);
+
 
         VideoListResultVO videoListResultVO = searchService.searchNew(acceptData.getDetailSystem().getId(), request.getRemoteAddr(),
                 acceptData.getUid(), key, pageIndex, Integer.parseInt(type),
@@ -417,6 +421,13 @@
                     typeList.add(vt);
                 }
             }
+
+            vt = new VideoType();
+            vt.setId(Constant.SEARCH_RESULT_TYPE_HIGH_DEFINITION);
+            vt.setName("楂樻竻");
+            typeList.add(vt);
+
+
             JSONArray array1 = new JSONArray();
             for (VideoType vt1 : typeList)
                 array1.add(StringUtil.outPutResultJson(vt1));

--
Gitblit v1.8.0