Authored by Rock Zhang

修复元宵抽签活动post请求报错时日期显示错误的bug

Code Review By Rock Zhang
@@ -56,10 +56,10 @@ class YuanxiaoController extends HuodongAction @@ -56,10 +56,10 @@ class YuanxiaoController extends HuodongAction
56 $gender = $this->post('gender', 1); 56 $gender = $this->post('gender', 1);
57 57
58 // 格式化日期以便接口接收 58 // 格式化日期以便接口接收
59 - $birthday = date_format(date_create_from_format('Y年m月d日', $birthday), 'Y-m-d'); 59 + $FormatBirthday = date_format(date_create_from_format('Y年m月d日', $birthday), 'Y-m-d');
60 60
61 // 调用接口 61 // 调用接口
62 - $result = YuanxiaoModel::getChouqianInfo($uid, $nickName, $birthday, $gender); 62 + $result = YuanxiaoModel::getChouqianInfo($uid, $nickName, $FormatBirthday, $gender);
63 if ($result['code'] === 200) { // 处理成功就跳转到等待页 63 if ($result['code'] === 200) { // 处理成功就跳转到等待页
64 // 将返回的结果存入cookeie中15分钟 64 // 将返回的结果存入cookeie中15分钟
65 $cookieData = array( 65 $cookieData = array(