作者 邓超

优化

@@ -194,11 +194,12 @@ class SyncToEsCmd { @@ -194,11 +194,12 @@ class SyncToEsCmd {
194 if($lastpostid!=$thelastpostid){ 194 if($lastpostid!=$thelastpostid){
195 $ret = $this->fob_db->throw()->insert('e_mail_binds_log',[ 195 $ret = $this->fob_db->throw()->insert('e_mail_binds_log',[
196 'post_id' => $thelastpostid, 196 'post_id' => $thelastpostid,
197 - 'bind_time' => date('Y-m-d H:i:s',$udate-2), 197 + 'bind_time' => date('Y-m-d H:i:s',time()-2),
198 'source' => $thelast['source'], 198 'source' => $thelast['source'],
199 'email' => $thelast['email'], 199 'email' => $thelast['email'],
200 'email_id' => $thelast['email_id'], 200 'email_id' => $thelast['email_id'],
201 ],false); 201 ],false);
  202 + _echo("邮箱异常分配 ".$lastpostid.' == '.$thelastpostid.' === '.$ret);
202 if(!$ret){ 203 if(!$ret){
203 throw new Exception('新增失败'); 204 throw new Exception('新增失败');
204 } 205 }