router; $app->group([ 'namespace' => 'App\Crontab\Controllers', 'prefix' => 'crontab', 'middleware' => [], ], function () use ($app) { // 定时任务请求地址 // /crontab/task/run?module=module&service=service&method=method¶ms=params $app->get('/task/run', 'TaskInfoController@task'); });