Authored by Rock Zhang

修复android登录问题

... ... @@ -14,18 +14,6 @@ class YuanxiaoController extends HuodongAction
const ENCRYPT_KEY = 'iamgtskkwhoareyou';
/**
* 通过当前用户审判是否跳到登录页
*
*/
private function auditJumpLogin()
{
$uid = $this->getLoggedUid();
if (!$uid || !is_numeric($uid)) {
$this->go(Helpers::url('/signin.html', array('refer' => Helpers::url('/cuxiao/yuanxiao/info')), 'default'));
}
}
/**
* 元宵抽签
*/
public function indexAction()
... ... @@ -42,7 +30,7 @@ class YuanxiaoController extends HuodongAction
'shareDesc' => '元宵节快乐!一起来YOHO!BUY有货玩2016年潮流开运测试!',
'shareImg' => 'http://img02.yohoboys.com/staticimg/2016/02/19/16/02dbd38c84eccf1097b7e240452f0de856.png',
'shareUrl' => Helpers::url('/cuxiao/yuanxiao/index'),
'playUrl' => $this->isApp() ? $playUrl . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $playUrlEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"Y"}}': $playUrl,
'playUrl' => $this->isApp() ? $playUrl . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $playUrlEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}': $playUrl,
));
}
... ... @@ -128,8 +116,6 @@ class YuanxiaoController extends HuodongAction
*/
public function waitAction()
{
// 审判跳转登录页
// $this->auditJumpLogin();
$activityUrl = Helpers::url('/cuxiao/yuanxiao/result');
$this->_view->display('wait', array(
... ... @@ -150,9 +136,6 @@ class YuanxiaoController extends HuodongAction
*/
public function resultAction()
{
// 审判跳转登录页
//$this->auditJumpLogin();
$result = $this->getCookie('yuanxiaochouqian', null);
if (empty($result)) { // 未取到信息就重新测试
$this->go(Helpers::url('/cuxiao/yuanxiao/info'));
... ...