作者 邓超

1

@@ -53,7 +53,7 @@ class Home extends Base { @@ -53,7 +53,7 @@ class Home extends Base {
53 $where = ['email_id'=>$this->getEmails('id')]; 53 $where = ['email_id'=>$this->getEmails('id')];
54 54
55 // 目录 55 // 目录
56 - $folder = app()->request('folder','INBOX'); 56 + $folder = app()->request('folder','收件箱');
57 $folderList = db()->all(folderSql::all($where['email_id'])); 57 $folderList = db()->all(folderSql::all($where['email_id']));
58 $folder_id = []; 58 $folder_id = [];
59 // 文件夹id 59 // 文件夹id
@@ -64,9 +64,12 @@ class Home extends Base { @@ -64,9 +64,12 @@ class Home extends Base {
64 } 64 }
65 } 65 }
66 } 66 }
  67 + if(!$folder_id){
  68 + app()->e('folder_not_fount');
  69 + }
67 70
68 //目录 71 //目录
69 - if($folder_id) $where['folder_id'] = $folder_id; 72 + $where['folder_id'] = $folder_id;
70 if($ids) $where['id'] = $ids; 73 if($ids) $where['id'] = $ids;
71 if($attachment) $where['is_file'] = 1; //附件 74 if($attachment) $where['is_file'] = 1; //附件
72 // 软删 75 // 软删