合并分支 'zhl' 到 'master'
修改任务量 查看合并请求 !1606
正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -150,7 +150,7 @@ class AiBlogTask extends Command | @@ -150,7 +150,7 @@ class AiBlogTask extends Command | ||
| 150 | } | 150 | } |
| 151 | $aiBlogTaskModel = new AiBlogTaskModel(); | 151 | $aiBlogTaskModel = new AiBlogTaskModel(); |
| 152 | $finish_at = date('Y-m-d H:i:s', strtotime('-' . $finish_at . ' hour')); | 152 | $finish_at = date('Y-m-d H:i:s', strtotime('-' . $finish_at . ' hour')); |
| 153 | - $ids = $aiBlogTaskModel->formatQuery(['status'=>$aiBlogTaskModel::STATUS_RUNNING,'type'=>$aiBlogTaskModel::TYPE_BLOG,'updated_at'=>['<=',$finish_at]])->limit(1000)->pluck('id'); | 153 | + $ids = $aiBlogTaskModel->formatQuery(['status'=>$aiBlogTaskModel::STATUS_RUNNING,'type'=>$aiBlogTaskModel::TYPE_BLOG,'updated_at'=>['<=',$finish_at]])->pluck('id'); |
| 154 | if(!empty($ids)){ | 154 | if(!empty($ids)){ |
| 155 | foreach ($ids as $id) { | 155 | foreach ($ids as $id) { |
| 156 | Redis::lpush('ai_blog_task', $id); | 156 | Redis::lpush('ai_blog_task', $id); |
-
请 注册 或 登录 后发表评论