lumen路由文件中的配置: $app->get('info-{tid}.html', 'ThreadController@palmInfo'); 控制器中代码示例: public function palmInfo($tid) { try { var_dump($tid); exit('hi'); } catch (Exception $e) { Log::error($e->getMessage()." ".$e->getTraceAsString()); Res::res('fail'); } }