作者 lyh

gx数据

@@ -34,6 +34,8 @@ class SendAutoEmail extends Command @@ -34,6 +34,8 @@ class SendAutoEmail extends Command
34 if(empty($list)){ 34 if(empty($list)){
35 sleep(10); 35 sleep(10);
36 }else{ 36 }else{
  37 + $ids = array_column($list,'id');
  38 + $autoEmailLogModel->edit(['status'=>2],['id'=>['in',$ids]]);
37 foreach ($list as $value) { 39 foreach ($list as $value) {
38 $this->toQueue($value); 40 $this->toQueue($value);
39 } 41 }