|
@@ -246,7 +246,7 @@ class User extends Base
|
|
// 登录限流
|
|
// 登录限流
|
|
$ret = (new \app\common\util\ThrottlesUtil(config('app.login_throttles')))->tooManyAttempts($accountName);
|
|
$ret = (new \app\common\util\ThrottlesUtil(config('app.login_throttles')))->tooManyAttempts($accountName);
|
|
if($ret){
|
|
if($ret){
|
|
- $this->error('账号已被锁定,请稍后重试');
|
|
|
|
|
|
+ $this->error = '账号已被锁定,请稍后重试';
|
|
}
|
|
}
|
|
|
|
|
|
// 登录是根据账号和手机号组成,先查账号再查手机号
|
|
// 登录是根据账号和手机号组成,先查账号再查手机号
|