Authored by hf

do modify to call coupon api check is login

@@ -18,7 +18,6 @@ use Api\Yohobuy; @@ -18,7 +18,6 @@ use Api\Yohobuy;
18 class CouponController extends AbstractAction 18 class CouponController extends AbstractAction
19 { 19 {
20 /* 用户会话ID */ 20 /* 用户会话ID */
21 -  
22 const SESSION_UID = 'coupon_uid'; 21 const SESSION_UID = 'coupon_uid';
23 22
24 /** 23 /**
@@ -426,6 +425,7 @@ class CouponController extends AbstractAction @@ -426,6 +425,7 @@ class CouponController extends AbstractAction
426 $result['code'] = 400; 425 $result['code'] = 400;
427 $result['message'] = '请先登录'; 426 $result['message'] = '请先登录';
428 $result['data'] = Helpers::url('/signin.html', array('refer' => $this->server('HTTP_REFERER', '/'))); 427 $result['data'] = Helpers::url('/signin.html', array('refer' => $this->server('HTTP_REFERER', '/')));
  428 + break;
429 } 429 }
430 } 430 }
431 431
@@ -467,6 +467,7 @@ class CouponController extends AbstractAction @@ -467,6 +467,7 @@ class CouponController extends AbstractAction
467 $result['code'] = 400; 467 $result['code'] = 400;
468 $result['message'] = '请先登录'; 468 $result['message'] = '请先登录';
469 $result['data'] = Helpers::url('/signin.html', array('refer' => $this->server('HTTP_REFERER', '/'))); 469 $result['data'] = Helpers::url('/signin.html', array('refer' => $this->server('HTTP_REFERER', '/')));
  470 + break;
470 } 471 }
471 } 472 }
472 473