作者 lyh

gx数据

... ... @@ -35,7 +35,7 @@ class SendAutoEmail extends Command
sleep(10);
}else{
$ids = array_column($list,'id');
$autoEmailLogModel->edit(['status'=>2],['id'=>['in',$ids]]);
$autoEmailLogModel->edit(['status'=>AutoEmailLog::STATUS_ON],['id'=>['in',$ids]]);
foreach ($list as $value) {
$this->toQueue($value);
}
... ...
... ... @@ -16,6 +16,7 @@ class AutoEmailLog extends Base
protected $table = 'gl_auto_email_content_log';
const STATUS_PENDING = 0;//待发送
const STATUS_SUCCESS = 1;//OK
const STATUS_ERROR = 2;//error
const STATUS_ON = 1;//执行中
const STATUS_SUCCESS = 2;//执行结束
const STATUS_ERROR = 3;//执行失败
}
... ...