...
|
...
|
@@ -371,19 +371,29 @@ class IndexController extends AbstractAction |
|
|
$cookieData = $this->getCookie('order-info', null); //从缓存中获取电子发票信息
|
|
|
$orderInfo = json_decode($cookieData, true);
|
|
|
$addresslist = UserData::addressTextData($uid); //获取地址列表
|
|
|
if (!empty($orderInfo['receiverMobile']) && !empty($orderInfo['invoiceType']) && !empty($orderInfo['invoiceTitle'])) {
|
|
|
if (!empty($orderInfo['receiverMobile']) && $orderInfo['isModifyTel'] == true) {
|
|
|
$mobile = $orderInfo['receiverMobile']; //用户号码
|
|
|
} else {
|
|
|
//获取用户所选地址的手机号码
|
|
|
foreach ($addresslist['data'] as $addresskey) {
|
|
|
if ($addresskey['address_id'] == $orderInfo['address']['address_id'])
|
|
|
$mobile = $addresskey['mobile'];
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (!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']; //单位 个人
|
|
|
}
|
|
|
else {
|
|
|
//获取用户所选地址的手机号码
|
|
|
foreach ($addresslist['data'] as $addresskey) {
|
|
|
if ($addresskey['address_id'] == $orderInfo['address']['address_id'])
|
|
|
$mobile = $addresskey['mobile'];
|
|
|
}
|
|
|
// foreach ($addresslist['data'] as $addresskey) {
|
|
|
// if ($addresskey['address_id'] == $orderInfo['address']['address_id'])
|
|
|
// $mobile = $addresskey['mobile'];
|
|
|
// }
|
|
|
$invoices_title = '';
|
|
|
$invoiceType = '7'; //发票类型ID
|
|
|
$invoices_type = '2'; //发票类型 /**纸质 1 ,电子 2 */
|
...
|
...
|
|