正在显示
1 个修改的文件
包含
8 行增加
和
5 行删除
@@ -229,15 +229,18 @@ class Home extends Base { | @@ -229,15 +229,18 @@ class Home extends Base { | ||
229 | 229 | ||
230 | $lists = db()->all(emailSql::getValues(['email'=>web_request_emails()],'`id`,`pwd_error`,`email`,`password`,`imap`')); | 230 | $lists = db()->all(emailSql::getValues(['email'=>web_request_emails()],'`id`,`pwd_error`,`email`,`password`,`imap`')); |
231 | foreach ($lists as $k=>$list){ | 231 | foreach ($lists as $k=>$list){ |
232 | - $mail = new \Lib\Mail\Mail($list['email'],base64_decode($list['password']),$list['imap']); | 232 | + if(!$list['pwd_error']){ |
233 | + $mail = new \Lib\Mail\Mail($list['email'],base64_decode($list['password']),$list['imap']); | ||
233 | 234 | ||
234 | - // 2次登录请求 | ||
235 | - if($mail->login()!==1){ | 235 | + // 2次登录请求 |
236 | if($mail->login()!==1){ | 236 | if($mail->login()!==1){ |
237 | - $lists[$k]['pwd_error'] = 1; | 237 | + if($mail->login()!==1){ |
238 | + $lists[$k]['pwd_error'] = 1; | ||
239 | + } | ||
238 | } | 240 | } |
241 | + $mail = null; | ||
239 | } | 242 | } |
240 | - $mail = null; | 243 | + |
241 | } | 244 | } |
242 | 245 | ||
243 | return array_column($lists,'pwd_error','email'); | 246 | return array_column($lists,'pwd_error','email'); |
-
请 注册 或 登录 后发表评论