|
...
|
...
|
@@ -42,11 +42,11 @@ class CopyProject extends Command |
|
|
|
|
|
|
|
public function handle()
|
|
|
|
{
|
|
|
|
$projectModel = new Project();
|
|
|
|
while (true) {
|
|
|
|
$projectModel = new Project();
|
|
|
|
$list = NoticeLog::where('type', NoticeLog::TYPE_COPY_PROJECT)->where('status', NoticeLog::STATUS_PENDING)->get();
|
|
|
|
if(empty($list)){
|
|
|
|
sleep(5);
|
|
|
|
sleep(30);
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
foreach ($list as $item){
|
...
|
...
|
|