作者 邓超

x

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