Commit 39b113e4 authored by mengcuiguang2's avatar mengcuiguang2

代码优化

parent 7d1fd44f
......@@ -24,13 +24,13 @@ class VipPresenter : BasePresenter<VipView>() {
if (isLinkView)
return
view.hideLoading()
// view.hideLoading()
}
override fun onError(e: Throwable?) {
if (isLinkView) return
view.hideLoading()
// view.hideLoading()
}
override fun onNext(baseResponse: BaseResponse<UserBean>) {
......
......@@ -757,11 +757,11 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
timer!!.stop()
timer = null
}
timer = CountDownTimerSupport(8000, 1000)
timer = CountDownTimerSupport(9000, 1000)
timer!!.setOnCountDownTimerListener(object : OnCountDownTimerListener {
override fun onTick(millisUntilFinished: Long) {
if (!isFinishing) {
if(millisUntilFinished==3000L){
if(millisUntilFinished==4000L){
vipPresenter.getMyInfo()
}
}
......@@ -769,6 +769,7 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
override fun onFinish() {
if (!isFinishing) {
hideLoading()
vipPresenter.getMyInfo()
}
}
......
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