...
|
...
|
@@ -58,6 +58,11 @@ class PayController extends AbstractAction |
|
|
$this->helpJsRedirect('订单已经取消', 'window.location="' . Helpers::url('/home/orders/detail', array('order_code' => $orderCode)) .'";');
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
//锁单接口
|
|
|
$paymentId = $this->get('payment_type', 0);
|
|
|
$prePayInfo = CartData::savePrePayInfo($uid, $orderCode, $paymentId);
|
|
|
UdpLog::info("【锁订单接口】,orderCode:{$orderCode}", array('prePayInfo' => $prePayInfo));
|
|
|
|
|
|
$totalFee = $orderDetail['data']['payment_amount'] * 100;
|
|
|
$reqParams = new AliwapReqparams($orderCode, $totalFee, '有货订单号:' . $orderCode, '', $orderDetail['data']['create_time'], '', false);
|
...
|
...
|
@@ -120,6 +125,10 @@ class PayController extends AbstractAction |
|
|
UdpLog::info('【wechat支付】获取wechat标识为空', 'orderCode:'.$orderCode.'uid:'.$uid.'返回openId:'.$openId);
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
//锁单接口
|
|
|
$prePayInfo = CartData::savePrePayInfo($uid, $orderCode, 22);
|
|
|
UdpLog::info("【微信锁订单接口】,orderCode:{$orderCode}", array('prePayInfo' => $prePayInfo));
|
|
|
|
|
|
//统一下单
|
|
|
$tools = new JsApiPay();
|
...
|
...
|
@@ -162,7 +171,7 @@ class PayController extends AbstractAction |
|
|
UdpLog::info('【支付时间校验】参数校验', 'orderCode:'.$orderCode.'uid:'.$uid.'payment:'.$payment);
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
|
|
|
$res = CartData::savePrePayInfo($uid, $orderCode, $payment);
|
|
|
$data = array('code'=>$res['code'],'message'=>$res['message'],'data'=>$res['data']);
|
|
|
|
...
|
...
|
|