作者 邓超

优化

@@ -437,7 +437,7 @@ class SyncToEsCmd { @@ -437,7 +437,7 @@ class SyncToEsCmd {
437 if(redis()->add('fob_bind_mail_times_check:'.$email_id,1,60)){ 437 if(redis()->add('fob_bind_mail_times_check:'.$email_id,1,60)){
438 $lastpostid = $this->fob_db->throw()->value("select `post_id` from `e_mail_binds_log` where `source` = 2 and `email_id` = '{$email_id}' order by `id` desc limit 1"); 438 $lastpostid = $this->fob_db->throw()->value("select `post_id` from `e_mail_binds_log` where `source` = 2 and `email_id` = '{$email_id}' order by `id` desc limit 1");
439 // 如果找不到了 439 // 如果找不到了
440 - $thelast = $this->fob_db->throw()->first("select * from `e_mail_binds` where `source` = 2 and `email_id` = '{$email_id}' and `deleted_at` is null order by `id` desc limit 1"); 440 + $thelast = $this->fob_db->throw()->first("select `id`,`post_id`,`source`,`email`,`email_id` from `e_mail_binds` where `source` = 2 and `email_id` = '{$email_id}' and `deleted_at` is null order by `id` desc limit 1");
441 if(!$thelast){ 441 if(!$thelast){
442 $his = $this->fob_db->throw()->first("select `email` from `e_mail_binds` where `source` = 2 and `email_id` = '{$email_id}' limit 1"); 442 $his = $this->fob_db->throw()->first("select `email` from `e_mail_binds` where `source` = 2 and `email_id` = '{$email_id}' limit 1");
443 if(!$his){ 443 if(!$his){