diff --git a/main/src/main/java/com/yunbao/main/activity/MainActivity.java b/main/src/main/java/com/yunbao/main/activity/MainActivity.java index 94e20c2b3..d8d593a23 100644 --- a/main/src/main/java/com/yunbao/main/activity/MainActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/MainActivity.java @@ -381,10 +381,13 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene public void onSuccess(LiveInfoModel data) { LiveRoomCheckLivePresenter mCheckLivePresenter = new LiveRoomCheckLivePresenter(mContext, (liveBean, liveType, liveTypeVal, liveSdk) -> { - if (liveBean == null) { + //讲数据转成json + String json = GsonUtils.toJson(data); + LiveBean liveBean2 = GsonUtils.fromJson(json, LiveBean.class); + if (liveBean2 == null) { return; } - LiveAudienceActivity.forward(mContext, liveBean, liveType, liveTypeVal, "", 0, liveSdk); + LiveAudienceActivity.forward(mContext, liveBean2, liveType, liveTypeVal, "", 0, liveSdk); }); //讲数据转成json diff --git a/main/src/main/java/com/yunbao/main/activity/SearchActivity.java b/main/src/main/java/com/yunbao/main/activity/SearchActivity.java index 4bacce869..d9b1f047e 100644 --- a/main/src/main/java/com/yunbao/main/activity/SearchActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/SearchActivity.java @@ -174,10 +174,13 @@ public class SearchActivity extends AbsActivity { @Override public void onSuccess(LiveInfoModel data) { LiveRoomCheckLivePresenter mCheckLivePresenter = new LiveRoomCheckLivePresenter(mContext, (liveBean, liveType, liveTypeVal, liveSdk) -> { - if (liveBean == null) { + //讲数据转成json + String json = GsonUtils.toJson(data); + LiveBean liveBean2 = GsonUtils.fromJson(json, LiveBean.class); + if (liveBean2 == null) { return; } - LiveAudienceActivity.forward(mContext, liveBean, liveType, liveTypeVal, "", 0, liveSdk); + LiveAudienceActivity.forward(mContext, liveBean2, liveType, liveTypeVal, "", 0, liveSdk); }); //讲数据转成json String json = GsonUtils.toJson(data);