info('---------------开始执行了---------------------:'.date('Y-m-d H:i:s')); $num = BroadcastServer::creatServer()->getBroadcast(); if ($num <= 0) { $this->error('---------------执行休眠了---------------------'); sleep(3); }else{ sleep(1); } $this->info('---------------执行完成了---------------------'.date('Y-m-d H:i:s')); } } }