正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -139,7 +139,7 @@ class AiBlogTask extends Command | @@ -139,7 +139,7 @@ class AiBlogTask extends Command | ||
| 139 | } | 139 | } |
| 140 | $aiBlogTaskModel = new AiBlogTaskModel(); | 140 | $aiBlogTaskModel = new AiBlogTaskModel(); |
| 141 | $finish_at = date('Y-m-d H:i:s', strtotime('-' . $finish_at . ' hour')); | 141 | $finish_at = date('Y-m-d H:i:s', strtotime('-' . $finish_at . ' hour')); |
| 142 | - $ids = $aiBlogTaskModel->formatQuery(['status'=>1,'type'=>2,'created_at'=>['<=',$finish_at]])->limit(1000)->pluck('id'); | 142 | + $ids = $aiBlogTaskModel->formatQuery(['status'=>$aiBlogTaskModel::STATUS_RUNNING,'type'=>$aiBlogTaskModel::TYPE_BLOG,'created_at'=>['<=',$finish_at]])->limit(1000)->pluck('id'); |
| 143 | if(!empty($ids)){ | 143 | if(!empty($ids)){ |
| 144 | foreach ($ids as $id) { | 144 | foreach ($ids as $id) { |
| 145 | Redis::lpush('ai_blog_task', $id); | 145 | Redis::lpush('ai_blog_task', $id); |
-
请 注册 或 登录 后发表评论