This commit is contained in:
Yutousama 2021-05-20 21:49:26 +08:00
parent 953f1336a8
commit a42cc0ed7c

View File

@ -174,8 +174,8 @@ public class Live implements ApplicationContextAware {
heartBeattimer.schedule(new sendHeartbeat(), 2000, 20000); heartBeattimer.schedule(new sendHeartbeat(), 2000, 20000);
init = false; init = false;
} }
Log.i(AppTools.getToDayTimeToString(startTime),roomId,LiveUtils.getHex(bytes.array()).substring(0,16));
decompress(bytes.array()); decompress(bytes.array());
Log.i(AppTools.getToDayTimeToString(startTime),roomId,LiveUtils.getHex(bytes.array()).substring(16,32));
} }
@Override @Override
@ -538,10 +538,16 @@ public class Live implements ApplicationContextAware {
JSONObject.parseObject(new String(bytes, StandardCharsets.UTF_8)); JSONObject.parseObject(new String(bytes, StandardCharsets.UTF_8));
processData(new String(bytes, StandardCharsets.UTF_8), null); processData(new String(bytes, StandardCharsets.UTF_8), null);
} catch (Exception e2) { } catch (Exception e2) {
try {
JSONObject.parseObject(msg);
processData(msg,bytes);
}catch (Exception e3) {
Log.e(e2); Log.e(e2);
com.yutou.bilibili.Tools.Log.i("---------ERROR start-----");
com.yutou.bilibili.Tools.Log.i(msg); com.yutou.bilibili.Tools.Log.i(msg);
com.yutou.bilibili.Tools.Log.i("---------ERROR -----"); com.yutou.bilibili.Tools.Log.i("---------ERROR end-----");
LiveUtils.printHex(bytes); // LiveUtils.printHex(bytes);
}
} }
} }