修复连麦看观众列表json转换丢失数据问题

This commit is contained in:
2022-11-26 14:36:50 +08:00
parent a8d4d64174
commit 2843131151
2 changed files with 38 additions and 2 deletions

View File

@@ -200,8 +200,7 @@ public class SocketRyClient {
mListener.onUpUserList(map.getJSONObject("ct"));
EventBus.getDefault().post(new LiveAudienceEvent()
.setType(LiveAudienceEvent.LiveAudienceType.LINK_MIC_UPDATE_AUDIENCE_LIST)
.setObject( GsonUtils.fromJson(map.getJSONObject("ct").getString("userlist"), new TypeToken<List<LiveUserGiftBean>>() {
}.getType()))
.setObject(JSON.parseArray(map.getJSONObject("ct").getString("userlist"), LiveUserGiftBean.class))
);
break;
case Constants.CARD: