作者 邓超

xxx

... ... @@ -68,10 +68,10 @@ class Mail {
}catch (\Throwable $e){
if($pass_err && $e->getCode() == 403){
// 一天中超过 3次失败说明密码错误了
if(redis()->incr('email_login_error:'.md5($this->username),86400) > 3){
// if(redis()->incr('email_login_error:'.md5($this->username),86400) > 10){
// 登录失败了 ,
db()->update(\Model\emailSql::$table,['pwd_error'=>1],dbWhere(['email'=>$this->username]));
}
// db()->update(\Model\emailSql::$table,['pwd_error'=>1],dbWhere(['email'=>$this->username]));
// }
return -1;
}else{
logs($e->getMessage());
... ... @@ -80,7 +80,7 @@ class Mail {
return $e->getCode() == 403 ? 0 : -1;
}
redis()->delete('email_login_error:'.md5($this->username));
// redis()->delete('email_login_error:'.md5($this->username));
return 1;
}
... ...