Commit e853fb0e authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 8175cb30
...@@ -35,6 +35,13 @@ public class VipBean implements Serializable { ...@@ -35,6 +35,13 @@ public class VipBean implements Serializable {
private String buttonText; private String buttonText;
private int payToModel;//0 app内部,1.只签约转支付宝浏览器支付 2.带uid转支付宝小程序(暂定只有一个小程序) private int payToModel;//0 app内部,1.只签约转支付宝浏览器支付 2.带uid转支付宝小程序(暂定只有一个小程序)
//带uid转支付宝小程序 第一个小程序
private String payToModel2FirstAlipayAppid;
//带uid转支付宝小程序 挽留用的第二个小程序
private String payToModel2SecondAlipayAppid;
public String getButtonText() { public String getButtonText() {
return buttonText; return buttonText;
} }
...@@ -122,5 +129,13 @@ public class VipBean implements Serializable { ...@@ -122,5 +129,13 @@ public class VipBean implements Serializable {
public void setPayToModel(int payToModel) { public void setPayToModel(int payToModel) {
this.payToModel = payToModel; this.payToModel = payToModel;
} }
public String getPayToModel2FirstAlipayAppid() {
return payToModel2FirstAlipayAppid;
}
public String getPayToModel2SecondAlipayAppid() {
return payToModel2SecondAlipayAppid;
}
} }
} }
...@@ -182,7 +182,7 @@ class VipPresenter : BasePresenter<VipView>() { ...@@ -182,7 +182,7 @@ class VipPresenter : BasePresenter<VipView>() {
}) })
} }
fun getVipPayParams(payChannel: String, pid: String, isInstallAlipay: Boolean) { fun getVipPayParams(payChannel: String, pid: String, isInstallAlipay: Boolean,enter:String) {
val vo = HashMap<String, Any>() val vo = HashMap<String, Any>()
// vo["payChannel"] = payChannel // vo["payChannel"] = payChannel
vo["payChannel"] = "ALIPAY" vo["payChannel"] = "ALIPAY"
...@@ -207,7 +207,7 @@ class VipPresenter : BasePresenter<VipView>() { ...@@ -207,7 +207,7 @@ class VipPresenter : BasePresenter<VipView>() {
val code: Int = baseResponse.getStatus() val code: Int = baseResponse.getStatus()
when (code) { when (code) {
200 -> { 200 -> {
view.getVipPayParamsSuc("ALIPAY", baseResponse.data) view.getVipPayParamsSuc("ALIPAY", baseResponse.data,enter)
} }
else -> { else -> {
view.showToast(baseResponse.getMessage()) view.showToast(baseResponse.getMessage())
......
...@@ -7,7 +7,7 @@ import com.duben.speedplayletu.mvp.model.WxPayParamBean ...@@ -7,7 +7,7 @@ import com.duben.speedplayletu.mvp.model.WxPayParamBean
interface VipView : BaseView { interface VipView : BaseView {
fun getVipProductSuc(data: VipBean) fun getVipProductSuc(data: VipBean)
fun getVipPayParamsSuc(payChannel:String,data: WxPayParamBean) fun getVipPayParamsSuc(payChannel:String,data: WxPayParamBean,enter:String)
fun queryVipOrderSuc(isPay:Boolean) fun queryVipOrderSuc(isPay:Boolean)
fun getUserSuc(data: UserBean) fun getUserSuc(data: UserBean)
......
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