...
|
...
|
@@ -73,7 +73,6 @@ class LoginController extends AbstractAction |
|
|
$data['isPassportPage'] = true; // 模板中模块标识
|
|
|
$data['areaCode'] = '+86'; // 默认区号
|
|
|
$data['countrys'] = RegData::getAreasData(); // 地区信息列表
|
|
|
|
|
|
// 渲染模板
|
|
|
$this->_view->display('international', $data);
|
|
|
}
|
...
|
...
|
@@ -86,7 +85,7 @@ class LoginController extends AbstractAction |
|
|
$this->setCookie('_UID', '');
|
|
|
|
|
|
$refer = $this->server('HTTP_REFERER', SITE_MAIN);
|
|
|
|
|
|
|
|
|
$token = $this->get('token');
|
|
|
if (!empty($token)) {
|
|
|
LoginData::signoutSession($token);
|
...
|
...
|
@@ -131,9 +130,9 @@ class LoginController extends AbstractAction |
|
|
/* 调用登录接口进行登录 */
|
|
|
$data = LoginData::signin($area, $profile, $password);
|
|
|
if ($data['code'] != 200 || !isset($data['data']['uid'])) {
|
|
|
$this->setSession('_TOKEN', Helpers::makeToken($data['data']['uid']));
|
|
|
break;
|
|
|
}
|
|
|
$this->setSession('_TOKEN', Helpers::makeToken($data['data']['uid']));
|
|
|
|
|
|
$refer = $this->getCookie('refer');
|
|
|
if (empty($refer)) {
|
...
|
...
|
|