作者 刘锟

合并分支 'akun' 到 'master'

update



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