正在显示
1 个修改的文件
包含
12 行增加
和
1 行删除
| @@ -216,7 +216,18 @@ class Home extends Base { | @@ -216,7 +216,18 @@ class Home extends Base { | ||
| 216 | */ | 216 | */ |
| 217 | public function check(){ | 217 | public function check(){ |
| 218 | 218 | ||
| 219 | - $lists = db()->all(emailSql::getValues(['email'=>web_request_emails()],'`id`,`pwd_error`,`email`')); | 219 | + $lists = db()->all(emailSql::getValues(['email'=>web_request_emails()],'`id`,`pwd_error`,`email`,`password`,`imap`')); |
| 220 | + foreach ($lists as $k=>$list){ | ||
| 221 | + $mail = new \Lib\Mail\Mail($list['email'],base64_decode($list['password']),$list['imap']); | ||
| 222 | + | ||
| 223 | + // 2次登录请求 | ||
| 224 | + if($mail->login()!==1){ | ||
| 225 | + if($mail->login()!==1){ | ||
| 226 | + $lists[$k]['pwd_error'] = 1; | ||
| 227 | + } | ||
| 228 | + } | ||
| 229 | + $mail = null; | ||
| 230 | + } | ||
| 220 | 231 | ||
| 221 | return array_column($lists,'pwd_error','email'); | 232 | return array_column($lists,'pwd_error','email'); |
| 222 | 233 |
-
请 注册 或 登录 后发表评论