|
@@ -133,7 +133,8 @@ class YuanxiaoController extends HuodongAction |
|
@@ -133,7 +133,8 @@ class YuanxiaoController extends HuodongAction |
133
|
// cookie中存的结果
|
133
|
// cookie中存的结果
|
134
|
$result = json_decode($result, true);
|
134
|
$result = json_decode($result, true);
|
135
|
$shareUrl = Helpers::url('/cuxiao/yuanxiao/share', array(
|
135
|
$shareUrl = Helpers::url('/cuxiao/yuanxiao/share', array(
|
136
|
- 'hash' => $this->encrypt($this->getUid())
|
136
|
+ 'hash' => $this->encrypt($this->getUid()),
|
|
|
137
|
+ 'type' => $this->encrypt($result['type'])
|
137
|
));
|
138
|
));
|
138
|
|
139
|
|
139
|
$this->_view->display('result', array(
|
140
|
$this->_view->display('result', array(
|
|
@@ -161,6 +162,8 @@ class YuanxiaoController extends HuodongAction |
|
@@ -161,6 +162,8 @@ class YuanxiaoController extends HuodongAction |
161
|
if (empty($uid)) {
|
162
|
if (empty($uid)) {
|
162
|
$this->go(Helpers::url('/cuxiao/yuanxiao/index'));
|
163
|
$this->go(Helpers::url('/cuxiao/yuanxiao/index'));
|
163
|
}
|
164
|
}
|
|
|
165
|
+ // 抽签结果
|
|
|
166
|
+ $type = $this->decrypt($this->get('type', ''));
|
164
|
|
167
|
|
165
|
// 调用接口获取type和count
|
168
|
// 调用接口获取type和count
|
166
|
$result = YuanxiaoModel::getChoujiangShareInfo($uid);
|
169
|
$result = YuanxiaoModel::getChoujiangShareInfo($uid);
|
|
@@ -170,7 +173,7 @@ class YuanxiaoController extends HuodongAction |
|
@@ -170,7 +173,7 @@ class YuanxiaoController extends HuodongAction |
170
|
'staticFile' => self::STATIC_FILE,
|
173
|
'staticFile' => self::STATIC_FILE,
|
171
|
'result' => array(
|
174
|
'result' => array(
|
172
|
'name' => $result['name'],
|
175
|
'name' => $result['name'],
|
173
|
- 'type' => $result['type']
|
176
|
+ 'type' => $type ?: $result['type']
|
174
|
),
|
177
|
),
|
175
|
'count' => $result['total'],
|
178
|
'count' => $result['total'],
|
176
|
'staticJS' => array(
|
179
|
'staticJS' => array(
|