...
|
...
|
@@ -354,18 +354,21 @@ class IndexController extends AbstractAction |
|
|
$this->go(Helpers::url('/signin.html', array('refer' => $this->server('HTTP_REFERER', SITE_MAIN))));
|
|
|
}
|
|
|
$cookieData = $this->getCookie('order-info', null); //从缓存中获取电子发票信息
|
|
|
$userData = UserData::userData($uid);
|
|
|
$userMobile = empty($userData['data']) || empty($userData['data']['mobile']) ? '' : $userData['data']['mobile']; //发票人手机
|
|
|
if (!empty($cookieData)) {
|
|
|
$orderInfo = json_decode($cookieData, true);
|
|
|
$invoiceType = $orderInfo['invoiceType']; //发票类型ID
|
|
|
$invoices_type = $orderInfo['invoicesType'] * 1; //发票类型 /**纸质 1 ,电子 2 */
|
|
|
$mobile = $orderInfo['receiverMobile']; //发票人手机
|
|
|
$mobile = isset($orderInfo['receiverMobile']) && !empty($orderInfo['receiverMobile']) ? $orderInfo['receiverMobile'] : $userMobile; //发票人手机
|
|
|
$invoices_title = $orderInfo['invoiceText']; //发票抬头
|
|
|
$invoice_Top = $orderInfo['invoiceTitle'];
|
|
|
}else{
|
|
|
}
|
|
|
else {
|
|
|
$userData = UserData::userData($uid);
|
|
|
$mobile = empty($userData['data']) || empty($userData['data']['mobile']) ? '' : $userData['data']['mobile'];//发票人手机
|
|
|
$invoiceType = '1';//发票类型ID
|
|
|
$invoices_type = '1';//发票类型 /**纸质 1 ,电子 2 */
|
|
|
$mobile = $userMobile; //发票人手机
|
|
|
$invoiceType = '1'; //发票类型ID
|
|
|
$invoices_type = '1'; //发票类型 /**纸质 1 ,电子 2 */
|
|
|
$invoice_Top = '个人';
|
|
|
}
|
|
|
|
...
|
...
|
|