Authored by 郝肖肖

微信锁单 接口添加

... ... @@ -59,9 +59,10 @@ class PayController extends AbstractAction
break;
}
//锁单接口
$paymentId = $this->get('payment_type', 0);
$prePayInfo = CartData::savePrePayInfo($uid, $orderCode, $paymentId);
UdpLog::info("【锁订单接口】,orderCode:{$orderCode}", array('orderDetail' => $orderDetail, 'prePayInfo' => $prePayInfo));
UdpLog::info("【锁订单接口】,orderCode:{$orderCode}", array('prePayInfo' => $prePayInfo));
$totalFee = $orderDetail['data']['payment_amount'] * 100;
$reqParams = new AliwapReqparams($orderCode, $totalFee, '有货订单号:' . $orderCode, '', $orderDetail['data']['create_time'], '', false);
... ... @@ -124,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();
... ...