Commit eda5d071 authored by mengcuiguang2's avatar mengcuiguang2

代码优化

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