...
|
...
|
@@ -810,8 +810,10 @@ class Home extends Base { |
|
|
}
|
|
|
if($fids){
|
|
|
// 查询要标记的 邮件id
|
|
|
$mail_ids = db()->all(listsSql::all(dbWhere(['folder_id'=>array_column($fids,'id'),'seen'=>0]),'`id`'));
|
|
|
|
|
|
$sql = listsSql::all(dbWhere(['folder_id'=>array_column($fids,'id'),'seen'=>0]),'`id`');
|
|
|
$mail_ids = db()->all($sql);
|
|
|
$mail_ids2 = db()->all(str_replace('from `lists` where','from `lists_hot` where',$sql));
|
|
|
$mail_ids = array_merge($mail_ids,$mail_ids2);
|
|
|
$mail_ids = array_column($mail_ids,'id');
|
|
|
}
|
|
|
|
...
|
...
|
@@ -833,7 +835,10 @@ class Home extends Base { |
|
|
$fv = (int) app()->request($d);
|
|
|
$fv = $fv ? 1 : 0;
|
|
|
|
|
|
$data = db()->all(listsSql::all(dbWhere(['id'=>$mail_ids,'email_id'=>array_column($emails,'id')]),'`id`,`uid`,`email_id`,`folder_id`'));
|
|
|
$sql = listsSql::all(dbWhere(['id'=>$mail_ids,'email_id'=>array_column($emails,'id')]),'`id`,`uid`,`email_id`,`folder_id`');
|
|
|
$data = db()->all($sql);
|
|
|
$data2 = db()->all(str_replace('from `lists` where','from `lists_hot` where',$sql));
|
|
|
$data = array_merge($data,$data2);
|
|
|
if($data){
|
|
|
// 查询邮箱
|
|
|
$emails = array_column($emails,null,'id');
|
...
|
...
|
@@ -887,6 +892,11 @@ class Home extends Base { |
|
|
],dbWhere([
|
|
|
'id' => array_column($uid,'id')
|
|
|
]));
|
|
|
db()->update('lists_hot',[
|
|
|
$d => $fv
|
|
|
],dbWhere([
|
|
|
'id' => array_column($uid,'id')
|
|
|
]));
|
|
|
}
|
|
|
|
|
|
}
|
...
|
...
|
|