getTaskNamespace() . ucfirst(Str::camel($crontab['task'])); if (class_exists($class)) { return app()->make($class)->setCrontab($crontab); } throw new ClassNotFoundException('Task '. $crontab['task'] . ' not found'); } /** * 获取任务命名空间 * * @time 2020年09月15日 * @return mixed */ protected function getTaskNamespace() { return config('catch.crontab.task_namespace'); } }