...
|
...
|
@@ -47,6 +47,9 @@ class LoginController extends AbstractAction |
|
|
{
|
|
|
$this->setTitle('国际账号登录');
|
|
|
|
|
|
$refer = $this->get('refer', SITE_MAIN . '/?go=1');
|
|
|
$this->setCookie('refer', $refer);
|
|
|
|
|
|
$data = array();
|
|
|
$data['loginInternational'] = true; // 模板中使用JS的标识
|
|
|
$data['backUrl'] = '/'; // 返回的URL链接
|
...
|
...
|
@@ -54,7 +57,6 @@ class LoginController extends AbstractAction |
|
|
$data['isPassportPage'] = true; // 模板中模块标识
|
|
|
$data['areaCode'] = '+86'; // 默认区号
|
|
|
$data['countrys'] = RegData::getAreasData(); // 地区信息列表
|
|
|
|
|
|
// 渲染模板
|
|
|
$this->_view->display('international', $data);
|
|
|
}
|
...
|
...
|
@@ -116,10 +118,9 @@ class LoginController extends AbstractAction |
|
|
}
|
|
|
$data['data'] = array(
|
|
|
// 为了异步调用老系统的SESSION会话
|
|
|
'session' => 'http://m1.yohobuy.com/Passport/session/index?uid=' . $data['data']['uid'] . '&sign=' . md5($data['data']['uid'] . 'Js8Yn0!EwPM45-ws'),
|
|
|
'session' => 'http://m1.yohobuy.com/Passport/session/index?callback=call&uid=' . $data['data']['uid'] . '&sign=' . md5($data['data']['uid'] . 'Js8Yn0!EwPM45-ws'),
|
|
|
'href' => rawurldecode($refer),
|
|
|
);
|
|
|
|
|
|
} while (false);
|
|
|
|
|
|
$this->echoJson($data);
|
...
|
...
|
|