Authored by hf

code review by fei.hong : do format yuanxiao huodong codes check call app login

@@ -39,7 +39,7 @@ class YuanxiaoController extends HuodongAction @@ -39,7 +39,7 @@ class YuanxiaoController extends HuodongAction
39 'staticJS' => array( 39 'staticJS' => array(
40 'home.js' 40 'home.js'
41 ), 41 ),
42 - 'playUrl' => $this->isApp() ? $playUrl . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $playUrlEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}': $playUrl, 42 + 'playUrl' => $this->_isApp ? $playUrl . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $playUrlEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}': $playUrl,
43 )); 43 ));
44 } 44 }
45 45
@@ -50,7 +50,11 @@ class YuanxiaoController extends HuodongAction @@ -50,7 +50,11 @@ class YuanxiaoController extends HuodongAction
50 { 50 {
51 $uid = $this->getLoggedUid(); 51 $uid = $this->getLoggedUid();
52 if (!$uid) { 52 if (!$uid) {
  53 + if (!$this->_isApp) {
53 $this->go(Helpers::url('/signin.html', array('refer' => Helpers::url('/cuxiao/yuanxiao/info')), 'default')); 54 $this->go(Helpers::url('/signin.html', array('refer' => Helpers::url('/cuxiao/yuanxiao/info')), 'default'));
  55 + } else {
  56 + exit();
  57 + }
54 } 58 }
55 59
56 // POST提交请求 60 // POST提交请求