作者 lyh

gx数据

@@ -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){