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 }
@@ -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