作者 邓超

优化同步

... ... @@ -995,6 +995,9 @@ class Home extends Base {
$data['allowreply'] = db()->value(folderSql::first(['id'=>$data['folder_id']],'folder'))!='发件箱'?1:0;
$body = db()->first(bodySql::first($id));
if(!$body){
$body = db()->first("select * from `bodies_back` where `lists_id` = ".$id." limit 1");
}
if($body && !$reload){
$data['body'] = json_decode($body['text_html'],true);
$htmlbody = '';
... ...
... ... @@ -282,7 +282,7 @@ class MailListV2Es extends Base {
}
// 手动触发同步es
redis()->rPush('sync_to_es',$v['id']);
// redis()->rPush('sync_to_es',$v['id']);
return $v;
},$lists?:[]);
... ...