作者 邓超

fob

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