作者 邓超

xxx

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