Authored by 毕凯

赠品 加价购不显示小房子

... ... @@ -150,7 +150,7 @@ class IndexController extends AbstractAction
public function giftAction()
{
$this->setTitle('赠品');
$this->setNavHeader('赠品');
$this->setNavHeader('赠品', true, false);
$shoppingKey = Helpers::getShoppingKeyByCookie();
$uid = $this->getUid(true);
... ... @@ -168,7 +168,7 @@ class IndexController extends AbstractAction
public function advanceBuyAction()
{
$this->setTitle('加价购');
$this->setNavHeader('加价购');
$this->setNavHeader('加价购', true, false);
$shoppingKey = Helpers::getShoppingKeyByCookie();
$uid = $this->getUid(true);
... ... @@ -420,22 +420,22 @@ class IndexController extends AbstractAction
$couponCode = $this->post('couponCode', null);
$yohoCoin = $this->post('yohoCoin', 1);
$result = CartModel::orderSub($uid, $addressId, $cartType, $deliveryTime, $deliveryWay, $invoiceTitle, $invoiceId, $paymentId, $paymentType, $remark, $couponCode, $yohoCoin);
// 记录下单异常的数据
if (empty($result)) {
$message = 'uid:' . $uid . ',addressId:' . $addressId . ',cartType:' . $cartType . ',deliveryTime:' . $deliveryTime
. ',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');
}
}
// 返回数据
else {
// 提交成功清除Cookie
$this->setCookie('order-info', null);
$this->echoJson($result);
}
if ($uid && !empty($result['data'])) {
try {
UnionTrans::set($uid, $result['data']['order_code'], $result['data']['order_amount']);
... ...