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