Authored by xiaowei

防止撞库

@@ -133,7 +133,7 @@ class LoginController extends WebAction @@ -133,7 +133,7 @@ class LoginController extends WebAction
133 //再次校验 133 //再次校验
134 $accountTimes = Cache::get($accountKey); 134 $accountTimes = Cache::get($accountKey);
135 $ipTimes = Cache::get($ipKey); 135 $ipTimes = Cache::get($ipKey);
136 - if ($accountTimes >= 1) { 136 + if ($accountTimes >= 10) {
137 $data = array('code' => 400, 'message' => '您的账号已被暂时锁定,请稍后再试', 'data' => ''); 137 $data = array('code' => 400, 'message' => '您的账号已被暂时锁定,请稍后再试', 'data' => '');
138 break; 138 break;
139 } 139 }