Authored by hf

fixes bug to home redirect

... ... @@ -329,7 +329,7 @@ class HomeController extends AbstractAction
// 设置网站标题
$this->setTitle('地址管理');
$this->setNavHeader('地址管理');
$this->setNavHeader('地址管理', Helpers::url('/home'));
$uid = $this->_uid;
$address = UserModel::getAddressData($uid);
... ... @@ -449,7 +449,7 @@ class HomeController extends AbstractAction
{
// 设置网站标题
$this->setTitle('在线客服');
$this->setNavHeader('在线客服', true, SITE_MAIN);
$this->setNavHeader('在线客服', Helpers::url('/home'), SITE_MAIN);
$service = Home\OnlineModel::getOnlineServiceInfo();
... ...
... ... @@ -190,6 +190,7 @@ class LoginController extends AbstractAction
if (isset($result['code']) && $result['code'] == 200 && !empty($result['data']['uid'])) {
$this->setCookie('_TOKEN', Helpers::makeToken($result['data']['uid']));
$this->setSession('_TOKEN', Helpers::makeToken($result['data']['uid']));
$this->go(Helpers::syncUserSession($result['data']['uid'], $refer));
} else {
$this->go($refer);
... ... @@ -220,6 +221,7 @@ class LoginController extends AbstractAction
if (isset($result['code']) && $result['code'] == 200 && !empty($result['data']['uid'])) {
$this->setCookie('_TOKEN', Helpers::makeToken($result['data']['uid']));
$this->setSession('_TOKEN', Helpers::makeToken($result['data']['uid']));
$this->go(Helpers::syncUserSession($result['data']['uid'], $refer));
} else {
$this->go($refer);
... ... @@ -250,6 +252,7 @@ class LoginController extends AbstractAction
if (isset($result['code']) && $result['code'] == 200 && !empty($result['data']['uid'])) {
$this->setCookie('_TOKEN', Helpers::makeToken($result['data']['uid']));
$this->setSession('_TOKEN', Helpers::makeToken($result['data']['uid']));
$this->go(Helpers::syncUserSession($result['data']['uid'], $refer));
} else {
$this->go($refer);
... ...