作者 邓超

to es

@@ -172,9 +172,9 @@ class SyncToEsCmd { @@ -172,9 +172,9 @@ class SyncToEsCmd {
172 public function getPostid($email_id,$udate){ 172 public function getPostid($email_id,$udate){
173 173
174 // 查询历史记录 174 // 查询历史记录
175 - $times = redis()->getSet('fob_bind_mail_times:'.$email_id,300,function ($email_id){ 175 + $times = redis()->getSet('fob_bind_mail_times2:'.$email_id,300,function ($email_id){
176 176
177 - $times = $this->fob_db->throw()->first("select `post_id`,`bind_time`,`source` from `e_mail_binds_log` where `email_id` = {$email_id} order by `bind_time` desc "); 177 + $times = $this->fob_db->throw()->all("select `post_id`,`bind_time`,`source` from `e_mail_binds_log` where `email_id` = {$email_id} order by `bind_time` desc ");
178 if(!$times){ 178 if(!$times){
179 return []; 179 return [];
180 } 180 }