Merge branch 'develop/wap' into beta/wap
Showing
1 changed file
with
3 additions
and
2 deletions
@@ -58,7 +58,8 @@ class YuanxiaoController extends HuodongAction | @@ -58,7 +58,8 @@ class YuanxiaoController extends HuodongAction | ||
58 | 58 | ||
59 | $uid = $this->getUid(); | 59 | $uid = $this->getUid(); |
60 | // POST提交请求 | 60 | // POST提交请求 |
61 | - if (!empty($this->post())) { | 61 | + $posts = $this->post(); |
62 | + if (!empty($posts)) { | ||
62 | $nickName = $this->post('nick', ''); | 63 | $nickName = $this->post('nick', ''); |
63 | $birthday = $this->post('birthday', ''); | 64 | $birthday = $this->post('birthday', ''); |
64 | $gender = $this->post('gender', 0); | 65 | $gender = $this->post('gender', 0); |
@@ -66,7 +67,7 @@ class YuanxiaoController extends HuodongAction | @@ -66,7 +67,7 @@ class YuanxiaoController extends HuodongAction | ||
66 | // 调用接口 | 67 | // 调用接口 |
67 | $result = YuanxiaoModel::getChouqianInfo($uid, $nickName, $birthday, $gender); | 68 | $result = YuanxiaoModel::getChouqianInfo($uid, $nickName, $birthday, $gender); |
68 | $result['code'] = 200; | 69 | $result['code'] = 200; |
69 | - $result['data'] = array('name' => '王五', 'type' => 'M2'); | 70 | + $result['data'] = array('name' => $nickName, 'type' => 'M2'); |
70 | if ($result['code'] === 200) { // 处理成功就跳转到等待页 | 71 | if ($result['code'] === 200) { // 处理成功就跳转到等待页 |
71 | // 将返回的结果存入cookeie中15分钟 | 72 | // 将返回的结果存入cookeie中15分钟 |
72 | $this->setCookie('yuanxiaochouqian', json_encode($result['data']), time() + 15*60); | 73 | $this->setCookie('yuanxiaochouqian', json_encode($result['data']), time() + 15*60); |
-
Please register or login to post a comment