作者 邓超

x

@@ -69,8 +69,10 @@ class Mail { @@ -69,8 +69,10 @@ class Mail {
69 }catch (\Throwable $e){ 69 }catch (\Throwable $e){
70 if($pass_err && $e->getCode() == 403){ 70 if($pass_err && $e->getCode() == 403){
71 // 是否是密码错误 71 // 是否是密码错误
72 - foreach (['NO [ALERT] Invalid credentials (Failure)'] as $em){  
73 - if(strpos($e->getMessage(),$em)!==false){ 72 + foreach ([
  73 + 'NO [ALERT] Invalid credentials (Failure)'
  74 + ] as $em){
  75 + if(str_contains($e->getMessage(), $em)){
74 db()->update( 76 db()->update(
75 \Model\emailSql::$table, 77 \Model\emailSql::$table,
76 ['pwd_error'=>1], 78 ['pwd_error'=>1],