...
|
...
|
@@ -123,9 +123,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(
|
...
|
...
|
@@ -137,6 +137,9 @@ class YuanxiaoController extends HuodongAction |
|
|
'needShare' => $this->checkNeedShare(), // 是否需要微信分享
|
|
|
'staticFile' => self::STATIC_FILE,
|
|
|
'result' => $result,
|
|
|
'shareTitle' => $result['name'] . '的2016年潮流运势是' . $this->getChouqianTitle($result['type']),
|
|
|
'shareDesc' => '元宵快乐!一起来YOHO!BUY有货玩2016年潮流开运测试!',
|
|
|
'shareImg' => 'http://img02.yohoboys.com/staticimg/2016/02/19/16/02dbd38c84eccf1097b7e240452f0de856.png',
|
|
|
'shareUrl' => $shareUrl,
|
|
|
'staticJS' => array(
|
|
|
'result.js'
|
...
|
...
|
@@ -172,6 +175,33 @@ class YuanxiaoController extends HuodongAction |
|
|
));
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 根据结果类型获取抽签结果标题
|
|
|
* @param $type
|
|
|
*/
|
|
|
private function getChouqianTitle($type)
|
|
|
{
|
|
|
$data = array(
|
|
|
'P1' => '成为一个大写加粗的潮人!',
|
|
|
'P2' => '逼格满载盐值爆表!',
|
|
|
'P3' => '运气爆棚,拥有Yeezy不是梦!',
|
|
|
'P4' => '街拍不断,成为网红不是梦!',
|
|
|
'M1' => '穿着MA-1飞行夹克一飞冲天!',
|
|
|
'M2' => '把妹不花钱!买鞋不排队!',
|
|
|
'M3' => '穿着跑鞋到达人生巅峰!',
|
|
|
'M4' => '帅气多金颜值高!',
|
|
|
'F1' => '拥有拆不完的快递和礼物!
|
|
|
',
|
|
|
'F2' => '被男神强势壁咚!',
|
|
|
'F3' => '腿细胸大屁股翘!',
|
|
|
'F4' => '任何style都轻松驾驭!
|
|
|
'
|
|
|
);
|
|
|
|
|
|
return $data[$type];
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 检测登录状态
|
|
|
*
|
...
|
...
|
|