作者 邓超

x

@@ -74,6 +74,11 @@ class fob_hot_ai_mail_auto_reply @@ -74,6 +74,11 @@ class fob_hot_ai_mail_auto_reply
74 while (!$this->isStop()) { 74 while (!$this->isStop()) {
75 75
76 try { 76 try {
  77 + // 每天清空一次
  78 + if(redis()->add('new_hot_mail_auto_reply_ids_lock',1,86400)){
  79 + redis()->delete('new_hot_mail_auto_reply_ids');
  80 + }
  81 +
77 $id = redis()->lPop('new_hot_mail_auto_reply_ids'); 82 $id = redis()->lPop('new_hot_mail_auto_reply_ids');
78 if ($id) { 83 if ($id) {
79 // 检查是否到时间了 84 // 检查是否到时间了
@@ -99,7 +104,7 @@ class fob_hot_ai_mail_auto_reply @@ -99,7 +104,7 @@ class fob_hot_ai_mail_auto_reply
99 // 验证邮箱状态 104 // 验证邮箱状态
100 $post_id = fob_mysql()->cache(3600)->value("select `post_id` from `e_mail_binds` where `email_id` = " . $data['email_id']); 105 $post_id = fob_mysql()->cache(3600)->value("select `post_id` from `e_mail_binds` where `email_id` = " . $data['email_id']);
101 // // 国内项目不回复 106 // // 国内项目不回复
102 - if ($post_id == 10001746) { 107 + if ($post_id == 10001746 || $post_id == 10002367) {
103 _echo('国内项目跳过'); 108 _echo('国内项目跳过');
104 continue; 109 continue;
105 } 110 }