作者 邓超

x

... ... @@ -229,15 +229,18 @@ class Home extends Base {
$lists = db()->all(emailSql::getValues(['email'=>web_request_emails()],'`id`,`pwd_error`,`email`,`password`,`imap`'));
foreach ($lists as $k=>$list){
$mail = new \Lib\Mail\Mail($list['email'],base64_decode($list['password']),$list['imap']);
if(!$list['pwd_error']){
$mail = new \Lib\Mail\Mail($list['email'],base64_decode($list['password']),$list['imap']);
// 2次登录请求
if($mail->login()!==1){
// 2次登录请求
if($mail->login()!==1){
$lists[$k]['pwd_error'] = 1;
if($mail->login()!==1){
$lists[$k]['pwd_error'] = 1;
}
}
$mail = null;
}
$mail = null;
}
return array_column($lists,'pwd_error','email');
... ...