...
|
...
|
@@ -22,6 +22,7 @@ class RegController extends AbstractAction |
|
|
$data['headerText'] = '注册';
|
|
|
$data['isPassportPage'] = true;
|
|
|
$data['countrys'] = array();
|
|
|
$data['areaCode'] = '+86';
|
|
|
|
|
|
// 获取地区数据列表
|
|
|
$area = RegData::getAreasData();
|
...
|
...
|
@@ -74,7 +75,7 @@ class RegController extends AbstractAction |
|
|
$data['backUrl'] = '/';
|
|
|
$data['headerText'] = '注册';
|
|
|
$data['isPassportPage'] = true;
|
|
|
$data['areaCode'] = $area;
|
|
|
$data['areaCode'] = '+' . $area;
|
|
|
$data['phoneNum'] = $mobile;
|
|
|
$data['token'] = $token;
|
|
|
|
...
|
...
|
@@ -123,7 +124,7 @@ class RegController extends AbstractAction |
|
|
*/
|
|
|
public function verifymobileAction()
|
|
|
{
|
|
|
$data = array('code' => 400, 'message' => '参数不正确!', 'data' => '');
|
|
|
$data = array('code' => 400, 'message' => '手机号已存在', 'data' => '');
|
|
|
|
|
|
do {
|
|
|
/* 判断是不是AJAX请求 */
|
...
|
...
|
@@ -166,7 +167,7 @@ class RegController extends AbstractAction |
|
|
*/
|
|
|
public function verifycodeAction()
|
|
|
{
|
|
|
$data = array('code' => 400, 'message' => '参数不正确!', 'data' => '');
|
|
|
$data = array('code' => 400, 'message' => '验证码不正确', 'data' => '');
|
|
|
|
|
|
do {
|
|
|
/* 判断是不是AJAX请求 */
|
...
|
...
|
@@ -275,7 +276,7 @@ class RegController extends AbstractAction |
|
|
|
|
|
/* 返回跳转到来源页面 */
|
|
|
if ($data['code'] == 200) {
|
|
|
$data['data'] = '/passport/reg/password?token='.$token.'&phoneNum='.$mobile.'&areaCode='.$area;
|
|
|
$data['data'] = '/';
|
|
|
}
|
|
|
|
|
|
} while (false);
|
...
|
...
|
|