...
|
...
|
@@ -133,7 +133,8 @@ class YuanxiaoController extends HuodongAction |
|
|
// cookie中存的结果
|
|
|
$result = json_decode($result, true);
|
|
|
$shareUrl = Helpers::url('/cuxiao/yuanxiao/share', array(
|
|
|
'hash' => $this->encrypt($this->getUid())
|
|
|
'hash' => $this->encrypt($this->getUid()),
|
|
|
'type' => $this->encrypt($result['type'])
|
|
|
));
|
|
|
|
|
|
$this->_view->display('result', array(
|
...
|
...
|
@@ -161,6 +162,8 @@ class YuanxiaoController extends HuodongAction |
|
|
if (empty($uid)) {
|
|
|
$this->go(Helpers::url('/cuxiao/yuanxiao/index'));
|
|
|
}
|
|
|
// 抽签结果
|
|
|
$type = $this->decrypt($this->get('type', ''));
|
|
|
|
|
|
// 调用接口获取type和count
|
|
|
$result = YuanxiaoModel::getChoujiangShareInfo($uid);
|
...
|
...
|
@@ -170,7 +173,7 @@ class YuanxiaoController extends HuodongAction |
|
|
'staticFile' => self::STATIC_FILE,
|
|
|
'result' => array(
|
|
|
'name' => $result['name'],
|
|
|
'type' => $result['type']
|
|
|
'type' => $type ?: $result['type']
|
|
|
),
|
|
|
'count' => $result['total'],
|
|
|
'staticJS' => array(
|
...
|
...
|
|