Commit 9ff4156c authored by mengcuiguang2's avatar mengcuiguang2

代码优化

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