作者 邓超

重新同步

... ... @@ -30,8 +30,14 @@ class AutoMail {
echo "\n";
if(redis()->get('resync_to_es_inbox') == 1){
redis()->set('resync_to_es_inbox',2);
$post_ids = fob_mysql()->all("select `post_id` from `e_mail_binds` group by `post_id`");
if($post_ids){
$post_ids = array_column($post_ids,'post_id','post_id');
}
$this->es = es();
foreach ($post_ids as $post_id){
... ...