作者 邓超

x

@@ -76,7 +76,9 @@ class HotMail { @@ -76,7 +76,9 @@ class HotMail {
76 private function findFolder(int $email_id, string $folder,string $type){ 76 private function findFolder(int $email_id, string $folder,string $type){
77 // 查询 文件夹 77 // 查询 文件夹
78 $folders = db()->all(\Model\folderSql::all($email_id,'`id`,`folder`')); 78 $folders = db()->all(\Model\folderSql::all($email_id,'`id`,`folder`'));
79 - 79 + if($folders){
  80 + return true;
  81 + }
80 foreach ($folders as $f){ 82 foreach ($folders as $f){
81 if(folderAlias($f['folder']) == $folder){ 83 if(folderAlias($f['folder']) == $folder){
82 // 最后记录的id 84 // 最后记录的id