Commit 5d09eb76 authored by mengcuiguang2's avatar mengcuiguang2

代码优化

parent 40dbb673
......@@ -236,20 +236,22 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
return
}
if (vipList != null && vipList!!.size > 0) {
val vipBean = vipList!![vipAdapter.getPosition()]
if (vipBean.trialTrialBack > 0) {
// 授权支付
if (userBean?.isAlipaySet!!) {
alipay(paramsBean)
} else {
alipayLoginDialog(paramsBean)
}
} else {
// 普通支付
alipay(paramsBean)
}
}
// if (vipList != null && vipList!!.size > 0) {
// val vipBean = vipList!![vipAdapter.getPosition()]
// if (vipBean.trialTrialBack > 0) {
// // 授权支付
// if (userBean?.isAlipaySet!!) {
// alipay(paramsBean)
// } else {
// alipayLoginDialog(paramsBean)
// }
// } else {
// // 普通支付
// alipay(paramsBean)
// }
// }
}
}
}
......
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