From 1d28c69a351ae108f4116a10f19f615c89a660a2 Mon Sep 17 00:00:00 2001
From: admin <2780501319@qq.com>
Date: 星期四, 01 四月 2021 01:58:43 +0800
Subject: [PATCH] 首页数据修改

---
 src/main/java/com/yeshi/buwan/pptv/PPTVUtil.java |   24 +++++++++++++++++++++++-
 1 files changed, 23 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/yeshi/buwan/pptv/PPTVUtil.java b/src/main/java/com/yeshi/buwan/pptv/PPTVUtil.java
index f6cb833..2536893 100644
--- a/src/main/java/com/yeshi/buwan/pptv/PPTVUtil.java
+++ b/src/main/java/com/yeshi/buwan/pptv/PPTVUtil.java
@@ -38,7 +38,11 @@
             case "鍔ㄦ极":
                 videoType = VideoConstant.VIDEO_CATEGORY_DONGMAN;
                 break;
+            case "灏戝効":
+                videoType = 312;
+                break;
             default:
+                return null;
         }
 
         return (long) videoType;
@@ -61,7 +65,11 @@
         String score = series.getScore();
 
         String tag = "";
-        VideoType videoType = new VideoType(getVideoType(series));
+        Long videoTypeId = getVideoType(series);
+        if (videoTypeId == null)
+            return null;
+        VideoType videoType = new VideoType(videoTypeId);
+
 
         //鐢靛奖
         if (videoType.getId() == VideoConstant.VIDEO_CATEGORY_DIANYING) {
@@ -80,6 +88,20 @@
             } else {
                 tag = series.getPublishTime().split(" ")[0];
             }
+        } else {
+            if ("1".equalsIgnoreCase(series.getSeriesCount())) {
+                tag = "璇勫垎锛�" + score;
+            } else {
+                if (series.getCurrentNum() != null && series.getSeriesCount().trim().equalsIgnoreCase(series.getCurrentNum().trim())) {
+                    tag = series.getSeriesCount() + "闆嗗叏";
+                } else {
+                    if (series.getCurrentNum() != null)
+                        tag = "鏇存柊鑷�" + series.getCurrentNum() + "闆�";
+                    else {
+                        tag = "鏇存柊鑷�" + series.getSeriesCount() + "闆�";
+                    }
+                }
+            }
         }
 
 

--
Gitblit v1.8.0