修改测试问题,shouye ytuijian

This commit is contained in:
18401019693 2022-08-10 19:04:43 +08:00
parent 59678be822
commit 2424fd1e06
2 changed files with 10 additions and 4 deletions

View File

@ -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

View File

@ -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);