作者 邓超

fob

@@ -56,12 +56,12 @@ class MailList extends Base { @@ -56,12 +56,12 @@ class MailList extends Base {
56 // 目录 56 // 目录
57 $folder = app()->request('folder','收件箱'); 57 $folder = app()->request('folder','收件箱');
58 // 只允许查询这里文件夹 58 // 只允许查询这里文件夹
59 - if(!in_array($folder,['收件箱','发件箱','垃圾箱','星标邮件','预热收件箱','预热发件箱'])){ 59 + if(!in_array($folder,['收件箱','发件箱','垃圾箱','星标邮件','预热收件箱','预热发件箱','Starred'])){
60 app()->e('folder_not_fount'); 60 app()->e('folder_not_fount');
61 } 61 }
62 $extSql = ''; // 扩展sql 62 $extSql = ''; // 扩展sql
63 // $origin_folder = $folder; 63 // $origin_folder = $folder;
64 - if($folder=='星标邮件'){ 64 + if($folder=='星标邮件'||$folder=='Starred'){
65 $folder = '收件箱'; 65 $folder = '收件箱';
66 $where['flagged'] = 1; // 星标 66 $where['flagged'] = 1; // 星标
67 }elseif ($folder=='预热收件箱'){ 67 }elseif ($folder=='预热收件箱'){