|
|
@@ -38,6 +38,7 @@ public class PayOrderService {
|
|
|
}
|
|
|
order.setPayType(param.getPayType());
|
|
|
//微信支付
|
|
|
+ orderService.updateById(param);
|
|
|
if(param.getPayType() == 0 || param.getPayType() == 1 || param.getPayType() == 2){
|
|
|
order.setOpenId(param.getOpenId());
|
|
|
return wechatPayService.openPay(order,ipAddr);
|
|
|
@@ -46,7 +47,6 @@ public class PayOrderService {
|
|
|
if(param.getPayType() == 3 || param.getPayType() == 4 ){
|
|
|
return alipayService.openPay(order,ipAddr);
|
|
|
}
|
|
|
- orderService.updateById(param);
|
|
|
return null;
|
|
|
}
|
|
|
|