合并分支 'akun' 到 'master'
update 查看合并请求 !2265
正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -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); |
-
请 注册 或 登录 后发表评论