From 1eac0e8d2e70dd5a6271793616748209c7dfa916 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期四, 15 十月 2020 10:18:07 +0800
Subject: [PATCH] 缓存bug修复

---
 src/main/java/com/yeshi/buwan/controller/parser/HomeParser.java |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/yeshi/buwan/controller/parser/HomeParser.java b/src/main/java/com/yeshi/buwan/controller/parser/HomeParser.java
index 0f8c71d..2567b24 100644
--- a/src/main/java/com/yeshi/buwan/controller/parser/HomeParser.java
+++ b/src/main/java/com/yeshi/buwan/controller/parser/HomeParser.java
@@ -208,7 +208,7 @@
                         zhibo.setName("缇庡コ");
                         zhibo.setHasMore(true);
                         zhibo.setColumns(2);
-                        zhibo.setHomeVideoList(meiNvZhiBoUtil.getMeiNvZhiBo(MeiNvZhiBoUtil.MEINV_KK,detailSystem,acceptData.getVersion()));
+                        zhibo.setHomeVideoList(meiNvZhiBoUtil.getMeiNvZhiBo(MeiNvZhiBoUtil.MEINV_KK, detailSystem, acceptData.getVersion()));
                         List<VideoInfo> zhiboVideo = new ArrayList<VideoInfo>();
                         for (HomeVideo v : zhibo.getHomeVideoList())
                             zhiboVideo.add(v.getVideo());
@@ -258,6 +258,7 @@
 
         for (HomeType ht : list) {
             for (int i = 0; i < ht.getHomeVideoList().size(); i++) {
+                //鏀瑰彉鍥剧墖
                 if (JuheVideoUtil.isNeedDelete(ht.getHomeVideoList().get(i).getVideo(), detailSystem.getId())) {
                     ht.getHomeVideoList().remove(i);
                     i--;
@@ -416,7 +417,10 @@
                 JSONObject attentionInfo = new JSONObject();
                 attentionInfo.put("Name", info.getName());
                 attentionInfo.put("Picture", info.getPicture());
-                attentionInfo.put("UpdateInfo", "鏇存柊:" + TimeUtil.getCommentTime(Long.parseLong(info.getUpdatetime())));
+                if (StringUtil.isNullOrEmpty(info.getUpdatetime()))
+                    attentionInfo.put("UpdateInfo", "鏇存柊:" + TimeUtil.getCommentTime(info.getCreatetime()));
+                else
+                    attentionInfo.put("UpdateInfo", "鏇存柊:" + TimeUtil.getCommentTime(Long.parseLong(info.getUpdatetime())));
                 attentionInfo.put("IsAttention", isAttention);
                 obj.put("Attention", attentionInfo);
             }
@@ -490,6 +494,7 @@
 
     }
 
+
     public List<HomeVideo> getZhiBoVideoList() throws Exception {
         List<HomeVideo> list = new ArrayList<HomeVideo>();
         String result = get("http://www.kktv1.com/CDN/output/M/3/I/10002002/P/start-0_offset-6_platform-2/json.js");

--
Gitblit v1.8.0