|
...
|
...
|
@@ -437,7 +437,7 @@ class SyncToEsCmd { |
|
|
|
if(redis()->add('fob_bind_mail_times_check:'.$email_id,1,60)){
|
|
|
|
$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");
|
|
|
|
// 如果找不到了
|
|
|
|
$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");
|
|
|
|
$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");
|
|
|
|
if(!$thelast){
|
|
|
|
$his = $this->fob_db->throw()->first("select `email` from `e_mail_binds` where `source` = 2 and `email_id` = '{$email_id}' limit 1");
|
|
|
|
if(!$his){
|
...
|
...
|
|