update
This commit is contained in:
parent
f7dd8f94ec
commit
0158f2ebf0
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user