正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
@@ -565,7 +565,7 @@ class Home extends Base { | @@ -565,7 +565,7 @@ class Home extends Base { | ||
565 | private function moveCopy(\Closure $call){ | 565 | private function moveCopy(\Closure $call){ |
566 | $emails = $this->getEmails(); | 566 | $emails = $this->getEmails(); |
567 | 567 | ||
568 | - $mail_ids = app()->request('mail_ids'); | 568 | + $mail_ids = app()->requestArr('mail_ids'); |
569 | if(!($mail_ids && is_array($mail_ids))){ | 569 | if(!($mail_ids && is_array($mail_ids))){ |
570 | app()->e('param_request_error'); | 570 | app()->e('param_request_error'); |
571 | } | 571 | } |
@@ -586,7 +586,7 @@ class Home extends Base { | @@ -586,7 +586,7 @@ class Home extends Base { | ||
586 | app()->e('folder_move_to_send_error'); | 586 | app()->e('folder_move_to_send_error'); |
587 | } | 587 | } |
588 | 588 | ||
589 | - $data = db()->all(listsSql::first(dbWhere(['id'=>$mail_ids,'email_id'=>array_column($emails,'id')]),'`id`,`uid`,`email_id`,`folder_id`')); | 589 | + $data = db()->all(listsSql::all(dbWhere(['id'=>$mail_ids,'email_id'=>array_column($emails,'id')]),'`id`,`uid`,`email_id`,`folder_id`')); |
590 | if($data){ | 590 | if($data){ |
591 | // 查询邮箱 | 591 | // 查询邮箱 |
592 | $emails = array_column($emails,null,'id'); | 592 | $emails = array_column($emails,null,'id'); |
@@ -604,7 +604,7 @@ class Home extends Base { | @@ -604,7 +604,7 @@ class Home extends Base { | ||
604 | } | 604 | } |
605 | } | 605 | } |
606 | 606 | ||
607 | - if(empty($uids[$datum['email_id']])){ | 607 | + if(empty($uids[$datum['email_id']][$datum['folder_id']])){ |
608 | $uids[$datum['email_id']][$datum['folder_id']] = []; | 608 | $uids[$datum['email_id']][$datum['folder_id']] = []; |
609 | } | 609 | } |
610 | $uids[$datum['email_id']][$datum['folder_id']][] = [ | 610 | $uids[$datum['email_id']][$datum['folder_id']][] = [ |
-
请 注册 或 登录 后发表评论