作者 邓超

x

@@ -57,13 +57,13 @@ class Home extends Base { @@ -57,13 +57,13 @@ class Home extends Base {
57 $where = ['email_id'=>$this->getEmails('id')]; 57 $where = ['email_id'=>$this->getEmails('id')];
58 58
59 59
60 - $folder_id = []; 60 + $folder_id = ['-'];
61 if (app()->requestArr('folder_id')){ 61 if (app()->requestArr('folder_id')){
62 $folder_id = app()->requestArr('folder_id'); 62 $folder_id = app()->requestArr('folder_id');
63 }else{ 63 }else{
64 // 目录 64 // 目录
65 $folder = app()->request('folder','收件箱'); 65 $folder = app()->request('folder','收件箱');
66 -// if($folder !== true){ 66 + if($folder !== true || $folder!=='true'){
67 $folderList = db()->all(folderSql::all($where['email_id'])); 67 $folderList = db()->all(folderSql::all($where['email_id']));
68 68
69 // 文件夹id 69 // 文件夹id
@@ -78,14 +78,14 @@ class Home extends Base { @@ -78,14 +78,14 @@ class Home extends Base {
78 } 78 }
79 } 79 }
80 } 80 }
81 -// } 81 + }
82 82
83 } 83 }
84 84
85 if(!$folder_id){ 85 if(!$folder_id){
86 app()->e('folder_not_fount'); 86 app()->e('folder_not_fount');
87 } 87 }
88 -// $folder_id = array_filter($folder_id,'is_int'); 88 + $folder_id = array_filter($folder_id,'is_int');
89 89
90 //目录 90 //目录
91 if($folder_id) $where['folder_id'] = $folder_id; 91 if($folder_id) $where['folder_id'] = $folder_id;