作者 邓超

x

... ... @@ -57,13 +57,13 @@ class Home extends Base {
$where = ['email_id'=>$this->getEmails('id')];
$folder_id = [];
$folder_id = ['-'];
if (app()->requestArr('folder_id')){
$folder_id = app()->requestArr('folder_id');
}else{
// 目录
$folder = app()->request('folder','收件箱');
// if($folder !== true){
if($folder !== true || $folder!=='true'){
$folderList = db()->all(folderSql::all($where['email_id']));
// 文件夹id
... ... @@ -78,14 +78,14 @@ class Home extends Base {
}
}
}
// }
}
}
if(!$folder_id){
app()->e('folder_not_fount');
}
// $folder_id = array_filter($folder_id,'is_int');
$folder_id = array_filter($folder_id,'is_int');
//目录
if($folder_id) $where['folder_id'] = $folder_id;
... ...