Authored by hf

code review by hf: fixes bug refs YW-1647

... ... @@ -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);
}
... ... @@ -148,7 +151,7 @@ class LoginController extends AbstractAction
public function alipayAction()
{
$this->setSession('_TOKEN', '');
Factory::create('alipay')->getAuthorizeUrl();
exit();
... ... @@ -160,7 +163,7 @@ class LoginController extends AbstractAction
public function qqAction()
{
$this->setSession('_TOKEN', '');
Factory::create('qqconnect')->getAuthorizeUrl();
exit();
... ... @@ -172,7 +175,7 @@ class LoginController extends AbstractAction
public function sinaAction()
{
$this->setSession('_TOKEN', '');
$this->go(Factory::create('sinaweibo')->getAuthorizeUrl());
}
... ...