Authored by 郝肖肖

微信锁单 接口添加

@@ -59,9 +59,10 @@ class PayController extends AbstractAction @@ -59,9 +59,10 @@ class PayController extends AbstractAction
59 break; 59 break;
60 } 60 }
61 61
  62 + //锁单接口
62 $paymentId = $this->get('payment_type', 0); 63 $paymentId = $this->get('payment_type', 0);
63 $prePayInfo = CartData::savePrePayInfo($uid, $orderCode, $paymentId); 64 $prePayInfo = CartData::savePrePayInfo($uid, $orderCode, $paymentId);
64 - UdpLog::info("【锁订单接口】,orderCode:{$orderCode}", array('orderDetail' => $orderDetail, 'prePayInfo' => $prePayInfo)); 65 + UdpLog::info("【锁订单接口】,orderCode:{$orderCode}", array('prePayInfo' => $prePayInfo));
65 66
66 $totalFee = $orderDetail['data']['payment_amount'] * 100; 67 $totalFee = $orderDetail['data']['payment_amount'] * 100;
67 $reqParams = new AliwapReqparams($orderCode, $totalFee, '有货订单号:' . $orderCode, '', $orderDetail['data']['create_time'], '', false); 68 $reqParams = new AliwapReqparams($orderCode, $totalFee, '有货订单号:' . $orderCode, '', $orderDetail['data']['create_time'], '', false);
@@ -124,6 +125,10 @@ class PayController extends AbstractAction @@ -124,6 +125,10 @@ class PayController extends AbstractAction
124 UdpLog::info('【wechat支付】获取wechat标识为空', 'orderCode:'.$orderCode.'uid:'.$uid.'返回openId:'.$openId); 125 UdpLog::info('【wechat支付】获取wechat标识为空', 'orderCode:'.$orderCode.'uid:'.$uid.'返回openId:'.$openId);
125 break; 126 break;
126 } 127 }
  128 +
  129 + //锁单接口
  130 + $prePayInfo = CartData::savePrePayInfo($uid, $orderCode, 22);
  131 + UdpLog::info("【微信锁订单接口】,orderCode:{$orderCode}", array('prePayInfo' => $prePayInfo));
127 132
128 //统一下单 133 //统一下单
129 $tools = new JsApiPay(); 134 $tools = new JsApiPay();