...
|
...
|
@@ -39,8 +39,16 @@ class Home extends Base { |
|
|
|
|
|
$where = ['email_id' => $this->getEmail('id')];
|
|
|
|
|
|
foreach ($folder_ids as $k=>$folder_id){
|
|
|
if(!$folder_id){
|
|
|
unset($folder_ids[$k]);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
$folder_ids = array_values($folder_ids);
|
|
|
|
|
|
// 默认查询 inbox
|
|
|
if(!is_array($folder_ids)){
|
|
|
if(!is_array($folder_ids) || !$folder_ids){
|
|
|
$folder_ids = db()->value(
|
|
|
sprintf(
|
|
|
"select `id` from `%s` where `email_id` = %d and `origin_folder` = 'INBOX'",
|
...
|
...
|
|