...
|
...
|
@@ -83,7 +83,7 @@ class YuanxiaoController extends HuodongAction |
|
|
$this->setCookie('yuanxiaochouqian', json_encode($cookieData), time() + 15 * 60);
|
|
|
|
|
|
$waitUrl = Helpers::url('/cuxiao/yuanxiao/wait');
|
|
|
$this->go($this->_isApp ? $waitUrl . '?openby:yohobuy={"action":"go.h5","params":{"islogin":"N","param":{"from":"app"}}}' : $waitUrl);
|
|
|
$this->go(!$this->isWeixin() ? $waitUrl . '?openby:yohobuy={"action":"go.h5","params":{"islogin":"N","param":{"from":"app"}}}' : $waitUrl);
|
|
|
|
|
|
} else { // 不成功就显示返回的错误信息
|
|
|
|
...
|
...
|
@@ -135,7 +135,7 @@ class YuanxiaoController extends HuodongAction |
|
|
$this->_view->display('wait', array(
|
|
|
'staticTitle' => '2016潮流运势测试',
|
|
|
'staticFile' => self::STATIC_FILE,
|
|
|
'activityUrl' => $this->_isApp ? $activityUrl . '?app_version=' . $this->get('app_version') . '&openby:yohobuy={"action":"go.h5","params":{"islogin":"N","param":{"from":"app"},"share":"'.$activityUrl.'", shareparam:":{"share_id":"1"}}}' : $activityUrl,
|
|
|
'activityUrl' => !$this->isWeixin() ? $activityUrl . '?openby:yohobuy={"action":"go.h5","params":{"islogin":"N","param":{"from":"app"},"share":"'.$activityUrl.'", shareparam:":{"share_id":"1"}}}' : $activityUrl,
|
|
|
'staticJS' => array(
|
|
|
'wait.js'
|
|
|
),
|
...
|
...
|
@@ -276,6 +276,14 @@ class YuanxiaoController extends HuodongAction |
|
|
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 判断是否是微信访问
|
|
|
*/
|
|
|
private function isWeixin()
|
|
|
{
|
|
|
return (strpos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger') !== false);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 加密字符串
|
...
|
...
|
|