正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -76,7 +76,7 @@ class HotMail { | @@ -76,7 +76,7 @@ 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 | - if($folders){ | 79 | + if(!$folders){ |
80 | return true; | 80 | return true; |
81 | } | 81 | } |
82 | foreach ($folders as $f){ | 82 | foreach ($folders as $f){ |
@@ -96,7 +96,7 @@ class HotMail { | @@ -96,7 +96,7 @@ class HotMail { | ||
96 | * @time 2024/7/18 15:11 | 96 | * @time 2024/7/18 15:11 |
97 | */ | 97 | */ |
98 | private function findList(Data $data, int $p = 1){ | 98 | private function findList(Data $data, int $p = 1){ |
99 | - $lists = db()->all( | 99 | + $lists = db()->throw()->all( |
100 | sprintf( | 100 | sprintf( |
101 | "select `id`,`folder_id`,`lists`.`email_id`,`%s` from `lists` left join `fob_hot_mail` on `fob_hot_mail`.`lists_id` = `lists`.`id` where `lists`.`email_id` = %d and `folder_id` = %d and `fob_hot_mail`.`lists_id` is null order by `id` asc limit 1000 offset ".(($p-1)*1000), | 101 | "select `id`,`folder_id`,`lists`.`email_id`,`%s` from `lists` left join `fob_hot_mail` on `fob_hot_mail`.`lists_id` = `lists`.`id` where `lists`.`email_id` = %d and `folder_id` = %d and `fob_hot_mail`.`lists_id` is null order by `id` asc limit 1000 offset ".(($p-1)*1000), |
102 | $data->type=='f' ? 'to_name':'from', // 收件箱查询 from字段 发件箱 查询 to_name字段 | 102 | $data->type=='f' ? 'to_name':'from', // 收件箱查询 from字段 发件箱 查询 to_name字段 |
-
请 注册 或 登录 后发表评论