do modify domain m1.yohobuy.com mapi.yohobuy.com
Showing
2 changed files
with
9 additions
and
3 deletions
@@ -73,7 +73,6 @@ class LoginController extends AbstractAction | @@ -73,7 +73,6 @@ class LoginController extends AbstractAction | ||
73 | $data['isPassportPage'] = true; // 模板中模块标识 | 73 | $data['isPassportPage'] = true; // 模板中模块标识 |
74 | $data['areaCode'] = '+86'; // 默认区号 | 74 | $data['areaCode'] = '+86'; // 默认区号 |
75 | $data['countrys'] = RegData::getAreasData(); // 地区信息列表 | 75 | $data['countrys'] = RegData::getAreasData(); // 地区信息列表 |
76 | - | ||
77 | // 渲染模板 | 76 | // 渲染模板 |
78 | $this->_view->display('international', $data); | 77 | $this->_view->display('international', $data); |
79 | } | 78 | } |
@@ -86,7 +85,7 @@ class LoginController extends AbstractAction | @@ -86,7 +85,7 @@ class LoginController extends AbstractAction | ||
86 | $this->setCookie('_UID', ''); | 85 | $this->setCookie('_UID', ''); |
87 | 86 | ||
88 | $refer = $this->server('HTTP_REFERER', SITE_MAIN); | 87 | $refer = $this->server('HTTP_REFERER', SITE_MAIN); |
89 | - | 88 | + |
90 | $token = $this->get('token'); | 89 | $token = $this->get('token'); |
91 | if (!empty($token)) { | 90 | if (!empty($token)) { |
92 | LoginData::signoutSession($token); | 91 | LoginData::signoutSession($token); |
@@ -131,9 +130,9 @@ class LoginController extends AbstractAction | @@ -131,9 +130,9 @@ class LoginController extends AbstractAction | ||
131 | /* 调用登录接口进行登录 */ | 130 | /* 调用登录接口进行登录 */ |
132 | $data = LoginData::signin($area, $profile, $password); | 131 | $data = LoginData::signin($area, $profile, $password); |
133 | if ($data['code'] != 200 || !isset($data['data']['uid'])) { | 132 | if ($data['code'] != 200 || !isset($data['data']['uid'])) { |
134 | - $this->setSession('_TOKEN', Helpers::makeToken($data['data']['uid'])); | ||
135 | break; | 133 | break; |
136 | } | 134 | } |
135 | + $this->setSession('_TOKEN', Helpers::makeToken($data['data']['uid'])); | ||
137 | 136 | ||
138 | $refer = $this->getCookie('refer'); | 137 | $refer = $this->getCookie('refer'); |
139 | if (empty($refer)) { | 138 | if (empty($refer)) { |
-
Please register or login to post a comment