...
|
...
|
@@ -523,6 +523,16 @@ class IndexController extends AbstractAction |
|
|
$couponCode = $this->post('couponCode', null);
|
|
|
$yohoCoin = $this->post('yohoCoin', 1);
|
|
|
$skuList = $this->post('skuList', '');
|
|
|
$cookieData = $this->getCookie('order-info', null);//获取电子发票信息
|
|
|
//电子发票信息数组
|
|
|
$invoices = array();
|
|
|
if (!empty($cookieData)) {
|
|
|
$orderInfo = json_decode($cookieData, true);
|
|
|
$invoices['invoices_type_id'] = $orderInfo['invoiceType'];//发票类型ID
|
|
|
$invoices['invoices_type'] = $orderInfo['invoicesType'];//发票类型 /**纸质 1 ,电子 2 */
|
|
|
$invoices['receiverMobile'] = $orderInfo['receiverMobile'];//发票人手机
|
|
|
$invoices['invoices_title'] = $orderInfo['invoiceText'];//发票抬头
|
|
|
}
|
|
|
|
|
|
/* 判断是否是友盟过来的用户 */
|
|
|
$userAgent = null;
|
...
|
...
|
@@ -535,13 +545,6 @@ class IndexController extends AbstractAction |
|
|
/* 模拟APP的User-Agent */
|
|
|
$userAgent = isset($unionInfo['client_id']) ? 'YOHO!Buy/3.8.2.259(Model/PC;Channel/' . $unionInfo['client_id'] . ';uid/' . $uid . ')' : null;
|
|
|
}
|
|
|
//电子发票信息数组
|
|
|
$invoices = array(
|
|
|
'invoices_type_id' => $this->post('invoiceType', null),//发票类型ID
|
|
|
'invoices_type' => $this->post('invoices_type', null),//发票类型 /**纸质 1 ,电子 2 */
|
|
|
'receiverMobile' => $this->post('receiverMobile', null),//发票人手机
|
|
|
'invoices_title' => $this->post('invoiceText', null),//发票抬头
|
|
|
);
|
|
|
$result = CartModel::orderSub($uid, $addressId, $cartType, $deliveryTime, $deliveryWay, $invoices, $paymentId, $paymentType, $remark, $couponCode, $yohoCoin, $skuList, $unionKey, $userAgent);
|
|
|
|
|
|
// 记录下单异常的数据
|
...
|
...
|
|