修复直播状态

This commit is contained in:
Yutousama 2022-04-11 19:08:41 +08:00
parent 78abe9a16b
commit 9d72939d95
1 changed files with 2 additions and 2 deletions

View File

@ -354,7 +354,7 @@ public class LiveUtils {
}
public static boolean getLiveState(int roomId) {
return liveStateMap.get(roomId);
return liveStateMap.getOrDefault(roomId, false);
}
public static void reloadLiveState(int roomId) {
@ -363,7 +363,7 @@ public class LiveUtils {
try {
liveStateMap.put(roomId, json.getJSONObject("data").getInteger("live_status") == 1);
} catch (Exception e) {
System.out.println("json = " + json);
Log.i("live state = "+json.toString());
}
}
}