Authored by hf

do modify domain m1.yohobuy.com mapi.yohobuy.com

@@ -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)) {
  1 +[memcached]
  2 +master.hosts=127.0.0.1:11212,127.0.0.1:11213
  3 +slave.hosts=127.0.0.1:11212,127.0.0.1:11213
  4 +session.hosts=127.0.0.1:11212,127.0.0.1:11213
  5 +
  6 +[redis]
  7 +servers.hosts = 127.0.0.1:6379