Commit 5244e8be authored by mengcuiguang's avatar mengcuiguang

代码优化

parent c0a9a114
...@@ -313,7 +313,7 @@ public interface LoanService { ...@@ -313,7 +313,7 @@ public interface LoanService {
/** /**
* 是否展示礼物 * 是否展示礼物
*/ */
@POST("api/vedio/showTurn") @POST("api/vedio/showTurn123")
Observable<BaseResponse<JsonObject>> getGift(); Observable<BaseResponse<JsonObject>> getGift();
/** /**
......
...@@ -62,7 +62,7 @@ class AboutusActivity : BaseActivity(), View.OnClickListener { ...@@ -62,7 +62,7 @@ class AboutusActivity : BaseActivity(), View.OnClickListener {
// object : TTMediationTestTool.ImageCallBack { // object : TTMediationTestTool.ImageCallBack {
// override fun loadImage(imageView: ImageView?, s: String?) {} // override fun loadImage(imageView: ImageView?, s: String?) {}
// }) // })
readyGo(GiftActivity::class.java) // readyGo(GiftActivity::class.java)
// VoiceRedEnvelopeManager.load(23,23) // VoiceRedEnvelopeManager.load(23,23)
true true
} }
......
...@@ -138,7 +138,7 @@ class MainFragment : LazyLoadBaseFragment(), HomeView, View.OnClickListener, OnR ...@@ -138,7 +138,7 @@ class MainFragment : LazyLoadBaseFragment(), HomeView, View.OnClickListener, OnR
} else { } else {
homePresenter.topTabs() homePresenter.topTabs()
homePresenter.orders() homePresenter.orders()
homePresenter.getGift() // homePresenter.getGift()
TrackManager.getInstance().getMyInfo() TrackManager.getInstance().getMyInfo()
showRecommendAct(recommendVedioBean) showRecommendAct(recommendVedioBean)
} }
...@@ -354,10 +354,15 @@ class MainFragment : LazyLoadBaseFragment(), HomeView, View.OnClickListener, OnR ...@@ -354,10 +354,15 @@ class MainFragment : LazyLoadBaseFragment(), HomeView, View.OnClickListener, OnR
this.recommendVedioBean = data this.recommendVedioBean = data
} }
override fun giftSuc(flag: Boolean) { override fun giftSuc(showGiftflag: Boolean) {
if (flag && !isShowGiftAct) { if (showGiftflag && !isShowGiftAct) {
isShowGiftAct = true isShowGiftAct = true
readyGo(GiftActivity::class.java)
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