...
|
...
|
@@ -9,8 +9,8 @@ use Plugin\Helpers; |
|
|
*/
|
|
|
class YuanxiaoController extends HuodongAction
|
|
|
{
|
|
|
// const STATIC_FILE = 'http://localhost:2222/assets/1.0.1';
|
|
|
const STATIC_FILE = 'http://cdn.yoho.cn/huodong/2016yuanxiao/1.0.1';
|
|
|
const STATIC_FILE = 'http://localhost:2222/assets/1.0.1';
|
|
|
// const STATIC_FILE = 'http://cdn.yoho.cn/huodong/2016yuanxiao/1.0.1';
|
|
|
const ENCRYPT_KEY = 'iamgtskkwhoareyou';
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -128,9 +128,9 @@ class YuanxiaoController extends HuodongAction |
|
|
$this->auditJumpLogin();
|
|
|
|
|
|
$result = $this->getCookie('yuanxiaochouqian', null);
|
|
|
if (empty($result)) { // 未取到信息就重新测试
|
|
|
$this->go(Helpers::url('/cuxiao/yuanxiao/info'));
|
|
|
}
|
|
|
// if (empty($result)) { // 未取到信息就重新测试
|
|
|
// $this->go(Helpers::url('/cuxiao/yuanxiao/info'));
|
|
|
// }
|
|
|
// cookie中存的结果
|
|
|
$result = json_decode($result, true);
|
|
|
$shareUrl = Helpers::url('/cuxiao/yuanxiao/share', array(
|
...
|
...
|
@@ -141,11 +141,11 @@ class YuanxiaoController extends HuodongAction |
|
|
$this->_view->display('result', array(
|
|
|
'staticTitle' => '元宵抽签',
|
|
|
'staticFile' => self::STATIC_FILE,
|
|
|
'result' => $result,
|
|
|
'result' => array(
|
|
|
'name' => '张大龙',
|
|
|
'type' => 'M1'
|
|
|
),
|
|
|
'result' => $result,
|
|
|
'shareUrl' => $shareUrl,
|
|
|
'staticJS' => array(
|
|
|
'result.js'
|
...
|
...
|
|