修改测试问题,shouye ytuijian

This commit is contained in:
18401019693 2022-08-10 18:31:14 +08:00
parent 788fc9faa0
commit 59678be822
4 changed files with 32 additions and 26 deletions

View File

@ -9,9 +9,9 @@ ext {
] ]
manifestPlaceholders = [ manifestPlaceholders = [
// //
// serverHost : "https://napi.yaoulive.com", serverHost : "https://napi.yaoulive.com",
// //
serverHost : "https://ceshi.yaoulive.com", // serverHost : "https://ceshi.yaoulive.com",
// //
txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB", txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB",

View File

@ -30,8 +30,8 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="22dp" android:layout_height="22dp"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:src="@mipmap/instructors" android:layout_marginBottom="-5dp"
android:visibility="visible" /> android:visibility="gone" />
</RelativeLayout> </RelativeLayout>
<LinearLayout <LinearLayout

View File

@ -165,6 +165,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
private int messageNumber = 0, numberMe = 1; private int messageNumber = 0, numberMe = 1;
private ImageView waitingTip; private ImageView waitingTip;
private FloatBannerView floatBanner; private FloatBannerView floatBanner;
private boolean isClickfloatBanner = false;
@Override @Override
@ -371,33 +372,38 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
findViewById(R.id.banner_click).setOnClickListener(new View.OnClickListener() { findViewById(R.id.banner_click).setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
String Uid = floatBanner.getUid(); if (!isClickfloatBanner) {
LiveNetManager.get(mContext) isClickfloatBanner = true;
.getLiveInfo(String.valueOf(Uid), new com.yunbao.common.http.base.HttpCallback<LiveInfoModel>() { String Uid = floatBanner.getUid();
@Override LiveNetManager.get(mContext)
public void onSuccess(LiveInfoModel data) { .getLiveInfo(String.valueOf(Uid), new com.yunbao.common.http.base.HttpCallback<LiveInfoModel>() {
@Override
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) { if (liveBean == null) {
return; return;
} }
LiveAudienceActivity.forward(mContext, liveBean, liveType, liveTypeVal, "", 0, liveSdk); LiveAudienceActivity.forward(mContext, liveBean, liveType, liveTypeVal, "", 0, liveSdk);
}); });
//讲数据转成json //讲数据转成json
String json = GsonUtils.toJson(data); String json = GsonUtils.toJson(data);
LiveBean liveBean = GsonUtils.fromJson(json, LiveBean.class); LiveBean liveBean = GsonUtils.fromJson(json, LiveBean.class);
mCheckLivePresenter.checkLive(liveBean); mCheckLivePresenter.checkLive(liveBean);
isClickfloatBanner = false;
}
} @Override
public void onError(String error) {
@Override RouteUtil.forwardUserHome(mContext, String.valueOf(Uid), 0);
public void onError(String error) { isClickfloatBanner = false;
}
});
RouteUtil.forwardUserHome(mContext, String.valueOf(Uid), 0); }
}
});
} }
}); });
//选中监听 //选中监听

View File

@ -34,7 +34,7 @@ public class FloatBannerView extends FrameLayout {
private ClipPathCircleImage clipImage1, clipImage2, clipImage3; private ClipPathCircleImage clipImage1, clipImage2, clipImage3;
private List<AnchorRecommendItemModel> list = new ArrayList<>(); private List<AnchorRecommendItemModel> list = new ArrayList<>();
//默认定时器时间 //默认定时器时间
private int delayMillis = 1500; private int delayMillis = 1400;
//Handler定时加载下一张的数据 //Handler定时加载下一张的数据
private Handler bannerHandler = new Handler(); private Handler bannerHandler = new Handler();
private int index = 0; private int index = 0;