Authored by biao

Merge branch 'hotfix/making-order'

@@ -444,7 +444,8 @@ class IndexController extends WebAction @@ -444,7 +444,8 @@ class IndexController extends WebAction
444 $paymentId = $this->post('paymentId', 15); // 支付ID 444 $paymentId = $this->post('paymentId', 15); // 支付ID
445 $paymentType = $this->post('paymentType', 1); // 默认在线支付 445 $paymentType = $this->post('paymentType', 1); // 默认在线支付
446 $remark = $this->post('remark', ''); // 备注信息 446 $remark = $this->post('remark', ''); // 备注信息
447 - $couponCode = $this->post('couponCode', null); // 优惠码 447 + $couponCode = $this->post('couponCode', null); // 优惠券
  448 + $promotionCode = $this->post('promotionCode', null); // 优惠码
448 $yohoCoin = $this->post('yohoCoin', 1); // YOHO币 449 $yohoCoin = $this->post('yohoCoin', 1); // YOHO币
449 $isPreContact = $this->post('isPreContact', false); // 送货前是否联系 450 $isPreContact = $this->post('isPreContact', false); // 送货前是否联系
450 $isPrintPrice = $this->post('isPrintPrice', true); // 是否打印价格 451 $isPrintPrice = $this->post('isPrintPrice', true); // 是否打印价格
@@ -452,7 +453,7 @@ class IndexController extends WebAction @@ -452,7 +453,7 @@ class IndexController extends WebAction
452 453
453 // 调用下单接口 454 // 调用下单接口
454 $result = CartModel::orderSub($uid, $addressId, $cartType, $deliveryTimeId, $deliveryWayId, $invoiceTitle, $invoiceId, 455 $result = CartModel::orderSub($uid, $addressId, $cartType, $deliveryTimeId, $deliveryWayId, $invoiceTitle, $invoiceId,
455 - $paymentId, $paymentType, $remark, $couponCode, $yohoCoin, $isPreContact, $isPrintPrice, $redEnvelopes); 456 + $paymentId, $paymentType, $remark, $couponCode, $promotionCode, $yohoCoin, $isPreContact, $isPrintPrice, $redEnvelopes);
456 // 判断是否下单成功 457 // 判断是否下单成功
457 if (empty($result['data']['order_code'])) { 458 if (empty($result['data']['order_code'])) {
458 UdpLog::info('【结算信息】判断是否下单成功','order_code'.$result['data']['order_code']); 459 UdpLog::info('【结算信息】判断是否下单成功','order_code'.$result['data']['order_code']);