Commit eda5d071 authored by mengcuiguang2's avatar mengcuiguang2

代码优化

parent 8e8ef62c
......@@ -152,6 +152,7 @@ class VipPresenter : BasePresenter<VipView>() {
fun getVipProducts(isInstallAlipay:Boolean) {
val vo = HashMap<String, Any>()
vo["isInstallAlipay"] = isInstallAlipay
vo["oaid"] = MintsApplication.OAID
view.showLoading("加载中...")
AppHttpManager.getInstance(loanApplication)
......@@ -188,6 +189,7 @@ class VipPresenter : BasePresenter<VipView>() {
vo["payChannel"] = payChannel
vo["pid"] = pid
vo["isInstallAlipay"] = isInstallAlipay
vo["oaid"] = MintsApplication.OAID
AppHttpManager.getInstance(loanApplication)
.call(loanService.getVipPayParams(vo),
object : BaseSubscriber<BaseResponse<WxPayParamBean>>() {
......@@ -220,6 +222,7 @@ class VipPresenter : BasePresenter<VipView>() {
fun queryVipOrder(tid: String, isPay: Boolean) {
val vo = HashMap<String, Any>()
vo["tid"] = tid
vo["oaid"] = MintsApplication.OAID
AppHttpManager.getInstance(loanApplication)
.call(loanService.queryVipOrder(vo),
object : BaseSubscriber<BaseResponse<Any>>() {
......
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