作者 邓超

优化

@@ -70,6 +70,7 @@ class fob_hot_ai_mail_auto_reply { @@ -70,6 +70,7 @@ class fob_hot_ai_mail_auto_reply {
70 70
71 while (!$this->isStop()){ 71 while (!$this->isStop()){
72 72
  73 + try {
73 $id = redis()->lPop('new_hot_mail_auto_reply_ids'); 74 $id = redis()->lPop('new_hot_mail_auto_reply_ids');
74 if($id){ 75 if($id){
75 // 检查是否到时间了 76 // 检查是否到时间了
@@ -134,6 +135,10 @@ class fob_hot_ai_mail_auto_reply { @@ -134,6 +135,10 @@ class fob_hot_ai_mail_auto_reply {
134 }else{ 135 }else{
135 sleep(1); 136 sleep(1);
136 } 137 }
  138 + }catch (Throwable $e){
  139 + logs($e->getMessage().$e->getFile().$e->getLine());
  140 + }
  141 +
137 } 142 }
138 143
139 } 144 }