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; }