作者 邓超

x

@@ -67,7 +67,7 @@ class Mail { @@ -67,7 +67,7 @@ class Mail {
67 // 是否初始成功 67 // 是否初始成功
68 $this->client->login($host['host'].':'.$host['port'],$this->username,$this->password); 68 $this->client->login($host['host'].':'.$host['port'],$this->username,$this->password);
69 }catch (\Throwable $e){ 69 }catch (\Throwable $e){
70 - logs($e->getMessage()); 70 + logs($this->username.'===>'.$e->getMessage());
71 if($pass_err){ 71 if($pass_err){
72 // 是否是密码错误 72 // 是否是密码错误
73 foreach ([ 73 foreach ([
@@ -96,8 +96,6 @@ class Mail { @@ -96,8 +96,6 @@ class Mail {
96 // db()->update(\Model\emailSql::$table,['pwd_error'=>1],dbWhere(['email'=>$this->username])); 96 // db()->update(\Model\emailSql::$table,['pwd_error'=>1],dbWhere(['email'=>$this->username]));
97 // } 97 // }
98 return -1; 98 return -1;
99 - }else{  
100 - logs($e->getMessage());  
101 } 99 }
102 100
103 return $e->getCode() == 403 ? 0 : -1; 101 return $e->getCode() == 403 ? 0 : -1;