作者 邓超

优化

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