修改测试问题,shouye ytuijian
This commit is contained in:
parent
59678be822
commit
2424fd1e06
@ -381,10 +381,13 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
|||||||
public void onSuccess(LiveInfoModel data) {
|
public void onSuccess(LiveInfoModel data) {
|
||||||
|
|
||||||
LiveRoomCheckLivePresenter mCheckLivePresenter = new LiveRoomCheckLivePresenter(mContext, (liveBean, liveType, liveTypeVal, liveSdk) -> {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
LiveAudienceActivity.forward(mContext, liveBean, liveType, liveTypeVal, "", 0, liveSdk);
|
LiveAudienceActivity.forward(mContext, liveBean2, liveType, liveTypeVal, "", 0, liveSdk);
|
||||||
|
|
||||||
});
|
});
|
||||||
//讲数据转成json
|
//讲数据转成json
|
||||||
|
@ -174,10 +174,13 @@ public class SearchActivity extends AbsActivity {
|
|||||||
@Override
|
@Override
|
||||||
public void onSuccess(LiveInfoModel data) {
|
public void onSuccess(LiveInfoModel data) {
|
||||||
LiveRoomCheckLivePresenter mCheckLivePresenter = new LiveRoomCheckLivePresenter(mContext, (liveBean, liveType, liveTypeVal, liveSdk) -> {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
LiveAudienceActivity.forward(mContext, liveBean, liveType, liveTypeVal, "", 0, liveSdk);
|
LiveAudienceActivity.forward(mContext, liveBean2, liveType, liveTypeVal, "", 0, liveSdk);
|
||||||
});
|
});
|
||||||
//讲数据转成json
|
//讲数据转成json
|
||||||
String json = GsonUtils.toJson(data);
|
String json = GsonUtils.toJson(data);
|
||||||
|
Loading…
Reference in New Issue
Block a user