修复新势力领券活动登陆跳转问题
Code Review By Rock Zhang
Showing
1 changed file
with
5 additions
and
10 deletions
@@ -40,14 +40,12 @@ class XinshiliController extends HuodongAction | @@ -40,14 +40,12 @@ class XinshiliController extends HuodongAction | ||
40 | $uid = $this->getLoggedUid(); | 40 | $uid = $this->getLoggedUid(); |
41 | if (!$uid) { | 41 | if (!$uid) { |
42 | if (!$this->_isApp) { | 42 | if (!$this->_isApp) { |
43 | - $this->go(Helpers::url('/signin.html', array('refer' => Helpers::url('/cuxiao/yuanxiao/info')), 'default')); | 43 | + $this->go(Helpers::url('/signin.html', array('refer' => Helpers::url('/cuxiao/xinshili/index')), 'default')); |
44 | } else { | 44 | } else { |
45 | - $playUrl = Helpers::url('/cuxiao/yuanxiao/index'); | 45 | + $playUrl = Helpers::url('/cuxiao/xinshili/index'); |
46 | $this->go($playUrl . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $playUrlEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}'); | 46 | $this->go($playUrl . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $playUrlEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}'); |
47 | } | 47 | } |
48 | } | 48 | } |
49 | - | ||
50 | - return $uid; | ||
51 | } | 49 | } |
52 | 50 | ||
53 | /** | 51 | /** |
@@ -55,10 +53,7 @@ class XinshiliController extends HuodongAction | @@ -55,10 +53,7 @@ class XinshiliController extends HuodongAction | ||
55 | */ | 53 | */ |
56 | public function indexAction() | 54 | public function indexAction() |
57 | { | 55 | { |
58 | - $uid = $this->checkLogin(); | ||
59 | - | ||
60 | - // 该变量用来控制和显示页面的弹出提示 | ||
61 | - $showPopupFlag = '0'; | 56 | + $this->checkLogin(); |
62 | 57 | ||
63 | //获取跳转到个人中心-我的优惠券链接,并调用接口,完成领券操作 | 58 | //获取跳转到个人中心-我的优惠券链接,并调用接口,完成领券操作 |
64 | $myCouponUrl = Helpers::url('/home/coupons', null, 'default') . '?openby:yohobuy={"action":"go.coupon"}'; | 59 | $myCouponUrl = Helpers::url('/home/coupons', null, 'default') . '?openby:yohobuy={"action":"go.coupon"}'; |
@@ -79,14 +74,14 @@ class XinshiliController extends HuodongAction | @@ -79,14 +74,14 @@ class XinshiliController extends HuodongAction | ||
79 | 'shareTitle' => '新势力', | 74 | 'shareTitle' => '新势力', |
80 | 'shareDesc' => '新势力领券', | 75 | 'shareDesc' => '新势力领券', |
81 | 'shareImg' => 'http://img02.yohoboys.com/staticimg/2016/02/19/16/02dbd38c84eccf1097b7e240452f0de856.png', | 76 | 'shareImg' => 'http://img02.yohoboys.com/staticimg/2016/02/19/16/02dbd38c84eccf1097b7e240452f0de856.png', |
82 | - 'shareLink' => Helpers::url('/cuxiao/girlsday/index') | 77 | + 'shareLink' => Helpers::url('/cuxiao/xinshili/index') |
83 | )); | 78 | )); |
84 | } | 79 | } |
85 | 80 | ||
86 | /** | 81 | /** |
87 | * 领券接口 | 82 | * 领券接口 |
88 | */ | 83 | */ |
89 | - public function sendCoupon() | 84 | + public function sendCouponAction() |
90 | { | 85 | { |
91 | $result = array('code' => 201); | 86 | $result = array('code' => 201); |
92 | 87 |
-
Please register or login to post a comment