作者 邓超

优化文件夹

... ... @@ -46,7 +46,8 @@ class Login {
}
// 进行远程登录,验证
$login = (new Mail($formData['email'],$formData['password'],$formData['imap']))->login(false);
$mailClient = (new Mail($formData['email'],$formData['password'],$formData['imap']));
$login = $mailClient->login(false);
if( $login === 0){
app()->e('login_error_imap');
}elseif ($login === -1){
... ... @@ -89,6 +90,7 @@ class Login {
if($ret){
$mailClient->syncFolder(db()->value(emailSql::hasEmail($formData['email'])));
app()->_json(
db()->first(
emailSql::first(
... ...