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