Commit 5244e8be authored by mengcuiguang's avatar mengcuiguang

代码优化

parent c0a9a114
......@@ -313,7 +313,7 @@ public interface LoanService {
/**
* 是否展示礼物
*/
@POST("api/vedio/showTurn")
@POST("api/vedio/showTurn123")
Observable<BaseResponse<JsonObject>> getGift();
/**
......
......@@ -62,7 +62,7 @@ class AboutusActivity : BaseActivity(), View.OnClickListener {
// object : TTMediationTestTool.ImageCallBack {
// override fun loadImage(imageView: ImageView?, s: String?) {}
// })
readyGo(GiftActivity::class.java)
// readyGo(GiftActivity::class.java)
// VoiceRedEnvelopeManager.load(23,23)
true
}
......
......@@ -138,7 +138,7 @@ class MainFragment : LazyLoadBaseFragment(), HomeView, View.OnClickListener, OnR
} else {
homePresenter.topTabs()
homePresenter.orders()
homePresenter.getGift()
// homePresenter.getGift()
TrackManager.getInstance().getMyInfo()
showRecommendAct(recommendVedioBean)
}
......@@ -354,10 +354,15 @@ class MainFragment : LazyLoadBaseFragment(), HomeView, View.OnClickListener, OnR
this.recommendVedioBean = data
}
override fun giftSuc(flag: Boolean) {
if (flag && !isShowGiftAct) {
override fun giftSuc(showGiftflag: Boolean) {
if (showGiftflag && !isShowGiftAct) {
isShowGiftAct = true
Handler(Looper.getMainLooper()).postDelayed({
if (requireActivity().isFinishing) return@postDelayed
readyGo(GiftActivity::class.java)
}, 500)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment