Authored by Rock Zhang

修复分享页面标题不同步的bug

... ... @@ -161,7 +161,8 @@ class YuanxiaoController extends HuodongAction
$result = json_decode($result, true);
$shareUrl = Helpers::url('/cuxiao/yuanxiao/share', array(
'hash' => $this->encrypt($this->getUid()),
'type' => $this->encrypt($result['type'])
'type' => $this->encrypt($result['type']),
'name' => $this->encrypt($result['name'])
));
$this->_view->display('result', array(
... ... @@ -191,6 +192,7 @@ class YuanxiaoController extends HuodongAction
}
// 抽签结果
$type = $this->decrypt($this->get('type', ''));
$name = $this->decrypt($this->get('name', ''));
// 调用接口获取type和count
$result = YuanxiaoModel::getChoujiangShareInfo($uid);
... ... @@ -199,7 +201,7 @@ class YuanxiaoController extends HuodongAction
'staticTitle' => '2016潮流运势测试',
'staticFile' => self::STATIC_FILE,
'result' => array(
'name' => $result['name'],
'name' => $name ?: $result['name'],
'type' => $type ?: $result['type']
),
'count' => $result['total'],
... ...