正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
| @@ -57,8 +57,9 @@ class Test extends Command | @@ -57,8 +57,9 @@ class Test extends Command | ||
| 57 | public function handle() | 57 | public function handle() |
| 58 | { | 58 | { |
| 59 | 59 | ||
| 60 | + $i=0; | ||
| 60 | while (true){ | 61 | while (true){ |
| 61 | - $list = SyncSubmitTaskModel::where('project_id', 0)->limit(100)->get(); | 62 | + $list = SyncSubmitTaskModel::where('project_id', 0)->limit(1000)->get(); |
| 62 | if(!$list){ | 63 | if(!$list){ |
| 63 | exit; | 64 | exit; |
| 64 | } | 65 | } |
| @@ -67,6 +68,8 @@ class Test extends Command | @@ -67,6 +68,8 @@ class Test extends Command | ||
| 67 | $item->project_id = $project->id; | 68 | $item->project_id = $project->id; |
| 68 | $item->save(); | 69 | $item->save(); |
| 69 | } | 70 | } |
| 71 | + echo $i . PHP_EOL; | ||
| 72 | + $i++; | ||
| 70 | } | 73 | } |
| 71 | 74 | ||
| 72 | exit; | 75 | exit; |
-
请 注册 或 登录 后发表评论