update
This commit is contained in:
parent
f7dd8f94ec
commit
0158f2ebf0
@ -307,6 +307,7 @@ public class Live implements ApplicationContextAware {
|
|||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
JSONObject json = JSONObject.parseObject(new String(bytes, StandardCharsets.UTF_8));
|
JSONObject json = JSONObject.parseObject(new String(bytes, StandardCharsets.UTF_8));
|
||||||
|
System.out.println("json = " + json);
|
||||||
com.yutou.bilibili.Tools.Log.i(json.toJSONString());
|
com.yutou.bilibili.Tools.Log.i(json.toJSONString());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
int popular = LiveUtils.bytesToInt2(bytes, 0);
|
int popular = LiveUtils.bytesToInt2(bytes, 0);
|
||||||
@ -316,6 +317,7 @@ public class Live implements ApplicationContextAware {
|
|||||||
}else{
|
}else{
|
||||||
upData.setLive(0);
|
upData.setLive(0);
|
||||||
}
|
}
|
||||||
|
Log.i(upData.getRoomid()+" >>> "+upData.getLive()+" >> "+popular);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -330,7 +332,6 @@ public class Live implements ApplicationContextAware {
|
|||||||
|
|
||||||
public void checkLive() {
|
public void checkLive() {
|
||||||
boolean isLive = LiveUtils.isLivePlayer(roomId);
|
boolean isLive = LiveUtils.isLivePlayer(roomId);
|
||||||
upData.setLive(isLive ? 1 : 0);
|
|
||||||
if(SaveLive.getInstance().checkLive(roomId)){
|
if(SaveLive.getInstance().checkLive(roomId)){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -378,7 +378,6 @@ public class LiveUtils {
|
|||||||
if(!Live.lives.containsKey(roomId)){
|
if(!Live.lives.containsKey(roomId)){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Log.i(roomId+" >> "+Live.lives.get(roomId).geData().getLive());
|
|
||||||
return Live.lives.get(roomId).geData().getLive()==1;
|
return Live.lives.get(roomId).geData().getLive()==1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user