...
|
...
|
@@ -17,6 +17,10 @@ class LoginController extends AbstractAction |
|
|
*/
|
|
|
public function indexAction()
|
|
|
{
|
|
|
// 清除客户端
|
|
|
$this->setCookie('_UID', '');
|
|
|
$this->setCookie('_TOKEN', '');
|
|
|
|
|
|
$refer = $this->get('refer');
|
|
|
if (!empty($refer)) {
|
|
|
$this->setCookie('refer', $refer);
|
...
|
...
|
@@ -61,7 +65,6 @@ class LoginController extends AbstractAction |
|
|
$data['isPassportPage'] = true; // 模板中模块标识
|
|
|
$data['areaCode'] = '+86'; // 默认区号
|
|
|
$data['countrys'] = RegData::getAreasData(); // 地区信息列表
|
|
|
|
|
|
// 渲染模板
|
|
|
$this->_view->display('international', $data);
|
|
|
}
|
...
|
...
|
@@ -74,6 +77,7 @@ class LoginController extends AbstractAction |
|
|
// 清除客户端
|
|
|
$this->setCookie('_UID', '');
|
|
|
$this->setCookie('_TOKEN', '');
|
|
|
$this->setCookie('_SPK', '');
|
|
|
// 清除服务端会话
|
|
|
$this->setSession('_TOKEN', '');
|
|
|
|
...
|
...
|
@@ -148,7 +152,7 @@ class LoginController extends AbstractAction |
|
|
public function alipayAction()
|
|
|
{
|
|
|
$this->setSession('_TOKEN', '');
|
|
|
|
|
|
|
|
|
Factory::create('alipay')->getAuthorizeUrl();
|
|
|
|
|
|
exit();
|
...
|
...
|
@@ -160,7 +164,7 @@ class LoginController extends AbstractAction |
|
|
public function qqAction()
|
|
|
{
|
|
|
$this->setSession('_TOKEN', '');
|
|
|
|
|
|
|
|
|
Factory::create('qqconnect')->getAuthorizeUrl();
|
|
|
|
|
|
exit();
|
...
|
...
|
@@ -172,7 +176,7 @@ class LoginController extends AbstractAction |
|
|
public function sinaAction()
|
|
|
{
|
|
|
$this->setSession('_TOKEN', '');
|
|
|
|
|
|
|
|
|
$this->go(Factory::create('sinaweibo')->getAuthorizeUrl());
|
|
|
}
|
|
|
|
...
|
...
|
|