作者 邓超

bug

... ... @@ -27,14 +27,16 @@ class Home extends Base {
private function getFolderIds($email_id){
$folder_ids = app()->request('folder_ids',[],['intval','abs']);
foreach ($folder_ids as $k=>$folder_id){
if(!$folder_id){
unset($folder_ids[$k]);
if(is_array($folder_ids)){
foreach ($folder_ids as $k=>$folder_id){
if(!$folder_id){
unset($folder_ids[$k]);
}
}
}
if($folder_ids){
$folder_ids = array_values($folder_ids);
if($folder_ids){
$folder_ids = array_values($folder_ids);
}
}
// 默认查询 inbox
... ...