Commit 9ff4156c authored by mengcuiguang2's avatar mengcuiguang2

代码优化

parent c337c476
...@@ -252,7 +252,7 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener, ...@@ -252,7 +252,7 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
1 -> { 1 -> {
wxPay(paramsBean, payToModel) wxPay(paramsBean, payToModel)
} }
else ->{ else -> {
wxPay(paramsBean, payToModel) wxPay(paramsBean, payToModel)
} }
} }
...@@ -285,7 +285,7 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener, ...@@ -285,7 +285,7 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
4 -> { 4 -> {
goAlipaySignExecute(paramsBean.params.params) goAlipaySignExecute(paramsBean.params.params)
} }
else ->{ else -> {
alipay(paramsBean) alipay(paramsBean)
} }
} }
...@@ -441,6 +441,10 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener, ...@@ -441,6 +441,10 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
} }
fun wxPay(wxParanBean: WxPayParamBean, payToModel: Int) { fun wxPay(wxParanBean: WxPayParamBean, payToModel: Int) {
if (payToModel == 1) {
// 纯签约
AppConfig.enterAlipay = true
}
val data = wxParanBean.params val data = wxParanBean.params
//实例化微信支付策略 //实例化微信支付策略
val wxPay: WXPay = WXPay.getInstance() val wxPay: WXPay = WXPay.getInstance()
......
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