...
|
...
|
@@ -19,6 +19,9 @@ class LoginController extends AbstractAction |
|
|
{
|
|
|
$this->setTitle('登录');
|
|
|
|
|
|
$refer = $this->get('refer', SITE_MAIN . '/?go=1');
|
|
|
$this->setCookie('refer', $refer);
|
|
|
|
|
|
$data = array(
|
|
|
'loginIndex' => true, // 模板中使用JS的标识
|
|
|
'backUrl' => '/', // 返回的URL链接
|
...
|
...
|
@@ -33,8 +36,6 @@ class LoginController extends AbstractAction |
|
|
'emailRetriveUrl' => '/passport/back/email', // 通过邮箱找回密码的URL链接
|
|
|
);
|
|
|
|
|
|
// 生成HTML(signin.html)
|
|
|
$this->_view->html('signin');
|
|
|
// 渲染模板
|
|
|
$this->_view->display('index', $data);
|
|
|
}
|
...
|
...
|
@@ -53,9 +54,7 @@ class LoginController extends AbstractAction |
|
|
$data['isPassportPage'] = true; // 模板中模块标识
|
|
|
$data['areaCode'] = '+86'; // 默认区号
|
|
|
$data['countrys'] = RegData::getAreasData(); // 地区信息列表
|
|
|
//
|
|
|
// 生成HTML(login.html)
|
|
|
$this->_view->html('login');
|
|
|
|
|
|
// 渲染模板
|
|
|
$this->_view->display('international', $data);
|
|
|
}
|
...
|
...
|
@@ -124,8 +123,7 @@ class LoginController extends AbstractAction |
|
|
// $name = $profile['data']['mobile'];
|
|
|
// }
|
|
|
$data['data'] = '/'; // @todo
|
|
|
}
|
|
|
while (false);
|
|
|
} while (false);
|
|
|
|
|
|
$this->echoJson($data);
|
|
|
}
|
...
|
...
|
@@ -188,8 +186,7 @@ class LoginController extends AbstractAction |
|
|
$nickname = $userInfo['response']['user_info']['user_name'];
|
|
|
// $alipayEmail = $userInfo['response']['user_info']['email'];
|
|
|
}
|
|
|
}
|
|
|
else {
|
|
|
} else {
|
|
|
$nickname = $_GET['real_name'];
|
|
|
// $alipayEmail = isset($_GET['email']) ? $_GET['email'] : '';
|
|
|
}
|
...
|
...
|
|