作者 邓超

x

@@ -152,15 +152,18 @@ class Login { @@ -152,15 +152,18 @@ class Login {
152 152
153 153
154 if($ret){ 154 if($ret){
  155 + // 同步一次文件夹
155 $mailClient->syncFolder(db()->value(emailSql::hasEmail($formData['email']))); 156 $mailClient->syncFolder(db()->value(emailSql::hasEmail($formData['email'])));
156 - app()->_json(  
157 - db()->first(  
158 - emailSql::first(  
159 - $formData['email'],  
160 - '`id`,`email`,`imap`,`smtp`,`status`,`created_at`'  
161 - )  
162 - )  
163 - ); 157 +
  158 + $ret = db()->first(
  159 + emailSql::first(
  160 + $formData['email'],
  161 + '`id`,`email`,`imap`,`smtp`,`status`,`created_at`'
  162 + ));
  163 +
  164 + $ret = array_merge($ret,app()->request(['imap','smtp']));
  165 +
  166 + app()->_json($ret);
164 } 167 }
165 168
166 app()->e('login_error'); 169 app()->e('login_error');