作者 刘锟

update

... ... @@ -98,7 +98,7 @@ class GeneratePage extends Command
echo '任务id:'.$task_id.PHP_EOL;
if (empty($task_id)) {
$noticeModel = new NoticeLog();
$ids = $noticeModel->selectField(['status'=>0,'type'=>NoticeLog::GENERATE_PAGE],'id');
$ids = $noticeModel->selectField(['status'=>0,'type'=>NoticeLog::GENERATE_PAGE,'start_at'=>['<=',date('Y-m-d H:i:s')]],'id');
if(!empty($ids)){
foreach ($ids as $id) {
Redis::lpush('generate_page', $id);
... ...