正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -42,11 +42,11 @@ class CopyProject extends Command | @@ -42,11 +42,11 @@ class CopyProject extends Command | ||
| 42 | 42 | ||
| 43 | public function handle() | 43 | public function handle() |
| 44 | { | 44 | { |
| 45 | - $projectModel = new Project(); | ||
| 46 | while (true) { | 45 | while (true) { |
| 46 | + $projectModel = new Project(); | ||
| 47 | $list = NoticeLog::where('type', NoticeLog::TYPE_COPY_PROJECT)->where('status', NoticeLog::STATUS_PENDING)->get(); | 47 | $list = NoticeLog::where('type', NoticeLog::TYPE_COPY_PROJECT)->where('status', NoticeLog::STATUS_PENDING)->get(); |
| 48 | if(empty($list)){ | 48 | if(empty($list)){ |
| 49 | - sleep(5); | 49 | + sleep(30); |
| 50 | continue; | 50 | continue; |
| 51 | } | 51 | } |
| 52 | foreach ($list as $item){ | 52 | foreach ($list as $item){ |
-
请 注册 或 登录 后发表评论