1、游戏IM修复 完成

This commit is contained in:
老皮 2024-09-23 17:09:12 +08:00
parent 5f4bae667b
commit 6678dbb6d6

View File

@ -227,14 +227,14 @@ public class AppContext extends CommonAppContext {
JSONObject map = received.getMsg().getJSONObject(0); JSONObject map = received.getMsg().getJSONObject(0);
sendStartAnchorLive(map); sendStartAnchorLive(map);
} else if (message.getTargetId().contains("v")) { } else if (message.getTargetId().contains("v")) {
/*String contentJson = ((TextMessage) message.getContent()).getContent(); String contentJson = ((TextMessage) message.getContent()).getContent();
Log.e("wewe", contentJson); Log.e("wewe", contentJson);
SudGameSocketImEvent sudGameSocketImEvent = new Gson().fromJson(contentJson, SudGameSocketImEvent.class); SudGameSocketImEvent sudGameSocketImEvent = new Gson().fromJson(contentJson, SudGameSocketImEvent.class);
if (sudGameSocketImEvent.getMsg().isEmpty()) { if (sudGameSocketImEvent.getMsg().isEmpty()) {
return false; return false;
} }
sudGameSocketImEvent.getMsg().get(0).setTime(time); sudGameSocketImEvent.getMsg().get(0).setTime(time);
Bus.get().post(sudGameSocketImEvent);*/ Bus.get().post(sudGameSocketImEvent);
} }
//主播页面 //主播页面
if (TextUtils.isEmpty(PortraitLiveManager.liveID) && SocketSwClient.mSocketHandler != null) { if (TextUtils.isEmpty(PortraitLiveManager.liveID) && SocketSwClient.mSocketHandler != null) {