Authored by hf

code review by zheng.zhang: do yuanxiao chouqian huodong

@@ -30,7 +30,7 @@ class YuanxiaoController extends HuodongAction @@ -30,7 +30,7 @@ class YuanxiaoController extends HuodongAction
30 'shareDesc' => '元宵节快乐!一起来YOHO!BUY有货玩2016年潮流开运测试!', 30 'shareDesc' => '元宵节快乐!一起来YOHO!BUY有货玩2016年潮流开运测试!',
31 'shareImg' => 'http://img02.yohoboys.com/staticimg/2016/02/19/16/02dbd38c84eccf1097b7e240452f0de856.png', 31 'shareImg' => 'http://img02.yohoboys.com/staticimg/2016/02/19/16/02dbd38c84eccf1097b7e240452f0de856.png',
32 'shareUrl' => Helpers::url('/cuxiao/yuanxiao/index'), 32 'shareUrl' => Helpers::url('/cuxiao/yuanxiao/index'),
33 - 'playUrl' => $this->isApp() ? $playUrl . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $playUrlEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}': $playUrl, 33 + 'playUrl' => !$this->isWeixin() ? $playUrl . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $playUrlEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}': $playUrl,
34 )); 34 ));
35 } 35 }
36 36
@@ -245,7 +245,7 @@ class YuanxiaoController extends HuodongAction @@ -245,7 +245,7 @@ class YuanxiaoController extends HuodongAction
245 */ 245 */
246 private function isApp() 246 private function isApp()
247 { 247 {
248 - return (null !== $this->get('app_version') || null !== $this->get('openby:yohobuy', null)); 248 + return (null !== $this->get('app_version'));
249 } 249 }
250 250
251 /** 251 /**