This commit is contained in:
Yutousama 2022-04-11 18:39:34 +08:00
parent f7dd8f94ec
commit 0158f2ebf0
2 changed files with 2 additions and 2 deletions

View File

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

View File

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