...
|
...
|
@@ -334,8 +334,12 @@ class IndexController extends AbstractAction |
|
|
$this->echoJson($order);
|
|
|
return;
|
|
|
}
|
|
|
$userData = UserData::userData($uid);
|
|
|
$mobile = empty($userData['data']) || empty($userData['data']['mobile']) ? '' : $userData['data']['mobile']; //发票人手机
|
|
|
$addresslist = UserData::addressTextData($uid); //获取地址列表
|
|
|
//获取所选地址的手机号码
|
|
|
foreach ($addresslist['data'] as $addresskey) {
|
|
|
if ($addresskey['address_id'] == $orderInfo['address']['address_id'])
|
|
|
$mobile = $addresskey['mobile'];
|
|
|
}
|
|
|
$data = array(
|
|
|
'orderEnsurePage' => true,
|
|
|
'isOrdinaryCart' => ($cartType !== 'advance'),
|
...
|
...
|
@@ -364,9 +368,9 @@ class IndexController extends AbstractAction |
|
|
if (!empty($orderInfo['receiverMobile']) && !empty($orderInfo['invoiceType']) && !empty($orderInfo['invoiceTitle'])) {
|
|
|
$invoiceType = $orderInfo['invoiceType']; //发票类型ID
|
|
|
$invoices_type = $orderInfo['invoicesType'] * 1; //发票类型 /**纸质 1 ,电子 2 */
|
|
|
$mobile = $orderInfo['receiverMobile'];//用户号码
|
|
|
$mobile = $orderInfo['receiverMobile']; //用户号码
|
|
|
$invoices_title = $orderInfo['invoiceText']; //发票抬头
|
|
|
$invoice_Top = $orderInfo['invoiceTitle'];//单位 个人
|
|
|
$invoice_Top = $orderInfo['invoiceTitle']; //单位 个人
|
|
|
}
|
|
|
else {
|
|
|
//获取用户所选地址的手机号码
|
...
|
...
|
@@ -379,13 +383,13 @@ class IndexController extends AbstractAction |
|
|
$invoices_type = '2'; //发票类型 /**纸质 1 ,电子 2 */
|
|
|
$invoice_Top = '个人';
|
|
|
}
|
|
|
|
|
|
|
|
|
$data = array(
|
|
|
'invoiceInfoPage' => true,
|
|
|
'invoiceNotice' => '发票须知',
|
|
|
'phone' => $mobile ? substr_replace($mobile, '****', 3, 4) : '',
|
|
|
'completeTel' => $mobile,
|
|
|
'isCompany' => $invoice_Top =='单位' ? false : true,
|
|
|
'isCompany' => $invoice_Top == '单位' ? false : true,
|
|
|
'companyName' => $invoices_title,
|
|
|
'isPaper' => $invoices_type == 1 ? true : false,
|
|
|
'invoicesType' => array(
|
...
|
...
|
@@ -403,7 +407,7 @@ class IndexController extends AbstractAction |
|
|
'invoiceTitle' => array(
|
|
|
array(
|
|
|
'type' => '个人',
|
|
|
'choosed' =>$invoice_Top == '个人'? true : false,
|
|
|
'choosed' => $invoice_Top == '个人' ? true : false,
|
|
|
),
|
|
|
array(
|
|
|
'type' => '单位',
|
...
|
...
|
@@ -585,8 +589,8 @@ class IndexController extends AbstractAction |
|
|
$userAgent = null;
|
|
|
$unionKey = '';
|
|
|
if (!empty($_COOKIE['mkt_code']) || !empty($_COOKIE['_QYH_UNION'])) {
|
|
|
/* 解密客户端联盟信息 mkt_code优先*/
|
|
|
$unionKey = !empty($_COOKIE['mkt_code']) ? '{"client_id": 800'.$_COOKIE['mkt_code'].'}' : AuthCode::decode($_COOKIE['_QYH_UNION'], 'q_union_yohobuy');
|
|
|
/* 解密客户端联盟信息 mkt_code优先 */
|
|
|
$unionKey = !empty($_COOKIE['mkt_code']) ? '{"client_id": 800' . $_COOKIE['mkt_code'] . '}' : AuthCode::decode($_COOKIE['_QYH_UNION'], 'q_union_yohobuy');
|
|
|
/* 检查联盟参数是否有效 */
|
|
|
$unionInfo = empty($unionKey) ? array() : json_decode($unionKey, true);
|
|
|
/* 模拟APP的User-Agent */
|
...
|
...
|
@@ -600,7 +604,7 @@ class IndexController extends AbstractAction |
|
|
. ',deliveryWay:' . $deliveryWay . 'invoiceTitle:' . $invoiceTitle . ',invoiceId:' . $invoiceId . ',yohoCoin:' . $yohoCoin
|
|
|
. ',paymentId:' . $paymentId . ',paymentType:' . $paymentType . ',remark:' . $remark . ',couponCode:' . $couponCode . "\n";
|
|
|
error_log($message, 3, '/Data/logs/php/h5_error/order.' . date('Ym') . '.log');
|
|
|
UdpLog::info('【下单】下单异常数据','message:'.$message,'返回:'.json_encode($result));
|
|
|
UdpLog::info('【下单】下单异常数据', 'message:' . $message, '返回:' . json_encode($result));
|
|
|
}
|
|
|
// 返回数据
|
|
|
else {
|
...
|
...
|
|