Authored by Rock Zhang

修复新势力领券活动登陆跳转问题

Code Review By Rock Zhang
... ... @@ -40,14 +40,12 @@ class XinshiliController extends HuodongAction
$uid = $this->getLoggedUid();
if (!$uid) {
if (!$this->_isApp) {
$this->go(Helpers::url('/signin.html', array('refer' => Helpers::url('/cuxiao/yuanxiao/info')), 'default'));
$this->go(Helpers::url('/signin.html', array('refer' => Helpers::url('/cuxiao/xinshili/index')), 'default'));
} else {
$playUrl = Helpers::url('/cuxiao/yuanxiao/index');
$playUrl = Helpers::url('/cuxiao/xinshili/index');
$this->go($playUrl . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $playUrlEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}');
}
}
return $uid;
}
/**
... ... @@ -55,10 +53,7 @@ class XinshiliController extends HuodongAction
*/
public function indexAction()
{
$uid = $this->checkLogin();
// 该变量用来控制和显示页面的弹出提示
$showPopupFlag = '0';
$this->checkLogin();
//获取跳转到个人中心-我的优惠券链接,并调用接口,完成领券操作
$myCouponUrl = Helpers::url('/home/coupons', null, 'default') . '?openby:yohobuy={"action":"go.coupon"}';
... ... @@ -79,14 +74,14 @@ class XinshiliController extends HuodongAction
'shareTitle' => '新势力',
'shareDesc' => '新势力领券',
'shareImg' => 'http://img02.yohoboys.com/staticimg/2016/02/19/16/02dbd38c84eccf1097b7e240452f0de856.png',
'shareLink' => Helpers::url('/cuxiao/girlsday/index')
'shareLink' => Helpers::url('/cuxiao/xinshili/index')
));
}
/**
* 领券接口
*/
public function sendCoupon()
public function sendCouponAction()
{
$result = array('code' => 201);
... ...