Authored by xuqi

verify code

@@ -149,7 +149,7 @@ class RegController extends AbstractAction @@ -149,7 +149,7 @@ class RegController extends AbstractAction
149 */ 149 */
150 public function verifycodeAction() 150 public function verifycodeAction()
151 { 151 {
152 - $data = array('code' => 400, 'message' => '验证码不正确', 'data' => ''); 152 + $data = array('code' => 400, 'message' => '验证码错误', 'data' => '');
153 153
154 do { 154 do {
155 /* 判断是不是AJAX请求 */ 155 /* 判断是不是AJAX请求 */
@@ -175,6 +175,8 @@ class RegController extends AbstractAction @@ -175,6 +175,8 @@ class RegController extends AbstractAction
175 if ($data['code'] == 200) { 175 if ($data['code'] == 200) {
176 $token = Helpers::makeToken($mobile); 176 $token = Helpers::makeToken($mobile);
177 $data['data'] = '/passport/reg/password?token='.$token.'&phoneNum='.$mobile.'&areaCode='.$area; 177 $data['data'] = '/passport/reg/password?token='.$token.'&phoneNum='.$mobile.'&areaCode='.$area;
  178 + } else if ($data['code'] == 404) {
  179 + $data['message'] = '验证码错误'; //统一验证提示
178 } 180 }
179 181
180 } while (false); 182 } while (false);