From 0158f2ebf0c339ea297afbc1577ba468543334b2 Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Mon, 11 Apr 2022 18:39:34 +0800 Subject: [PATCH] update --- src/main/java/com/yutou/bilibili/BiliBili/Live.java | 3 ++- src/main/java/com/yutou/bilibili/BiliBili/LiveUtils.java | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/yutou/bilibili/BiliBili/Live.java b/src/main/java/com/yutou/bilibili/BiliBili/Live.java index aa26f77..e288a8c 100644 --- a/src/main/java/com/yutou/bilibili/BiliBili/Live.java +++ b/src/main/java/com/yutou/bilibili/BiliBili/Live.java @@ -307,6 +307,7 @@ public class Live implements ApplicationContextAware { } else { try { JSONObject json = JSONObject.parseObject(new String(bytes, StandardCharsets.UTF_8)); + System.out.println("json = " + json); com.yutou.bilibili.Tools.Log.i(json.toJSONString()); } catch (Exception e) { int popular = LiveUtils.bytesToInt2(bytes, 0); @@ -316,6 +317,7 @@ public class Live implements ApplicationContextAware { }else{ upData.setLive(0); } + Log.i(upData.getRoomid()+" >>> "+upData.getLive()+" >> "+popular); } } @@ -330,7 +332,6 @@ public class Live implements ApplicationContextAware { public void checkLive() { boolean isLive = LiveUtils.isLivePlayer(roomId); - upData.setLive(isLive ? 1 : 0); if(SaveLive.getInstance().checkLive(roomId)){ return; } diff --git a/src/main/java/com/yutou/bilibili/BiliBili/LiveUtils.java b/src/main/java/com/yutou/bilibili/BiliBili/LiveUtils.java index cff29cc..d865b9c 100644 --- a/src/main/java/com/yutou/bilibili/BiliBili/LiveUtils.java +++ b/src/main/java/com/yutou/bilibili/BiliBili/LiveUtils.java @@ -378,7 +378,6 @@ public class LiveUtils { if(!Live.lives.containsKey(roomId)){ return false; } - Log.i(roomId+" >> "+Live.lives.get(roomId).geData().getLive()); return Live.lives.get(roomId).geData().getLive()==1; }