do modify domain m1.yohobuy.com mapi.yohobuy.com
Showing
2 changed files
with
8 additions
and
2 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 | } |
@@ -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