...
|
...
|
@@ -370,16 +370,28 @@ class IndexController extends AbstractAction |
|
|
}
|
|
|
$cookieData = $this->getCookie('order-info', null); //从缓存中获取电子发票信息
|
|
|
$orderInfo = json_decode($cookieData, true);
|
|
|
//当没有地址时显示用户号码
|
|
|
$userData = UserData::userData($uid);
|
|
|
$userMobile = empty($userData['data']) || empty($userData['data']['mobile']) ? '' : $userData['data']['mobile']; //用户手机
|
|
|
$mobile = $userMobile;
|
|
|
$addresslist = UserData::addressTextData($uid); //获取地址列表
|
|
|
do{
|
|
|
if (empty($orderInfo['receiverMobile']) && !isset($orderInfo['address']['address_id'])) {
|
|
|
break;
|
|
|
}
|
|
|
//用户手动修改号码后直接去修改后号码
|
|
|
if (!empty($orderInfo['receiverMobile']) && $orderInfo['isModifyTel'] == true) {
|
|
|
$mobile = $orderInfo['receiverMobile']; //用户号码
|
|
|
} else {
|
|
|
//获取用户所选地址的手机号码
|
|
|
}
|
|
|
else {
|
|
|
//未手动修改获取用户所选地址的手机号码
|
|
|
foreach ($addresslist['data'] as $addresskey) {
|
|
|
if ($addresskey['address_id'] == $orderInfo['address']['address_id'])
|
|
|
$mobile = $addresskey['mobile'];
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
while(false);
|
|
|
|
|
|
if (!empty($orderInfo['invoiceType']) && !empty($orderInfo['invoiceTitle'])) {
|
|
|
$invoiceType = $orderInfo['invoiceType']; //发票类型ID
|
...
|
...
|
|