|
@@ -74,11 +74,7 @@ class ShoppingCartPayOrderController: BaseViewController {
|
|
|
orderPayView.totalProductPrice = self.totalProductPrice!
|
|
|
orderPayView.commitOrderTransBlock = {
|
|
|
[weak self] (paraMdl) in
|
|
|
-// self?.orderCreateApi(paraMdl: paraMdl)
|
|
|
-
|
|
|
- // just test
|
|
|
- let vc = ShoppingCartFinishPayController()
|
|
|
- self?.navigationController?.pushViewController(vc, animated: true)
|
|
|
+ self?.orderCreateApi(paraMdl: paraMdl)
|
|
|
}
|
|
|
orderPayView.jumpNavBlock = {
|
|
|
[weak self] (jumpType) in
|
|
@@ -135,16 +131,12 @@ class ShoppingCartPayOrderController: BaseViewController {
|
|
|
self?.payAlipayApi(orderPayModel: orderBackModel as! OrderCreateBackModel)
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
- self.payWeixinpayApi(orderPayModel: orderBackModel as! OrderCreateBackModel)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 微信支付
|
|
|
func payWeixinpayApi(orderPayModel: OrderCreateBackModel) {
|
|
|
- SwiftMoyaNetWorkServicePay.shared().payWeixinpayApi(paraMdl: orderPayModel) { [weak self] (data) -> (Void) in
|
|
|
- print(data)
|
|
|
-
|
|
|
+ SwiftMoyaNetWorkServicePay.shared().payWeixinpayApi(paraMdl: orderPayModel) { [weak self] (data) -> (Void) in
|
|
|
let vc = ShoppingCartFinishPayController()
|
|
|
vc.payStatus = true
|
|
|
self?.navigationController?.pushViewController(vc, animated: true)
|
|
@@ -154,8 +146,6 @@ class ShoppingCartPayOrderController: BaseViewController {
|
|
|
// 支付宝支付
|
|
|
func payAlipayApi(orderPayModel: OrderCreateBackModel) {
|
|
|
SwiftMoyaNetWorkServicePay.shared().payAlipayApi(paraMdl: orderPayModel) { [weak self] (data) -> (Void) in
|
|
|
- print(data)
|
|
|
-
|
|
|
let vc = ShoppingCartFinishPayController()
|
|
|
vc.payStatus = true
|
|
|
self?.navigationController?.pushViewController(vc, animated: true)
|