Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into feature/wap323
Showing
1 changed file
with
6 additions
and
6 deletions
@@ -150,7 +150,7 @@ class IndexController extends AbstractAction | @@ -150,7 +150,7 @@ class IndexController extends AbstractAction | ||
150 | public function giftAction() | 150 | public function giftAction() |
151 | { | 151 | { |
152 | $this->setTitle('赠品'); | 152 | $this->setTitle('赠品'); |
153 | - $this->setNavHeader('赠品'); | 153 | + $this->setNavHeader('赠品', true, false); |
154 | 154 | ||
155 | $shoppingKey = Helpers::getShoppingKeyByCookie(); | 155 | $shoppingKey = Helpers::getShoppingKeyByCookie(); |
156 | $uid = $this->getUid(true); | 156 | $uid = $this->getUid(true); |
@@ -168,7 +168,7 @@ class IndexController extends AbstractAction | @@ -168,7 +168,7 @@ class IndexController extends AbstractAction | ||
168 | public function advanceBuyAction() | 168 | public function advanceBuyAction() |
169 | { | 169 | { |
170 | $this->setTitle('加价购'); | 170 | $this->setTitle('加价购'); |
171 | - $this->setNavHeader('加价购'); | 171 | + $this->setNavHeader('加价购', true, false); |
172 | 172 | ||
173 | $shoppingKey = Helpers::getShoppingKeyByCookie(); | 173 | $shoppingKey = Helpers::getShoppingKeyByCookie(); |
174 | $uid = $this->getUid(true); | 174 | $uid = $this->getUid(true); |
@@ -420,22 +420,22 @@ class IndexController extends AbstractAction | @@ -420,22 +420,22 @@ class IndexController extends AbstractAction | ||
420 | $couponCode = $this->post('couponCode', null); | 420 | $couponCode = $this->post('couponCode', null); |
421 | $yohoCoin = $this->post('yohoCoin', 1); | 421 | $yohoCoin = $this->post('yohoCoin', 1); |
422 | $result = CartModel::orderSub($uid, $addressId, $cartType, $deliveryTime, $deliveryWay, $invoiceTitle, $invoiceId, $paymentId, $paymentType, $remark, $couponCode, $yohoCoin); | 422 | $result = CartModel::orderSub($uid, $addressId, $cartType, $deliveryTime, $deliveryWay, $invoiceTitle, $invoiceId, $paymentId, $paymentType, $remark, $couponCode, $yohoCoin); |
423 | - | 423 | + |
424 | // 记录下单异常的数据 | 424 | // 记录下单异常的数据 |
425 | if (empty($result)) { | 425 | if (empty($result)) { |
426 | $message = 'uid:' . $uid . ',addressId:' . $addressId . ',cartType:' . $cartType . ',deliveryTime:' . $deliveryTime | 426 | $message = 'uid:' . $uid . ',addressId:' . $addressId . ',cartType:' . $cartType . ',deliveryTime:' . $deliveryTime |
427 | . ',deliveryWay:' . $deliveryWay . 'invoiceTitle:' . $invoiceTitle . ',invoiceId:' . $invoiceId . ',yohoCoin:' . $yohoCoin | 427 | . ',deliveryWay:' . $deliveryWay . 'invoiceTitle:' . $invoiceTitle . ',invoiceId:' . $invoiceId . ',yohoCoin:' . $yohoCoin |
428 | . ',paymentId:' . $paymentId . ',paymentType:' . $paymentType . ',remark:' . $remark . ',couponCode:' . $couponCode . "\n"; | 428 | . ',paymentId:' . $paymentId . ',paymentType:' . $paymentType . ',remark:' . $remark . ',couponCode:' . $couponCode . "\n"; |
429 | error_log($message, 3, '/Data/logs/php/h5_error/order.' . date('Ym') . '.log'); | 429 | error_log($message, 3, '/Data/logs/php/h5_error/order.' . date('Ym') . '.log'); |
430 | - } | 430 | + } |
431 | // 返回数据 | 431 | // 返回数据 |
432 | else { | 432 | else { |
433 | // 提交成功清除Cookie | 433 | // 提交成功清除Cookie |
434 | $this->setCookie('order-info', null); | 434 | $this->setCookie('order-info', null); |
435 | - | 435 | + |
436 | $this->echoJson($result); | 436 | $this->echoJson($result); |
437 | } | 437 | } |
438 | - | 438 | + |
439 | if ($uid && !empty($result['data'])) { | 439 | if ($uid && !empty($result['data'])) { |
440 | try { | 440 | try { |
441 | UnionTrans::set($uid, $result['data']['order_code'], $result['data']['order_amount']); | 441 | UnionTrans::set($uid, $result['data']['order_code'], $result['data']['order_amount']); |
-
Please register or login to post a comment