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