作者 邓超

x

... ... @@ -565,7 +565,7 @@ class Home extends Base {
private function moveCopy(\Closure $call){
$emails = $this->getEmails();
$mail_ids = app()->request('mail_ids');
$mail_ids = app()->requestArr('mail_ids');
if(!($mail_ids && is_array($mail_ids))){
app()->e('param_request_error');
}
... ... @@ -586,7 +586,7 @@ class Home extends Base {
app()->e('folder_move_to_send_error');
}
$data = db()->all(listsSql::first(dbWhere(['id'=>$mail_ids,'email_id'=>array_column($emails,'id')]),'`id`,`uid`,`email_id`,`folder_id`'));
$data = db()->all(listsSql::all(dbWhere(['id'=>$mail_ids,'email_id'=>array_column($emails,'id')]),'`id`,`uid`,`email_id`,`folder_id`'));
if($data){
// 查询邮箱
$emails = array_column($emails,null,'id');
... ... @@ -604,7 +604,7 @@ class Home extends Base {
}
}
if(empty($uids[$datum['email_id']])){
if(empty($uids[$datum['email_id']][$datum['folder_id']])){
$uids[$datum['email_id']][$datum['folder_id']] = [];
}
$uids[$datum['email_id']][$datum['folder_id']][] = [
... ...