Authored by 郭成尧

BUG7022.7023.7039

@@ -21,7 +21,10 @@ class CouponController extends AbstractAction @@ -21,7 +21,10 @@ class CouponController extends AbstractAction
21 */ 21 */
22 public function floorAction() 22 public function floorAction()
23 { 23 {
24 - $this->setNavHeader('领券中心', true, SITE_MAIN); 24 +
  25 + if(!$this->isApp()){
  26 + $this->setNavHeader('领券中心', true, SITE_MAIN);
  27 + }
25 $receiveData = filter_input_array(INPUT_GET, array( 28 $receiveData = filter_input_array(INPUT_GET, array(
26 'code' => FILTER_DEFAULT 29 'code' => FILTER_DEFAULT
27 )); 30 ));
@@ -53,7 +56,7 @@ class CouponController extends AbstractAction @@ -53,7 +56,7 @@ class CouponController extends AbstractAction
53 // 跳转 URl 56 // 跳转 URl
54 $playUrl = Helpers::url('/coupon/floor'); 57 $playUrl = Helpers::url('/coupon/floor');
55 // 判断用户是否登录 58 // 判断用户是否登录
56 - if (!$this->getUid() || !is_numeric($this->getUid())) { 59 + if ((!$this->getUid() || !is_numeric($this->getUid())) || (!$this->get('uid') || !is_numeric($this->get('uid')))) {
57 // 用户未登录,跳转登录页面 60 // 用户未登录,跳转登录页面
58 $returnData['noLogin'] = true; 61 $returnData['noLogin'] = true;
59 if (!$this->isApp()) { 62 if (!$this->isApp()) {